diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-05-30 04:00:45 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-01 01:59:07 +1000 |
| commit | abe500bdb2cee643a593fe11286be383bd481af9 (patch) | |
| tree | 4433115d6797f23f3699bddf0029f5a828603dec /Tag.cs | |
| parent | c3e9d39034e5afc3f2c3a12c8c7682eabe360b7d (diff) | |
Added tag source to API tag model
Diffstat (limited to 'Tag.cs')
| -rw-r--r-- | Tag.cs | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1,12 +1,8 @@ -using System.ComponentModel.DataAnnotations.Schema; +using HyperBooru.ApiModels; +using System.ComponentModel.DataAnnotations.Schema; namespace HyperBooru; -public enum TagSource { - Internal, - UserTag -} - public class TagDefinition : HBObject { public TagSource Source { get; set; } = TagSource.Internal; public string? Namespace { get; set; } @@ -16,6 +12,7 @@ public class TagDefinition : HBObject { public static explicit operator ApiModels.TagDefinition(TagDefinition tagDefinition) => new() { TagDefinitionId = tagDefinition.Guid, + Source = tagDefinition.Source, Namespace = tagDefinition.Namespace, Name = tagDefinition.Name, Alias = tagDefinition.Alias, |
