From ee5492f27c1e0d619719557eb5d9f6ccd978fe07 Mon Sep 17 00:00:00 2001 From: mroloux Date: Fri, 23 Aug 2019 14:17:04 +0200 Subject: [PATCH] Exposed forSale property on object status --- SeatsioDotNet.Test/Events/RetrieveObjectStatusTest.cs | 1 + SeatsioDotNet/Events/ObjectStatusType.cs | 1 + SeatsioDotNet/SeatsioDotNet.csproj | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SeatsioDotNet.Test/Events/RetrieveObjectStatusTest.cs b/SeatsioDotNet.Test/Events/RetrieveObjectStatusTest.cs index baf3a09..16fc5a0 100644 --- a/SeatsioDotNet.Test/Events/RetrieveObjectStatusTest.cs +++ b/SeatsioDotNet.Test/Events/RetrieveObjectStatusTest.cs @@ -14,6 +14,7 @@ public void Test() var objectStatus = Client.Events.RetrieveObjectStatus(evnt.Key, "A-1"); Assert.Equal(ObjectStatus.Free, objectStatus.Status); + Assert.True(objectStatus.ForSale); } } } \ No newline at end of file diff --git a/SeatsioDotNet/Events/ObjectStatusType.cs b/SeatsioDotNet/Events/ObjectStatusType.cs index 5a38da1..1a28706 100644 --- a/SeatsioDotNet/Events/ObjectStatusType.cs +++ b/SeatsioDotNet/Events/ObjectStatusType.cs @@ -14,5 +14,6 @@ public class ObjectStatus public string HoldToken { get; set; } public string OrderId { get; set; } public Dictionary ExtraData { get; set; } + public bool ForSale { get; set; } } } \ No newline at end of file diff --git a/SeatsioDotNet/SeatsioDotNet.csproj b/SeatsioDotNet/SeatsioDotNet.csproj index 9eeaf04..cf3a759 100644 --- a/SeatsioDotNet/SeatsioDotNet.csproj +++ b/SeatsioDotNet/SeatsioDotNet.csproj @@ -2,7 +2,7 @@ Library true - 65 + 66 mroloux;bverbeken Official Seats.io .NET API client Official Seats.io .NET API client