Add Schedule property to SendNotificationData

This commit is contained in:
Stone_Red
2024-03-05 19:45:36 +01:00
parent ae707e3aa5
commit 0a32090c14
2 changed files with 6 additions and 0 deletions
@@ -83,6 +83,7 @@ Console.WriteLine("Send notification");
SendNotificationData sendNotificationData = new SendNotificationData
{
NotificationId = notificationId,
Schedule = DateTime.Now.AddSeconds(10),
User = new NotificationUser
{
Id = userId
@@ -37,6 +37,11 @@ public class SendNotificationData
/// </summary>
public Dictionary<string, string>? Replace { get; set; }
/// <summary>
/// Gets or sets the time when the notification should be scheduled.
/// </summary>
public DateTime? Schedule { get; set; }
/// <summary>
/// Gets or sets the options for the notification.
/// </summary>