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; } } }