Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
Obi #1
Member since Nov 2014 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: Complex Iq class
Hi,
I need to send IQ packet to component that query more complex class than weather class in tutorial.
For example I want send PersonList back from component to client.
How should I build it like weather class?

  1. class Person
  2. {
  3.      public string name;
  4.      public string city;
  5. }
  6.  
  7. class PersonList
  8. {
  9.      List<Person> persons;
  10.  
  11.      public PersonList()
  12.      {
  13.            persons = new List<Person>();
  14.      }
  15. }
This post was edited on 2014-11-23, 12:24 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I suggest to take a look at the agsXMPP source codes. Similar stuff is used very often in agsXMPP, eg. in the roster classes.

Regards,
Alex
Avatar
Obi #3
Member since Nov 2014 · 6 posts
Group memberships: Members
Show profile · Link to this post
Roster and RosterItem classes exactly what I want.
Thank you
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: agsXMPP RSS