about summary refs log blame commit diff
path: root/IRCStates/User.cs
blob: 5e18443039248409ee33ce5c5b2a0e111f5afc4b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                    
                   


                     




                                             

                                                 














                                                              
                                 



                                      
using System.Collections.Generic;

namespace IRCStates
{
    public class User
    {
        public User()
        {
            Channels = new HashSet<string>();
        }

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