added media class

This commit is contained in:
2026-03-28 23:14:51 -04:00
parent 3a5dde9ee3
commit b8d01b567c
6 changed files with 47 additions and 17 deletions
+8
View File
@@ -20,6 +20,7 @@ public class Media
public string[] Tags { get; set; } = [];
public Size? Dimensions { get; set; }
public Dictionary<ThumbnailSize, ObjectId> Thumbnails { get; set; } = [];
public MediaClass Class { get; set; }
public static readonly Dictionary<string, MediaType> KnownTypes = new()
@@ -116,4 +117,11 @@ public enum MediaType
Text,
Code,
Raw
}
public enum MediaClass
{
Standard,
NSFW,
Secret
}