mirror of
https://github.com/Stone-Red-Software/StoneRed.NetificationApi.git
synced 2026-09-04 00:36:05 +02:00
Add Schedule property to SendNotificationData
This commit is contained in:
@@ -83,6 +83,7 @@ Console.WriteLine("Send notification");
|
|||||||
SendNotificationData sendNotificationData = new SendNotificationData
|
SendNotificationData sendNotificationData = new SendNotificationData
|
||||||
{
|
{
|
||||||
NotificationId = notificationId,
|
NotificationId = notificationId,
|
||||||
|
Schedule = DateTime.Now.AddSeconds(10),
|
||||||
User = new NotificationUser
|
User = new NotificationUser
|
||||||
{
|
{
|
||||||
Id = userId
|
Id = userId
|
||||||
|
|||||||
@@ -37,6 +37,11 @@ public class SendNotificationData
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, string>? Replace { get; set; }
|
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>
|
/// <summary>
|
||||||
/// Gets or sets the options for the notification.
|
/// Gets or sets the options for the notification.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user