summaryrefslogtreecommitdiff
path: root/Tag.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-05-30 04:00:45 +1000
committerJake Mannens <jake@asger.xyz>2026-06-01 01:59:07 +1000
commitabe500bdb2cee643a593fe11286be383bd481af9 (patch)
tree4433115d6797f23f3699bddf0029f5a828603dec /Tag.cs
parentc3e9d39034e5afc3f2c3a12c8c7682eabe360b7d (diff)
Added tag source to API tag model
Diffstat (limited to 'Tag.cs')
-rw-r--r--Tag.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/Tag.cs b/Tag.cs
index c857c66..7da6232 100644
--- a/Tag.cs
+++ b/Tag.cs
@@ -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,