summary refs log tree commit diff
path: root/extra/admin-api/Models/Spacebar.Models.AdminApi/FileMetadataModel.cs
blob: 56c5eaf5164591a5337213aae89e3e8d946aa78c (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
using System.Text.Json.Serialization;

namespace Spacebar.Models.AdminApi;

public class FileMetadataModel {
    public string UserId { get; set; } = null!;
    public string Id { get; set; } = null!;
    
    [JsonConverter(typeof(JsonStringEnumConverter<FileUploadType>))]
    public FileUploadType Type { get; set; }


    public enum FileUploadType {
        Attachment,
        Avatar,
        Banner,
        GuildIcon,
        GuildSplash,
        GuildCover,
        Emoji,
        Sticker
    }
}