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

namespace Spacebar.ConfigModel;

public class GeneralConfiguration {
    [JsonPropertyName("instanceName")]
    public string InstanceName { get; set; } = "Spacebar Instance";

    [JsonPropertyName("serverName")]
    public string? ServerName { get; set; } = null;

    [JsonPropertyName("instanceDescription")]
    public string InstanceDescription { get; set; } = "This is a Spacebar instance made in the pre-release days";

    [JsonPropertyName("frontPage")]
    public string? FrontPage { get; set; } = null;

    [JsonPropertyName("tosPage")]
    public string? TosPage { get; set; } = null;

    [JsonPropertyName("correspondenceEmail")]
    public string? CorrespondenceEmail { get; set; } = null;

    [JsonPropertyName("correspondenceUserID")]
    public string? CorrespondenceUserID { get; set; } = null;

    [JsonPropertyName("image")]
    public string? Image { get; set; } = null;

    [JsonPropertyName("instanceId")]
    public string InstanceId { get; set; } = null!; // {get;set;}=Snowflake.generate();

    [JsonPropertyName("autoCreateBotUsers")]
    public bool AutoCreateBotUsers { get; set; } = false;
}