Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Empty file.
24 changes: 20 additions & 4 deletions src/CFBSharp/Model/PlayerGameTeams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ public partial class PlayerGameTeams : IEquatable<PlayerGameTeams>
/// Initializes a new instance of the <see cref="PlayerGameTeams" /> class.
/// </summary>
/// <param name="school">school.</param>
/// <param name="conference">conference.</param>
/// <param name="homeAway">homeAway.</param>
/// <param name="points">points.</param>
/// <param name="categories">categories.</param>
public PlayerGameTeams(PlayerGameSchool school = default(PlayerGameSchool), bool? homeAway = default(bool?), int? points = default(int?), List<PlayerGameCategories> categories = default(List<PlayerGameCategories>))
public PlayerGameTeams(string school = default(string), string conference = default(string),string homeAway = default(string), int? points = default(int?), List<PlayerGameCategories> categories = default(List<PlayerGameCategories>))
{
this.School = school;
this.Conference = conference;
this.HomeAway = homeAway;
this.Points = points;
this.Categories = categories;
Expand All @@ -47,13 +49,19 @@ public partial class PlayerGameTeams : IEquatable<PlayerGameTeams>
/// Gets or Sets School
/// </summary>
[DataMember(Name="school", EmitDefaultValue=false)]
public PlayerGameSchool School { get; set; }
public string School { get; set; }

/// <summary>
/// Gets or Sets Conference
/// </summary>
[DataMember(Name="conference", EmitDefaultValue=false)]
public string Conference { get; set; }

/// <summary>
/// Gets or Sets HomeAway
/// </summary>
[DataMember(Name="homeAway", EmitDefaultValue=false)]
public bool? HomeAway { get; set; }
public string HomeAway { get; set; }

/// <summary>
/// Gets or Sets Points
Expand All @@ -76,6 +84,7 @@ public override string ToString()
var sb = new StringBuilder();
sb.Append("class PlayerGameTeams {\n");
sb.Append(" School: ").Append(School).Append("\n");
sb.Append(" Conference: ").Append(Conference).Append("\n");
sb.Append(" HomeAway: ").Append(HomeAway).Append("\n");
sb.Append(" Points: ").Append(Points).Append("\n");
sb.Append(" Categories: ").Append(Categories).Append("\n");
Expand Down Expand Up @@ -117,7 +126,12 @@ public bool Equals(PlayerGameTeams input)
this.School == input.School ||
(this.School != null &&
this.School.Equals(input.School))
) &&
) &&
(
this.Conference == input.Conference ||
(this.Conference != null &&
this.Conference.Equals(input.Conference))
) &&
(
this.HomeAway == input.HomeAway ||
(this.HomeAway != null &&
Expand Down Expand Up @@ -146,6 +160,8 @@ public override int GetHashCode()
int hashCode = 41;
if (this.School != null)
hashCode = hashCode * 59 + this.School.GetHashCode();
if (this.Conference != null)
hashCode = hashCode * 59 + this.Conference.GetHashCode();
if (this.HomeAway != null)
hashCode = hashCode * 59 + this.HomeAway.GetHashCode();
if (this.Points != null)
Expand Down