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

namespace Spacebar.ConfigModel;

public class DefaultsConfiguration
{
    [JsonPropertyName("guild")] public GuildDefaults Guild = new();
    [JsonPropertyName("user")] public ChannelDefaults Channel = new();
}

public class GuildDefaults
{
    [JsonPropertyName("maxPresences")] public int MaxPresences { get; set; } = 250000;

    [JsonPropertyName("maxVideoChannelUsers")]
    public int MaxVideoChannelUsers { get; set; } = 200;

    [JsonPropertyName("afkTimeout")] public int AfkTimeout { get; set; } = 300;

    [JsonPropertyName("defaultMessageNotifications")]
    public int DefaultMessageNotifications { get; set; } = 1;

    [JsonPropertyName("explicitContentFilter")]
    public int ExplicitContentFilter { get; set; } = 0;
}

public class ChannelDefaults
{
    [JsonPropertyName("premium")]
    public bool Premium { get; set; } = true;

    [JsonPropertyName("premiumType")]
    public int PremiumType { get; set; } = 2;

    [JsonPropertyName("verified")]
    public bool Verified { get; set; } = true;
}