2005-02-16 21:07:55 +00:00
|
|
|
using System;
|
|
|
|
using TechBot.IRCLibrary;
|
|
|
|
|
|
|
|
namespace TechBot.Library
|
|
|
|
{
|
2005-02-16 22:38:49 +00:00
|
|
|
public abstract class MessageContext
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public class ChannelMessageContext : MessageContext
|
2005-02-16 21:07:55 +00:00
|
|
|
{
|
2008-05-07 14:59:28 +00:00
|
|
|
private IrcChannel m_IrcChannel;
|
2005-02-16 21:07:55 +00:00
|
|
|
|
2008-05-07 14:59:28 +00:00
|
|
|
public IrcChannel Channel
|
|
|
|
{
|
|
|
|
get { return m_IrcChannel; }
|
|
|
|
}
|
2005-02-16 21:07:55 +00:00
|
|
|
|
2005-02-16 22:38:49 +00:00
|
|
|
public ChannelMessageContext(IrcChannel channel)
|
2005-02-16 21:07:55 +00:00
|
|
|
{
|
2008-05-07 14:59:28 +00:00
|
|
|
m_IrcChannel = channel;
|
2005-02-16 21:07:55 +00:00
|
|
|
}
|
|
|
|
}
|
2005-02-16 22:38:49 +00:00
|
|
|
|
|
|
|
public class UserMessageContext : MessageContext
|
|
|
|
{
|
2008-05-07 14:59:28 +00:00
|
|
|
private IrcUser m_IrcUser;
|
2005-02-16 22:38:49 +00:00
|
|
|
|
2008-05-07 14:59:28 +00:00
|
|
|
public IrcUser User
|
|
|
|
{
|
|
|
|
get { return m_IrcUser; }
|
|
|
|
}
|
2005-02-16 22:38:49 +00:00
|
|
|
|
|
|
|
public UserMessageContext(IrcUser user)
|
|
|
|
{
|
2008-05-07 14:59:28 +00:00
|
|
|
m_IrcUser = user;
|
2005-02-16 22:38:49 +00:00
|
|
|
}
|
|
|
|
}
|
2005-02-16 21:07:55 +00:00
|
|
|
}
|