示例#1
0
 internal KickEvent(User sender, Channel channel, User target, string message)
 {
     _sender = sender;
     _channel = channel;
     _target = target;
     _message = message;
 }
示例#2
0
 internal TopicEvent(User sender, Channel channel, string topic)
 {
     _sender = sender;
     _channel = channel;
     _topic = topic;
 }
示例#3
0
 internal JoinEvent(User sender, Channel channel)
 {
     _sender = sender;
     _channel = channel;
 }
示例#4
0
 internal PartEvent(User sender, Channel channel, string message)
 {
     _sender = sender;
     _channel = channel;
     _message = message;
 }
示例#5
0
 internal ChannelMessageEvent(User sender, Channel target, MessageType mtype, string message)
     : base(sender, target, mtype, message)
 {
 }
示例#6
0
 internal ChannelModeEvent(User sender, Channel channel, string mode)
     : base(channel, mode)
 {
     _sender = sender;
     _channel = channel;
 }
示例#7
0
 /// <summary>
 /// Gets all channels known by IRCQueue.
 /// </summary>
 /// <returns>An array containing all known channels.</returns>
 public Channel[] GetChannels() {
     IRC.ChannelData[] cl;
     lock (Cs.Irc.Entities) cl = Cs.Irc.Entities.GetChannels();
     Channel[] ncl = new Channel[cl.Length];
     for (int i = 0; i < cl.Length; i++) {
         ncl[i] = (Channel)cl[i];
     }
     return ncl;
 }