Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
algorizm #1
Member since Dec 2008 · 11 posts
Group memberships: Members
Show profile · Link to this post
Subject: send roster iq
hi. alex

following roster sendiq code

Matrix.Xmpp.Client.RosterIq ri = new Matrix.Xmpp.Client.RosterIq(IqType.get);
_XmppClient.IqFilter.SendIq(ri, IqRosterItem);

private void IqRosterItem(object sender, IqEventArgs e)
{
   //all roster list text result
   e.lq.Type.toString();

   //how to roster item event raise
   //for example   IqRosterItem(object sender, IqEventArgs e) like event handler ??

}

please answer me.
thanks alex.
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
  1. Matrix.Xmpp.Client.RosterIq ri = new Matrix.Xmpp.Client.RosterIq(IqType.get);
  2. _XmppClient.IqFilter.SendIq(ri, IqRosterItem);
  3.  
  4. private void IqRosterItem(object sender, IqEventArgs e)
  5. {
  6.    var r = Iq.Query as Roster;
  7.                    
  8.     foreach (RosterItem ri in r.GetRoster())   
  9.         OnRosterItem(this, new RosterEventArgs(ri));   
  10. }
  11.  
  12. private void OnRosterItem(object sender, Matrix.Xmpp.Roster.RosterEventArgs e)
  13. {
  14.    // your OnRosterItem event handler
  15. }

does this help you?
Avatar
algorizm #3
Member since Dec 2008 · 11 posts
Group memberships: Members
Show profile · Link to this post
Subject: send roster iq
thanks. alex

other one more question..
documentation relating to the use of matrix namespace contains for each class at all?
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
sorry but I don't understand your question. Can you please elaborate.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS