2024-12-31 18:31:21 +00:00
|
|
|
using HermesSocketServer.Store.Internal;
|
|
|
|
|
2024-06-24 22:21:59 +00:00
|
|
|
namespace HermesSocketServer
|
|
|
|
{
|
|
|
|
public class ServerConfiguration
|
|
|
|
{
|
2024-12-28 17:24:02 +00:00
|
|
|
public required string Environment;
|
|
|
|
public required WebsocketServerConfiguration WebsocketServer;
|
|
|
|
public required DatabaseConfiguration Database;
|
|
|
|
public required TTSConfiguration Tts;
|
|
|
|
public string? AdminPassword;
|
2024-06-24 22:21:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public class WebsocketServerConfiguration
|
|
|
|
{
|
2024-12-28 17:24:02 +00:00
|
|
|
public required string Host;
|
|
|
|
public required string Port;
|
2024-06-24 22:21:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public class DatabaseConfiguration
|
|
|
|
{
|
2024-12-28 17:24:02 +00:00
|
|
|
public required string ConnectionString;
|
2024-10-18 03:21:16 +00:00
|
|
|
public int SaveDelayInSeconds;
|
2024-12-31 18:31:21 +00:00
|
|
|
public required IDictionary<string, DatabaseTable> Tables;
|
2024-06-24 22:21:59 +00:00
|
|
|
}
|
2024-10-19 01:50:46 +00:00
|
|
|
|
|
|
|
public class TTSConfiguration
|
|
|
|
{
|
|
|
|
public long OwnerId;
|
2024-12-28 17:24:02 +00:00
|
|
|
public required string DefaultTtsVoice;
|
2024-10-19 01:50:46 +00:00
|
|
|
}
|
2024-06-24 22:21:59 +00:00
|
|
|
}
|