46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
namespace CodexDiscordBotPlugin
|
|
{
|
|
public class DiscordBotStartupConfig
|
|
{
|
|
public DiscordBotStartupConfig(string name, string token, string serverName, string adminRoleName, string adminChannelName, string kubeNamespace, DiscordBotGethInfo gethInfo)
|
|
{
|
|
Name = name;
|
|
Token = token;
|
|
ServerName = serverName;
|
|
AdminRoleName = adminRoleName;
|
|
AdminChannelName = adminChannelName;
|
|
KubeNamespace = kubeNamespace;
|
|
GethInfo = gethInfo;
|
|
}
|
|
|
|
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; }
|
|
public string? DataPath { get; set; }
|
|
}
|
|
|
|
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; }
|
|
}
|
|
}
|