hermes-server/ServerConfiguration.cs

32 lines
841 B
C#
Raw Permalink Normal View History

using HermesSocketServer.Store.Internal;
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;
}
public class WebsocketServerConfiguration
{
2024-12-28 17:24:02 +00:00
public required string Host;
public required string Port;
}
public class DatabaseConfiguration
{
2024-12-28 17:24:02 +00:00
public required string ConnectionString;
public int SaveDelayInSeconds;
public required IDictionary<string, DatabaseTable> Tables;
}
public class TTSConfiguration
{
public long OwnerId;
2024-12-28 17:24:02 +00:00
public required string DefaultTtsVoice;
}
}