diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-05-30 04:00:45 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-04 13:48:12 +1000 |
| commit | a0faa4688437321bb9d6f438ceaaa1e6d338e930 (patch) | |
| tree | 979b2524da21d6e269199a024378ab583d3af8b0 /ApiModels.cs | |
| parent | e46203b3a3f514c82ddacd7ad882941c7075e1ff (diff) | |
Added tag source to API tag modeldev
Diffstat (limited to 'ApiModels.cs')
| -rw-r--r-- | ApiModels.cs | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/ApiModels.cs b/ApiModels.cs index 534f46b..6ac744e 100644 --- a/ApiModels.cs +++ b/ApiModels.cs @@ -7,6 +7,11 @@ public enum PathType { Unix } +public enum TagSource { + Internal = 0, + UserTag = 1 +} + public record Media { public Guid MediaId { get; init; } public string? ShortDescription { get; init; } @@ -33,11 +38,13 @@ public record UploadedFile { } public record TagDefinition { - public Guid TagDefinitionId { get; init; } - public string? Namespace { get; init; } - public string Name { get; init; } - public string? Alias { get; init; } - public Guid[] ImplicitTags { get; init; } + public Guid TagDefinitionId { get; init; } + [JsonConverter(typeof(JsonStringEnumConverter))] + public TagSource Source { get; init; } + public string? Namespace { get; init; } + public string Name { get; init; } + public string? Alias { get; init; } + public Guid[] ImplicitTags { get; init; } } public record User { |
