Enums as string

This commit is contained in:
2025-10-15 23:41:26 +02:00
parent 565cf01114
commit 626131b9b8
15 changed files with 838 additions and 44 deletions

View File

@@ -50,10 +50,9 @@ public class Notification : Identifiable
public override string ToString() => $"{base.ToString()} {Urgency} {Title} {Message}";
}
[JsonConverter(typeof(StringEnumConverter))]
public enum NotificationUrgency : byte
public enum NotificationUrgency
{
Low = 1,
Normal = 3,
High = 5
Low,
Normal,
High
}