[HEADERS]
[reactos.git] / irc / TechBot / TechBot.Library / MessageContext.cs
1 using System;
2 using TechBot.IRCLibrary;
3
4 namespace TechBot.Library
5 {
6 public abstract class MessageContext
7 {
8 }
9
10 public class ChannelMessageContext : MessageContext
11 {
12 private IrcChannel m_IrcChannel;
13
14 public IrcChannel Channel
15 {
16 get { return m_IrcChannel; }
17 }
18
19 public ChannelMessageContext(IrcChannel channel)
20 {
21 m_IrcChannel = channel;
22 }
23 }
24
25 public class UserMessageContext : MessageContext
26 {
27 private IrcUser m_IrcUser;
28
29 public IrcUser User
30 {
31 get { return m_IrcUser; }
32 }
33
34 public UserMessageContext(IrcUser user)
35 {
36 m_IrcUser = user;
37 }
38 }
39 }