From aabf66382b7f1041b11241555af33634882f190c Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 6 May 2020 02:04:00 -0400 Subject: add ISUPPORT tests --- IrcStates/ISupportChanModes.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 IrcStates/ISupportChanModes.cs (limited to 'IrcStates/ISupportChanModes.cs') 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 {split[0]}; + SettingBModes = new List {split[1]}; + SettingCModes = new List {split[2]}; + SettingDModes = new List {split[3]}; + } + + public List ListModes { get; set; } + public List SettingBModes { get; set; } + public List SettingCModes { get; set; } + public List SettingDModes { get; set; } + } +} -- cgit 1.4.1