From a1e1922e62419de75d2909dfae1ee7caa9ed487f Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 16 May 2020 22:08:40 -0400 Subject: Add xmldocs, and handle null bytes --- IRCStates/ISupport.cs | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'IRCStates/ISupport.cs') diff --git a/IRCStates/ISupport.cs b/IRCStates/ISupport.cs index b8a5651..8dfcb0c 100644 --- a/IRCStates/ISupport.cs +++ b/IRCStates/ISupport.cs @@ -21,21 +21,25 @@ namespace IRCStates Whox = false; } - public Dictionary Raw { get; set; } - public string Network { get; set; } - public ISupportChanModes ChanModes { get; set; } - public ISupportPrefix Prefix { get; set; } - public int? Modes { get; set; } - public Casemap.CaseMapping CaseMapping { get; set; } - public List ChanTypes { get; set; } - public List StatusMsg { get; set; } - public string CallerId { get; set; } - public string Excepts { get; set; } - public string Invex { get; set; } - public int? Monitor { get; set; } - public int? Watch { get; set; } - public bool Whox { get; set; } + public Dictionary Raw { get; } + public string Network { get; private set; } + public ISupportChanModes ChanModes { get; private set; } + public ISupportPrefix Prefix { get; private set; } + public int? Modes { get; private set; } + public Casemap.CaseMapping CaseMapping { get; private set; } + public List ChanTypes { get; private set; } + public List StatusMsg { get; private set; } + public string CallerId { get; private set; } + public string Excepts { get; private set; } + public string Invex { get; private set; } + public int? Monitor { get; private set; } + public int? Watch { get; private set; } + public bool Whox { get; private set; } + /// + /// Parse the ISupport values from the line's parameters + /// + /// public void Parse(IEnumerable tokens) { if (tokens == null) return; -- cgit 1.4.1