mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-16 18:30:46 +02:00
Enums as string
This commit is contained in:
@@ -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
|
||||
}
|
Reference in New Issue
Block a user