Skip to content

Commit 29819a9

Browse files
author
Damon Pollard
authored
Merge pull request #25 from gitFurious/dev
v1.5.3.0
2 parents f610983 + 330b2a5 commit 29819a9

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ A Nuget package is available at [www.nuget.org/packages/HaloSharp](https://www.n
5656

5757
### Changelog ###
5858

59+
###### v.1.5.3.0 (2016-06-20)
60+
61+
1. Updated Warzone Match model.
62+
* New property: ObjectivesCompleted
63+
5964
###### v.1.5.2.0 (2016-06-02)
6065

6166
1. Updated Service Record models.

Source/HaloSharp.Test/JSON/Stats/CarnageReport/warzone-match.schema.json

+3
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@
305305
"MapVariantResourceId": {
306306
"$ref": "../common/variant.schema.json"
307307
},
308+
"ObjectivesCompleted": {
309+
"type": [ "integer", "null" ]
310+
},
308311

309312
"PlayerStats": {
310313
"type": "array",

Source/HaloSharp.Test/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.5.2.0")]
35-
[assembly: AssemblyFileVersion("1.5.2.0")]
34+
[assembly: AssemblyVersion("1.5.3.0")]
35+
[assembly: AssemblyFileVersion("1.5.3.0")]

Source/HaloSharp/Model/Stats/CarnageReport/WarzoneMatch.cs

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ namespace HaloSharp.Model.Stats.CarnageReport
99
[Serializable]
1010
public class WarzoneMatch : BaseMatch, IEquatable<WarzoneMatch>
1111
{
12+
/// <summary>
13+
/// TODO
14+
/// </summary>
15+
[JsonProperty(PropertyName = "ObjectivesCompleted")]
16+
public int? ObjectivesCompleted { get; set; }
17+
1218
/// <summary>
1319
/// A list of stats for each player who was present in the match.
1420
/// </summary>
@@ -35,6 +41,7 @@ public bool Equals(WarzoneMatch other)
3541
}
3642

3743
return base.Equals(other)
44+
&& ObjectivesCompleted == other.ObjectivesCompleted
3845
&& PlayerStats.OrderBy(ps => ps.Player.Gamertag).SequenceEqual(other.PlayerStats.OrderBy(ps => ps.Player.Gamertag))
3946
&& TeamStats.OrderBy(ts => ts.TeamId).SequenceEqual(other.TeamStats.OrderBy(ts => ts.TeamId));
4047
}
@@ -64,6 +71,7 @@ public override int GetHashCode()
6471
unchecked
6572
{
6673
int hashCode = base.GetHashCode();
74+
hashCode = (hashCode*397) ^ ObjectivesCompleted.GetHashCode();
6775
hashCode = (hashCode*397) ^ (PlayerStats?.GetHashCode() ?? 0);
6876
hashCode = (hashCode*397) ^ (TeamStats?.GetHashCode() ?? 0);
6977
return hashCode;

Source/HaloSharp/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.5.2.0")]
36-
[assembly: AssemblyFileVersion("1.5.2.0")]
35+
[assembly: AssemblyVersion("1.5.3.0")]
36+
[assembly: AssemblyFileVersion("1.5.3.0")]
3737

3838
//HaloSharp.Test
3939
[assembly: InternalsVisibleTo("HaloSharp.Test")]

0 commit comments

Comments
 (0)