Files
Alexander Horner 7f73bd2cd1 Add support for priority
Set default title to topic unique, as displayed in subscriptions list, if not provided
Increase toast timeout to 5 seconds
2022-12-08 19:54:14 +00:00

28 lines
696 B
C#

using Newtonsoft.Json;
namespace ntfysh_client.Notifications
{
public class NtfyEvent
{
[JsonProperty("id")]
public string Id { get; set; } = null!;
[JsonProperty("time")]
public long Time { get; set; }
[JsonProperty("event")]
public string Event { get; set; } = null!;
[JsonProperty("topic")]
public string Topic { get; set; } = null!;
[JsonProperty("message")]
public string Message { get; set; } = null!;
[JsonProperty("title")]
public string? Title { get; set; }
[JsonProperty("priority")]
public NotificationPriority? Priority { get; set; }
}
}