mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
d57dd016c4
svn path=/trunk/; revision=13610
49 lines
643 B
C#
49 lines
643 B
C#
using System;
|
|
using TechBot.IRCLibrary;
|
|
|
|
namespace TechBot.Library
|
|
{
|
|
public abstract class MessageContext
|
|
{
|
|
}
|
|
|
|
|
|
|
|
public class ChannelMessageContext : MessageContext
|
|
{
|
|
private IrcChannel channel;
|
|
|
|
public IrcChannel Channel
|
|
{
|
|
get
|
|
{
|
|
return channel;
|
|
}
|
|
}
|
|
|
|
public ChannelMessageContext(IrcChannel channel)
|
|
{
|
|
this.channel = channel;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public class UserMessageContext : MessageContext
|
|
{
|
|
private IrcUser user;
|
|
|
|
public IrcUser User
|
|
{
|
|
get
|
|
{
|
|
return user;
|
|
}
|
|
}
|
|
|
|
public UserMessageContext(IrcUser user)
|
|
{
|
|
this.user = user;
|
|
}
|
|
}
|
|
}
|