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. ///