changed var to explicit type
changed title on SendMessageForm handling error codes added credentials handling added icon to context menu item
This commit is contained in:
50
ntfysh_client/Notifications/PublishEvent.cs
Normal file
50
ntfysh_client/Notifications/PublishEvent.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using Newtonsoft.Json;
|
||||
using System.Text.Json.Nodes;
|
||||
|
||||
namespace ntfysh_client.Notifications
|
||||
{
|
||||
internal class PublishEvent
|
||||
{
|
||||
[JsonProperty("topic")]
|
||||
public string Topic { get; set; } = null!;
|
||||
|
||||
[JsonProperty("message")]
|
||||
public string? Message { get; set; } = null;
|
||||
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; } = null;
|
||||
|
||||
[JsonProperty("tags")]
|
||||
public string[] Tags { get; set; } = null!;
|
||||
|
||||
[JsonProperty("priority")]
|
||||
public NotificationPriority? Priority { get; set; } = null;
|
||||
|
||||
[JsonProperty("actions")]
|
||||
public JsonArray? Actions { get; set; } = null;
|
||||
|
||||
[JsonProperty("click")]
|
||||
public string? Click { get; set; } = null;
|
||||
|
||||
[JsonProperty("attach")]
|
||||
public string? Attach { get; set; } = null;
|
||||
|
||||
[JsonProperty("markdown")]
|
||||
public bool? Markdown { get; set; } = null;
|
||||
|
||||
[JsonProperty("icon")]
|
||||
public string? Icon { get; set; } = null;
|
||||
|
||||
[JsonProperty("filename")]
|
||||
public string? Filename { get; set; } = null;
|
||||
|
||||
[JsonProperty("delay")]
|
||||
public string? Delay { get; set; } = null;
|
||||
|
||||
[JsonProperty("email")]
|
||||
public string? Email { get; set; } = null;
|
||||
|
||||
[JsonProperty("call")]
|
||||
public string? Call { get; set; } = null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user