about summary refs log tree commit diff
path: root/IRCStates/ISupport.cs
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2020-05-16 22:08:40 -0400
committerBen Harris <ben@tilde.team>2020-05-16 22:08:40 -0400
commita1e1922e62419de75d2909dfae1ee7caa9ed487f (patch)
tree9198d3edbe1363df38fc03e30e4d247be9dd8e60 /IRCStates/ISupport.cs
parenta03daca3d4f52af4fecbb263526a0d61d17776fd (diff)
Add xmldocs, and handle null bytes
Diffstat (limited to 'IRCStates/ISupport.cs')
-rw-r--r--IRCStates/ISupport.cs32
1 files changed, 18 insertions, 14 deletions
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<string, string> 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<string> ChanTypes { get; set; }
-        public List<string> 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<string, string> 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<string> ChanTypes { get; private set; }
+        public List<string> 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; }
 
+        /// <summary>
+        /// Parse the ISupport values from the line's parameters
+        /// </summary>
+        /// <param name="tokens"></param>
         public void Parse(IEnumerable<string> tokens)
         {
             if (tokens == null) return;