Skip to content

Commit

Permalink
Updated XpInfo model.
Browse files Browse the repository at this point in the history
PerformanceXP is now nullable. Thanks, b01000100.
  • Loading branch information
Damon Pollard committed Jul 28, 2016
1 parent 2ee3b78 commit 4bdeede
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type": "integer"
},
"PerformanceXP": {
"type": "integer"
"type": [ "null", "integer" ]
},
"PlayerRankXPAward": {
"type": "integer"
Expand Down
4 changes: 2 additions & 2 deletions Source/HaloSharp/Model/Stats/CarnageReport/Common/XpInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class XpInfo : IEquatable<XpInfo>
/// The XP awarded to the player based on how their team ranked when the match concluded.
/// </summary>
[JsonProperty(PropertyName = "PerformanceXP")]
public int PerformanceXp { get; set; }
public int? PerformanceXp { get; set; }

/// <summary>
/// The XP awarded to the player for their team-agnostic rank.
Expand Down Expand Up @@ -125,7 +125,7 @@ public override int GetHashCode()
var hashCode = BoostAmount;
hashCode = (hashCode*397) ^ MatchSpeedWinAmount;
hashCode = (hashCode*397) ^ ObjectivesCompletedAmount;
hashCode = (hashCode*397) ^ PerformanceXp;
hashCode = (hashCode*397) ^ PerformanceXp.GetHashCode();
hashCode = (hashCode*397) ^ PlayerRankXpAward;
hashCode = (hashCode*397) ^ PlayerTimePerformanceXpAward;
hashCode = (hashCode*397) ^ PrevSpartanRank;
Expand Down

0 comments on commit 4bdeede

Please sign in to comment.