diff options
author | Ben Harris <ben@tilde.team> | 2020-05-14 23:06:10 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2020-05-14 23:17:47 -0400 |
commit | 21f1e95fb8e935134a969bc3d729964d8d2aadfa (patch) | |
tree | db2be27e9b5ac48e19f92b56cbad68ab59f7099e /IRCStates/User.cs | |
parent | 304df7805b9925c2edd992fd4177eef80197f807 (diff) |
rename Irc to IRC
Diffstat (limited to 'IRCStates/User.cs')
-rw-r--r-- | IRCStates/User.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/IRCStates/User.cs b/IRCStates/User.cs new file mode 100644 index 0000000..5e18443 --- /dev/null +++ b/IRCStates/User.cs @@ -0,0 +1,33 @@ +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; + } + } +} |