Skip to content

Commit

Permalink
Exposed status change origin
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed Jun 25, 2019
1 parent ff5d78a commit 44e2df4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions SeatsioDotNet.Test/Events/ListStatusChangesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public void PropertiesOfStatusChange()
Assert.Equal("A-1", statusChange.ObjectLabel);
Assert.Equal(evnt.Id, statusChange.EventId);
Assert.Equal(extraData, statusChange.ExtraData);
Assert.Equal("API_CALL", statusChange.Origin.Type);
Assert.NotNull(statusChange.Origin.Ip);
}

[Fact]
Expand Down
1 change: 1 addition & 0 deletions SeatsioDotNet/Events/StatusChange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ public class StatusChange
public string OrderId { get; set; }
public long EventId { get; set; }
public Dictionary<string, object> ExtraData { get; set; }
public StatusChangeOrigin Origin { get; set; }
}
}
8 changes: 8 additions & 0 deletions SeatsioDotNet/Events/StatusChangeOrigin.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace SeatsioDotNet.Events
{
public class StatusChangeOrigin
{
public string Type { get; set; }
public string Ip { get; set; }
}
}
2 changes: 1 addition & 1 deletion SeatsioDotNet/SeatsioDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<IsPackable>true</IsPackable>
<Version>62</Version>
<Version>63</Version>
<Authors>mroloux;bverbeken</Authors>
<Title>Official Seats.io .NET API client</Title>
<Description>Official Seats.io .NET API client</Description>
Expand Down

0 comments on commit 44e2df4

Please sign in to comment.