about summary refs log blame commit diff
path: root/IrcStates/User.cs
blob: b9a957097b9a9f36b42234bbcdc40b3899300d11 (plain) (tree)
1
2
3
4
5
6
7
8





                                    

                                                 














                                                              
                                 



                                      
using System.Collections.Generic;

namespace IrcStates
{
    public class User
    {
        public string NickName { get; set; }
        public string NickNameLower { get; 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<string> Channels { get; set; }

        public override string ToString()
        {
            return $"User(nickname={NickName})";
        }

        public void SetNickName(string nick, string nickLower)
        {
            NickName      = nick;
            NickNameLower = nickLower;
        }
    }
}