mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-16 10:20:46 +02:00
Enums as string
This commit is contained in:
@@ -146,12 +146,11 @@ public class Manga : Identifiable
|
||||
public override string ToString() => $"{base.ToString()} {Name}";
|
||||
}
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum MangaReleaseStatus : byte
|
||||
public enum MangaReleaseStatus
|
||||
{
|
||||
Continuing = 0,
|
||||
Completed = 1,
|
||||
OnHiatus = 2,
|
||||
Cancelled = 3,
|
||||
Unreleased = 4
|
||||
Continuing,
|
||||
Completed,
|
||||
OnHiatus,
|
||||
Cancelled,
|
||||
Unreleased
|
||||
}
|
Reference in New Issue
Block a user