Exemple #1
0
 public QuitEventArgs(IrcUser sender, string message)
 {
     this.Sender  = sender;
     this.Message = message;
 }
Exemple #2
0
 public NicknameChangeEventArgs(IrcUser sender, string newNickname)
 {
     this.Sender      = sender;
     this.NewNickname = newNickname;
 }
Exemple #3
0
 public PrivateMessageEventArgs(IrcUser sender, string target, string message)
 {
     this.Sender  = sender;
     this.Target  = target;
     this.Message = message;
 }
Exemple #4
0
 public IrcUserEventArgs(IrcUser user)
 {
     this.User = user;
 }
Exemple #5
0
 public InviteEventArgs(IrcUser sender, string target, string channel)
 {
     this.Sender  = sender;
     this.Target  = target;
     this.Channel = channel;
 }
Exemple #6
0
 public ChannelModesSetEventArgs(IrcUser sender, IrcChannel channel, IList <ModeChange> modes)
 {
     this.Sender  = sender;
     this.Channel = channel;
     this.Modes   = new ReadOnlyCollection <ModeChange>(modes);
 }
Exemple #7
0
 public ChannelPartEventArgs(IrcUser sender, IrcChannel channel, string message)
 {
     this.Sender  = sender;
     this.Channel = channel;
     this.Message = message;
 }
Exemple #8
0
 public ChannelLimitEventArgs(IrcUser sender, IrcChannel channel, int limit)
 {
     this.Sender  = sender;
     this.Channel = channel;
     this.Limit   = limit;
 }
Exemple #9
0
 public ChannelKeyEventArgs(IrcUser sender, IrcChannel channel, string key)
 {
     this.Sender  = sender;
     this.Channel = channel;
     this.Key     = key;
 }
Exemple #10
0
 public ChannelJoinEventArgs(IrcUser sender, IrcChannel channel, Task namesTask)
 {
     this.Sender    = sender;
     this.Channel   = channel;
     this.NamesTask = namesTask;
 }
Exemple #11
0
 public ChannelJoinEventArgs(IrcUser sender, IrcChannel channel)
 {
     this.Sender  = sender;
     this.Channel = channel;
 }
Exemple #12
0
 /// <summary>Initializes a new <see cref="MessageAsyncRequest"/> waiting for the specified type of message from the specified user to the specified target.</summary>
 /// <param name="user">The user to listen for a message from.</param>
 /// <param name="target">The entity to listen for a message to, which should be either the local user or a channel.</param>
 /// <param name="notice">Specifies whether to listen for a NOTICE instead of a PRIVMSG.</param>
 public MessageAsyncRequest(IrcUser user, IrcMessageTarget target, bool notice) : base(notice ? repliesNotice : repliesPrivmsg)
 {
     this.user   = user;
     this.target = target;
 }