about summary refs log tree commit diff
path: root/IRCStates/User.cs
diff options
context:
space:
mode:
Diffstat (limited to 'IRCStates/User.cs')
-rw-r--r--IRCStates/User.cs33
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;
+        }
+    }
+}