Add support for priority

Set default title to topic unique, as displayed in subscriptions list, if not provided
Increase toast timeout to 5 seconds
This commit is contained in:
Alexander Horner
2022-12-08 19:54:14 +00:00
parent d90ddc3be4
commit 7f73bd2cd1
5 changed files with 37 additions and 7 deletions

View File

@@ -4,13 +4,17 @@ namespace ntfysh_client.Notifications
{
public class NotificationReceiveEventArgs : EventArgs
{
public SubscribedTopic Sender { get; }
public string Title { get; }
public string Message { get; }
public NotificationPriority Priority { get; set; }
public NotificationReceiveEventArgs(string title, string message)
public NotificationReceiveEventArgs(SubscribedTopic sender, string title, string message, NotificationPriority priority)
{
Sender = sender;
Title = title;
Message = message;
Priority = priority;
}
}
}