reactos/irc/TechBot/TechBot.Library/MessageContext.cs
Marc Piulachs d7b2077ed8 - code refactoring
- made more and more easily extensible:
   * commands automatically loaded from plugins dlls
   * declarative and automatic command parameter parsing
   * common code moved to base classes
- other fixes

svn path=/trunk/; revision=33344
2008-05-07 14:59:28 +00:00

39 lines
682 B
C#

using System;
using TechBot.IRCLibrary;
namespace TechBot.Library
{
public abstract class MessageContext
{
}
public class ChannelMessageContext : MessageContext
{
private IrcChannel m_IrcChannel;
public IrcChannel Channel
{
get { return m_IrcChannel; }
}
public ChannelMessageContext(IrcChannel channel)
{
m_IrcChannel = channel;
}
}
public class UserMessageContext : MessageContext
{
private IrcUser m_IrcUser;
public IrcUser User
{
get { return m_IrcUser; }
}
public UserMessageContext(IrcUser user)
{
m_IrcUser = user;
}
}
}