summary refs log tree commit diff
path: root/extra/admin-api/Spacebar.AdminApi.Models/FileMetadataModel.cs
blob: dfc577a90269ab473b98f2f4b7db3cec3d4e46fc (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.AdminApi.Models;

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
    }
}