Commit 29819a9 Damon Pollard
authored
File tree 5 files changed +20
-4
lines changed
Model/Stats/CarnageReport
5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,11 @@ A Nuget package is available at [www.nuget.org/packages/HaloSharp](https://www.n
56
56
57
57
### Changelog ###
58
58
59
+ ###### v.1.5.3.0 (2016-06-20)
60
+
61
+ 1 . Updated Warzone Match model.
62
+ * New property: ObjectivesCompleted
63
+
59
64
###### v.1.5.2.0 (2016-06-02)
60
65
61
66
1 . Updated Service Record models.
Original file line number Diff line number Diff line change 305
305
"MapVariantResourceId" : {
306
306
"$ref" : " ../common/variant.schema.json"
307
307
},
308
+ "ObjectivesCompleted" : {
309
+ "type" : [ " integer" , " null" ]
310
+ },
308
311
309
312
"PlayerStats" : {
310
313
"type" : " array" ,
Original file line number Diff line number Diff line change 31
31
// You can specify all the values or you can default the Build and Revision Numbers
32
32
// by using the '*' as shown below:
33
33
// [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" ) ]
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ namespace HaloSharp.Model.Stats.CarnageReport
9
9
[ Serializable ]
10
10
public class WarzoneMatch : BaseMatch , IEquatable < WarzoneMatch >
11
11
{
12
+ /// <summary>
13
+ /// TODO
14
+ /// </summary>
15
+ [ JsonProperty ( PropertyName = "ObjectivesCompleted" ) ]
16
+ public int ? ObjectivesCompleted { get ; set ; }
17
+
12
18
/// <summary>
13
19
/// A list of stats for each player who was present in the match.
14
20
/// </summary>
@@ -35,6 +41,7 @@ public bool Equals(WarzoneMatch other)
35
41
}
36
42
37
43
return base . Equals ( other )
44
+ && ObjectivesCompleted == other . ObjectivesCompleted
38
45
&& PlayerStats . OrderBy ( ps => ps . Player . Gamertag ) . SequenceEqual ( other . PlayerStats . OrderBy ( ps => ps . Player . Gamertag ) )
39
46
&& TeamStats . OrderBy ( ts => ts . TeamId ) . SequenceEqual ( other . TeamStats . OrderBy ( ts => ts . TeamId ) ) ;
40
47
}
@@ -64,6 +71,7 @@ public override int GetHashCode()
64
71
unchecked
65
72
{
66
73
int hashCode = base . GetHashCode ( ) ;
74
+ hashCode = ( hashCode * 397 ) ^ ObjectivesCompleted . GetHashCode ( ) ;
67
75
hashCode = ( hashCode * 397 ) ^ ( PlayerStats ? . GetHashCode ( ) ?? 0 ) ;
68
76
hashCode = ( hashCode * 397 ) ^ ( TeamStats ? . GetHashCode ( ) ?? 0 ) ;
69
77
return hashCode ;
Original file line number Diff line number Diff line change 32
32
// You can specify all the values or you can default the Build and Revision Numbers
33
33
// by using the '*' as shown below:
34
34
// [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" ) ]
37
37
38
38
//HaloSharp.Test
39
39
[ assembly: InternalsVisibleTo ( "HaloSharp.Test" ) ]
You can’t perform that action at this time.
0 commit comments