using System.Collections.Generic; namespace IRCStates { public class User { public string NickName { get; private set; } public string NickNameLower { get; private set; } public string UserName { get; set; } public string HostName { get; set; } public string RealName { get; set; } public string Account { get; set; } public string Away { get; set; } public HashSet Channels { get; private set; } = new HashSet(); public override string ToString() { return $"User(nickname={NickName})"; } public void SetNickName(string nick, string nickLower) { NickName = nick; NickNameLower = nickLower; } } }