using System.Collections.Generic;
using System.Diagnostics;
namespace Noikoio.RegexBot.ConfigItem
{
///
/// Represents known information about a Discord guild (server) and other associated data
///
class Server
{
private readonly string _name;
private ulong? _id;
private IEnumerable _rules;
private EntityList _moderators;
public string Name => _name;
public ulong? Id {
get => _id; set { if (!_id.HasValue) _id = value; }
}
public IEnumerable MatchResponseRules => _rules;
public EntityList Moderators => _moderators;
public Server(string name, ulong? id, IEnumerable rules, EntityList moderators)
{
_name = name;
_id = id;
_rules = rules;
_moderators = moderators;
Debug.Assert(_name != null && _rules != null && _moderators != null);
}
}
}