summary refs log tree commit diff
path: root/extra/admin-api/Models/Spacebar.Models.Generic/Sticker.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-05-08 22:20:41 +0200
committerRory& <root@rory.gay>2026-05-08 22:20:41 +0200
commita39a44319647772552bc587f096cd1a7ab3c8c5e (patch)
tree86cb2c379ae55ba5baa082ec0d68c00bd35e65c9 /extra/admin-api/Models/Spacebar.Models.Generic/Sticker.cs
parentCompliance: add user_id and user_settings to login response (diff)
downloadserver-ts-a39a44319647772552bc587f096cd1a7ab3c8c5e.tar.xz
Update CS models
Diffstat (limited to 'extra/admin-api/Models/Spacebar.Models.Generic/Sticker.cs')
-rw-r--r--extra/admin-api/Models/Spacebar.Models.Generic/Sticker.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/extra/admin-api/Models/Spacebar.Models.Generic/Sticker.cs b/extra/admin-api/Models/Spacebar.Models.Generic/Sticker.cs
new file mode 100644

index 00000000..28bf4feb --- /dev/null +++ b/extra/admin-api/Models/Spacebar.Models.Generic/Sticker.cs
@@ -0,0 +1,38 @@ +using System.Text.Json.Serialization; + +namespace Spacebar.Models.Generic; + +public class Sticker { + [JsonPropertyName("id"), JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)] + public required long Id { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("description")] + public string Description { get; set; } + + [JsonPropertyName("tags")] + public string Tags { get; set; } + + [JsonPropertyName("available")] + public bool Available { get; set; } + + [JsonPropertyName("type")] + public StickerType Type { get; set; } + + [JsonPropertyName("format_type")] + public StickerFormatType FormatType { get; set; } +} + +public enum StickerType { + Standard = 1, + Guild = 2 +} + +public enum StickerFormatType { + Png = 1, + Apng = 2, + Lottie = 3, + Gif = 4 +} \ No newline at end of file