summary refs log tree commit diff
path: root/extra/admin-api/Models/Spacebar.Models.Api/DiscoverableGuild.cs
blob: 334facd92d8ab9f77d74ab9f9530275ee480003e (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
using System.Diagnostics;
using System.Text.Json.Serialization;
using Spacebar.Models.Generic;

namespace Spacebar.Models.Api;

[DebuggerDisplay("{Id} ({Name})")]
public class DiscoverableGuild {
    [JsonPropertyName("id"), JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
    public required long Id { get; set; }

    [JsonPropertyName("name")]
    public string Name { get; set; }

    [JsonPropertyName("icon")]
    public string? Icon { get; set; }

    [JsonPropertyName("description")]
    public string? Description { get; set; }

    [JsonPropertyName("banner")]
    public string? Banner { get; set; }
    
    [JsonPropertyName("discovery_splash")]
    public string? DiscoverySplash { get; set; }

    [JsonPropertyName("emojis")]
    public List<Emoji> Emojis { get; set; }
    
    [JsonPropertyName("emoji_count")]
    public int EmojiCount { get; set; }

    [JsonPropertyName("features")]
    public List<string> Features { get; set; }
    
    [JsonPropertyName("preferred_locale")]
    public string PreferredLocale { get; set; }

    [JsonPropertyName("premium_subscription_count")]
    public int PremiumSubscriptionCount { get; set; }

    [JsonPropertyName("splash")]
    public string? Splash { get; set; }

    [JsonPropertyName("stickers")]
    public List<Sticker> Stickers { get; set; }
    
    [JsonPropertyName("sticker_count")]
    public int StickerCount { get; set; }
    
    [JsonPropertyName("vanity_url_code")]
    public string? VanityUrlCode { get; set; }
    
    [JsonPropertyName("approximate_member_count")]
    public int ApproximateMemberCount { get; set; }
    
    [JsonPropertyName("approximate_presence_count")]
    public int ApproximatePresenceCount { get; set; }
    
    [JsonPropertyName("auto_removed")]
    public bool AutoRemoved { get; set; }
    
    [JsonPropertyName("primary_category_id")]
    public short PrimaryCategoryId { get; set; }
    
    [JsonPropertyName("primary_category")]
    public DiscoveryCategory PrimaryCategory { get; set; }
    
    [JsonPropertyName("keywords")]
    public List<string> Keywords { get; set; }
    
    [JsonPropertyName("is_published")]
    public bool IsPublished { get; set; }
    
    [JsonPropertyName("reasons_to_join")]
    public List<DiscoveryReason> ReasonsToJoin { get; set; }
    
    [JsonPropertyName("social_links")]
    public List<string> SocialLinks { get; set; }
    
    [JsonPropertyName("about")]
    public string About { get; set; }
    
    [JsonPropertyName("category_ids")]
    public List<short> CategoryIds { get; set; }

    [JsonPropertyName("categories")]
    public List<DiscoveryCategory> Categories { get; set; }
    
    [JsonPropertyName("created_at")]
    public DateTime CreatedAt { get; set; }
    
    [JsonPropertyName("nsfw_properties")]
    public DiscoveryNsfwProperties NsfwProperties { get; set; }
}

public class DiscoveryCategory {
    public short Id { get; set; }
    public string Name { get; set; }
    public bool IsPrimary { get; set; }
}

public class DiscoveryReason {
    
}

public class DiscoveryNsfwProperties {
    
}