Support private messages
[reactos.git] / irc / TechBot / TechBot.Library / MessageContext.cs
index dca3925..8d1728a 100644 (file)
@@ -3,7 +3,13 @@ using TechBot.IRCLibrary;
 \r
 namespace TechBot.Library\r
 {\r
-       public class MessageContext\r
+       public abstract class MessageContext\r
+       {\r
+       }\r
+\r
+\r
+\r
+       public class ChannelMessageContext : MessageContext\r
        {\r
                private IrcChannel channel;\r
 \r
@@ -15,9 +21,29 @@ namespace TechBot.Library
                        }\r
                }\r
                \r
-               public MessageContext(IrcChannel channel)\r
+               public ChannelMessageContext(IrcChannel channel)\r
                {\r
                        this.channel = channel;\r
                }\r
        }\r
+\r
+       \r
+       \r
+       public class UserMessageContext : MessageContext\r
+       {\r
+               private IrcUser user;\r
+\r
+               public IrcUser User\r
+               {\r
+                       get\r
+                       {\r
+                               return user;\r
+                       }\r
+               }\r
+               \r
+               public UserMessageContext(IrcUser user)\r
+               {\r
+                       this.user = user;\r
+               }\r
+       }\r
 }\r