2017-10-21 20:14:51 +00:00
|
|
|
|
using System.Collections.ObjectModel;
|
2017-06-23 19:31:47 +00:00
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
|
|
|
|
namespace Noikoio.RegexBot.ConfigItem
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents known information about a Discord guild (server) and other associated data
|
|
|
|
|
/// </summary>
|
2017-07-26 22:36:59 +00:00
|
|
|
|
class ServerConfig
|
2017-06-23 19:31:47 +00:00
|
|
|
|
{
|
2017-10-21 20:14:51 +00:00
|
|
|
|
private readonly ulong _id;
|
2017-06-23 19:31:47 +00:00
|
|
|
|
private EntityList _moderators;
|
2017-11-12 03:12:24 +00:00
|
|
|
|
private ReadOnlyDictionary<BotModule, object> _modData;
|
2017-06-23 19:31:47 +00:00
|
|
|
|
|
2017-10-21 20:14:51 +00:00
|
|
|
|
public ulong? Id => _id;
|
2017-06-23 19:31:47 +00:00
|
|
|
|
public EntityList Moderators => _moderators;
|
2017-11-12 03:12:24 +00:00
|
|
|
|
public ReadOnlyDictionary<BotModule, object> ModuleConfigs => _modData;
|
2017-06-23 19:31:47 +00:00
|
|
|
|
|
2017-11-12 03:12:24 +00:00
|
|
|
|
public ServerConfig(ulong id, EntityList moderators, ReadOnlyDictionary<BotModule, object> modconf)
|
2017-06-23 19:31:47 +00:00
|
|
|
|
{
|
|
|
|
|
_id = id;
|
|
|
|
|
_moderators = moderators;
|
2017-11-12 03:12:24 +00:00
|
|
|
|
_modData = modconf;
|
|
|
|
|
Debug.Assert(_moderators != null && _modData != null);
|
2017-06-23 19:31:47 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|