ircsharp/IRCStates/User.cs

29 lines
784 B
C#
Raw Permalink Normal View History

using System.Collections.Generic;
2020-05-15 03:06:10 +00:00
namespace IRCStates
{
public class User
{
2020-05-17 02:08:40 +00:00
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; }
2023-11-07 22:54:58 +00:00
public HashSet<string> Channels { get; private set; } = new HashSet<string>();
public override string ToString()
{
return $"User(nickname={NickName})";
}
public void SetNickName(string nick, string nickLower)
{
2020-04-28 04:35:52 +00:00
NickName = nick;
NickNameLower = nickLower;
}
}
}