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
|
|
|
{
|
|
|
|
private IrcChannel channel;
|
|
|
|
|
|
|
|
public IrcChannel Channel
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return channel;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-02-16 22:38:49 +00:00
|
|
|
public ChannelMessageContext(IrcChannel channel)
|
2005-02-16 21:07:55 +00:00
|
|
|
{
|
|
|
|
this.channel = channel;
|
|
|
|
}
|
|
|
|
}
|
2005-02-16 22:38:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class UserMessageContext : MessageContext
|
|
|
|
{
|
|
|
|
private IrcUser user;
|
|
|
|
|
|
|
|
public IrcUser User
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return user;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public UserMessageContext(IrcUser user)
|
|
|
|
{
|
|
|
|
this.user = user;
|
|
|
|
}
|
|
|
|
}
|
2005-02-16 21:07:55 +00:00
|
|
|
}
|