about summary refs log tree commit diff
path: root/IrcStates/User.cs
blob: b9a957097b9a9f36b42234bbcdc40b3899300d11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
        }
    }
}