From abe500bdb2cee643a593fe11286be383bd481af9 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Sat, 30 May 2026 04:00:45 +1000 Subject: Added tag source to API tag model --- Tag.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Tag.cs') 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, -- cgit v1.3