Skip to content

Commit

Permalink
Merge pull request #18 from gitFurious/dev
Browse files Browse the repository at this point in the history
v1.4.1.0
  • Loading branch information
Damon Pollard committed Apr 5, 2016
2 parents 7efd709 + dead806 commit e408a96
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ A Nuget package is available at [www.nuget.org/packages/HaloSharp](https://www.n

### Changelog ###

###### v.1.4.1.0 (2016-04-05)

1. Fixed a bug where I was using an int instead of an Enum (DeathDisposition)

###### v.1.4.0.0 (2016-04-05)

1. Stats Endpoints.
Expand Down
4 changes: 2 additions & 2 deletions Source/HaloSharp.Test/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.0.0")]
[assembly: AssemblyFileVersion("1.4.0.0")]
[assembly: AssemblyVersion("1.4.1.0")]
[assembly: AssemblyFileVersion("1.4.1.0")]
7 changes: 7 additions & 0 deletions Source/HaloSharp/Model/Enumeration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ public enum Difficulty
Legendary = 3
}

public enum Disposition
{
Friendly = 0,
Hostile = 1,
Neutral = 2
}

public enum EventType
{
Death
Expand Down
4 changes: 2 additions & 2 deletions Source/HaloSharp/Model/Stats/CarnageReport/MatchEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class GameEvent : IEquatable<GameEvent>
/// </list>
/// </summary>
[JsonProperty(PropertyName = "DeathDisposition")]
public int DeathDisposition { get; set; }
public Enumeration.Disposition DeathDisposition { get; set; }

/// <summary>
/// Describes if the death was committed by the killer from behind (Assassination or melee to back).
Expand Down Expand Up @@ -312,7 +312,7 @@ public override int GetHashCode()
unchecked
{
var hashCode = Assistants?.GetHashCode() ?? 0;
hashCode = (hashCode*397) ^ DeathDisposition;
hashCode = (hashCode*397) ^ (int) DeathDisposition;
hashCode = (hashCode*397) ^ IsAssassination.GetHashCode();
hashCode = (hashCode*397) ^ IsGroundPound.GetHashCode();
hashCode = (hashCode*397) ^ IsHeadshot.GetHashCode();
Expand Down
4 changes: 2 additions & 2 deletions Source/HaloSharp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.0.0")]
[assembly: AssemblyFileVersion("1.4.0.0")]
[assembly: AssemblyVersion("1.4.1.0")]
[assembly: AssemblyFileVersion("1.4.1.0")]

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

0 comments on commit e408a96

Please sign in to comment.