Exemple #1
0
 public MessageEventArgs(S22.Xmpp.Jid jid, S22.Xmpp.Im.Message message)
 {
     jid.ThrowIfNull <S22.Xmpp.Jid>("jid");
     message.ThrowIfNull <S22.Xmpp.Im.Message>("message");
     this.Jid     = jid;
     this.Message = message;
 }
Exemple #2
0
 public void SendMessage(S22.Xmpp.Im.Message message)
 {
     this.AssertValid(true);
     message.ThrowIfNull <S22.Xmpp.Im.Message>("message");
     message.From = this.Jid;
     foreach (XmppExtension extension in this.extensions)
     {
         IOutputFilter <S22.Xmpp.Im.Message> filter = extension as IOutputFilter <S22.Xmpp.Im.Message>;
         if (filter != null)
         {
             filter.Output(message);
         }
     }
     this.core.SendMessage(message);
 }