From 0a32090c14f5debfc7c72fa625e5c49dc31f4e1a Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Tue, 5 Mar 2024 19:45:36 +0100 Subject: [PATCH] Add `Schedule` property to `SendNotificationData` --- src/StoneRed.NetificationApi.Example/Program.cs | 1 + .../Server/Send/SendNotificationData.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/StoneRed.NetificationApi.Example/Program.cs b/src/StoneRed.NetificationApi.Example/Program.cs index 13cfc30..ef22d51 100644 --- a/src/StoneRed.NetificationApi.Example/Program.cs +++ b/src/StoneRed.NetificationApi.Example/Program.cs @@ -83,6 +83,7 @@ Console.WriteLine("Send notification"); SendNotificationData sendNotificationData = new SendNotificationData { NotificationId = notificationId, + Schedule = DateTime.Now.AddSeconds(10), User = new NotificationUser { Id = userId diff --git a/src/StoneRed.NetificationApi/Server/Send/SendNotificationData.cs b/src/StoneRed.NetificationApi/Server/Send/SendNotificationData.cs index 64a2d6d..cba313e 100644 --- a/src/StoneRed.NetificationApi/Server/Send/SendNotificationData.cs +++ b/src/StoneRed.NetificationApi/Server/Send/SendNotificationData.cs @@ -37,6 +37,11 @@ public class SendNotificationData /// public Dictionary? Replace { get; set; } + /// + /// Gets or sets the time when the notification should be scheduled. + /// + public DateTime? Schedule { get; set; } + /// /// Gets or sets the options for the notification. ///