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.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/IrcStates/User.cs b/IrcStates/User.cs
new file mode 100644
index 0000000..9bc5ce8
--- /dev/null
+++ b/IrcStates/User.cs
@@ -0,0 +1,28 @@
+using System.Collections.Generic;
+
+namespace IrcStates
+{
+    public class User
+    {
+        private string NickName;
+        private string NickNameLower;
+
+        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;
+        }
+    }
+}