diff options
author | Ben Harris <ben@tilde.team> | 2020-05-06 02:04:00 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2020-05-06 02:04:00 -0400 |
commit | aabf66382b7f1041b11241555af33634882f190c (patch) | |
tree | fa21b31323a83fa87e5071370326e69e7253add7 /IrcStates/ISupportChanModes.cs | |
parent | b3c1a9a929d5f57e3c760087ec9e9950bd1e7aff (diff) |
add ISUPPORT tests
Diffstat (limited to 'IrcStates/ISupportChanModes.cs')
-rw-r--r-- | IrcStates/ISupportChanModes.cs | 23 |
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; } + } +} |