blob: 28bf4feb72645684d4a36979598ef9a4c5e8fa24 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
}
|