feat : 보스 전용채널 제거, 채널 5개로 변경, config.json 정리
This commit is contained in:
@@ -30,9 +30,15 @@ public sealed class ServerConfig
|
||||
get;
|
||||
}
|
||||
|
||||
public int ChannelCount
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
public ServerConfig(IConfigurationSection section)
|
||||
{
|
||||
Port = int.Parse(section["Port"] ?? throw new InvalidOperationException("Server:Port is required in config.json"));
|
||||
ChannelCount = int.Parse(section["ChannelCount"] ?? "1");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +54,11 @@ public sealed class RestApiConfig
|
||||
get;
|
||||
}
|
||||
|
||||
public string BossRaidAccess
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
public string ApiKey
|
||||
{
|
||||
get;
|
||||
@@ -57,6 +68,7 @@ public sealed class RestApiConfig
|
||||
{
|
||||
BaseUrl = section["BaseUrl"] ?? throw new InvalidOperationException("RestApi:BaseUrl is required in config.json");
|
||||
VerifyToken = section["VerifyToken"] ?? throw new InvalidOperationException("RestApi:BaseUrl is required in config.json");
|
||||
BossRaidAccess = section["BossRaidAccess"] ?? throw new InvalidOperationException("RestApi:BaseUrl is required in config.json");
|
||||
ApiKey = section["ApiKey"] ?? throw new InvalidOperationException("RestApi:ApiKey is required in config.json");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user