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

70 lines
2.5 KiB
C#
Raw Normal View History

namespace CodexDiscordBotPlugin
2023-10-24 08:06:07 +00:00
{
public class DiscordBotStartupConfig
{
2024-02-19 08:11:36 +00:00
public DiscordBotStartupConfig(string name, string token, string serverName, string adminRoleName, string adminChannelName, string kubeNamespace, DiscordBotGethInfo gethInfo, string rewardChannelName)
2023-10-24 08:06:07 +00:00
{
Name = name;
Token = token;
ServerName = serverName;
AdminRoleName = adminRoleName;
AdminChannelName = adminChannelName;
KubeNamespace = kubeNamespace;
GethInfo = gethInfo;
2024-02-19 08:11:36 +00:00
RewardChannelName = rewardChannelName;
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; }
2024-02-19 08:11:36 +00:00
public string RewardChannelName { 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
}
2024-01-31 16:52:02 +00:00
public class RewarderBotStartupConfig
{
public RewarderBotStartupConfig(string name, string discordBotHost, int discordBotPort, int intervalMinutes, DateTime historyStartUtc, DiscordBotGethInfo gethInfo, string? dataPath)
2024-01-31 16:52:02 +00:00
{
Name = name;
2024-01-31 16:52:02 +00:00
DiscordBotHost = discordBotHost;
DiscordBotPort = discordBotPort;
IntervalMinutes = intervalMinutes;
2024-01-31 16:52:02 +00:00
HistoryStartUtc = historyStartUtc;
GethInfo = gethInfo;
DataPath = dataPath;
}
public string Name { get; }
2024-01-31 16:52:02 +00:00
public string DiscordBotHost { get; }
public int DiscordBotPort { get; }
2024-05-24 13:34:42 +00:00
public int IntervalMinutes { get; }
2024-01-31 16:52:02 +00:00
public DateTime HistoryStartUtc { 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; }
}
2023-10-24 08:06:07 +00:00
}