1 files changed, 35 insertions, 0 deletions
diff --git a/extra/admin-api/Spacebar.ConfigModel/GeneralConfiguration.cs b/extra/admin-api/Spacebar.ConfigModel/GeneralConfiguration.cs
new file mode 100644
index 00000000..1e006759
--- /dev/null
+++ b/extra/admin-api/Spacebar.ConfigModel/GeneralConfiguration.cs
@@ -0,0 +1,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;
+}
\ No newline at end of file
|