about summary refs log tree commit diff
path: root/IrcStates/ISupportChanModes.cs
diff options
context:
space:
mode:
Diffstat (limited to 'IrcStates/ISupportChanModes.cs')
-rw-r--r--IrcStates/ISupportChanModes.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/IrcStates/ISupportChanModes.cs b/IrcStates/ISupportChanModes.cs
new file mode 100644
index 0000000..9bf565c
--- /dev/null
+++ b/IrcStates/ISupportChanModes.cs
@@ -0,0 +1,23 @@
+using System.Collections.Generic;
+
+namespace IrcStates
+{
+    public class ISupportChanModes
+    {
+        public ISupportChanModes(string splitVal)
+        {
+            if (splitVal == null) return;
+
+            var split = splitVal.Split(',', 4);
+            ListModes     = new List<string> {split[0]};
+            SettingBModes = new List<string> {split[1]};
+            SettingCModes = new List<string> {split[2]};
+            SettingDModes = new List<string> {split[3]};
+        }
+
+        public List<string> ListModes { get; set; }
+        public List<string> SettingBModes { get; set; }
+        public List<string> SettingCModes { get; set; }
+        public List<string> SettingDModes { get; set; }
+    }
+}