Skip to content

Commit 2f0c110

Browse files
committed
OwnDndResponse and SnoozeResponse match response JSON
Resolves #166
1 parent 4fb22bd commit 2f0c110

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

SlackNet/WebApi/Responses/OwnDndResponse.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ namespace SlackNet.WebApi;
66
public class OwnDndResponse : DndResponse
77
{
88
public bool SnoozeEnabled { get; set; }
9-
public int SnoozeEndTime { get; set; }
9+
public int SnoozeEndtime { get; set; }
1010
[JsonIgnore]
11-
public DateTime? SnoozeEnd => SnoozeEndTime.ToDateTime();
11+
public DateTime? SnoozeEnd => SnoozeEndtime.ToDateTime();
1212
public int SnoozeRemaining { get; set; }
1313
public TimeSpan SnoozeRemainingTimeSpan => TimeSpan.FromSeconds(SnoozeRemaining);
14+
public bool SnoozeIsIndefinite { get; set; }
1415
}

SlackNet/WebApi/Responses/SnoozeResponse.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ namespace SlackNet.WebApi;
66
public class SnoozeResponse
77
{
88
public bool SnoozeEnabled { get; set; }
9-
public int SnoozeEndTime { get; set; }
9+
public int SnoozeEndtime { get; set; }
1010
[JsonIgnore]
11-
public DateTime? SnoozeEnd => SnoozeEndTime.ToDateTime();
11+
public DateTime? SnoozeEnd => SnoozeEndtime.ToDateTime();
1212
public int SnoozeRemaining { get; set; }
1313
public TimeSpan SnoozeRemainingTimeSpan => TimeSpan.FromSeconds(SnoozeRemaining);
14+
public bool SnoozeIsIndefinite { get; set; }
1415
}

0 commit comments

Comments
 (0)