cs-codex-dist-tests/ProjectPlugins/CodexDiscordBotPlugin/DiscordBotStartupConfig.cs

46 lines
1.5 KiB
C#
Raw Normal View History

namespace CodexDiscordBotPlugin
2023-10-24 08:06:07 +00:00
{
public class DiscordBotStartupConfig
{
public DiscordBotStartupConfig(string name, string token, string serverName, string adminRoleName, string adminChannelName, string kubeNamespace, DiscordBotGethInfo gethInfo)
2023-10-24 08:06:07 +00:00
{
Name = name;
Token = token;
ServerName = serverName;
AdminRoleName = adminRoleName;
AdminChannelName = adminChannelName;
KubeNamespace = kubeNamespace;
GethInfo = gethInfo;
2023-10-24 08:06:07 +00:00
}
public string Name { get; }
public string Token { get; }
public string ServerName { get; }
public string AdminRoleName { get; }
public string AdminChannelName { get; }
public string KubeNamespace { get; }
public DiscordBotGethInfo GethInfo { get; }
2023-10-25 09:53:33 +00:00
public string? DataPath { get; set; }
2023-10-24 08:06:07 +00:00
}
public class DiscordBotGethInfo
{
public DiscordBotGethInfo(string host, int port, string privKey, string marketplaceAddress, string tokenAddress, string abi)
{
Host = host;
Port = port;
PrivKey = privKey;
MarketplaceAddress = marketplaceAddress;
TokenAddress = tokenAddress;
Abi = abi;
}
public string Host { get; }
public int Port { get; }
public string PrivKey { get; }
public string MarketplaceAddress { get; }
public string TokenAddress { get; }
public string Abi { get; }
}
2023-10-24 08:06:07 +00:00
}