about summary refs log tree commit diff
path: root/IRCStates/ISupport.cs
diff options
context:
space:
mode:
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;