Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
Esofter #1
Member since Oct 2009 · 20 posts
Group memberships: Members
Show profile · Link to this post
Subject: Simple question
Hello.
I have a problem with getting all groups and users.
what methods returns it?
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you get all users and the groups they belong to in the OnRoster event at login when AutoRoster is set to true.

Alex
Avatar
Esofter #3
Member since Oct 2009 · 20 posts
Group memberships: Members
Show profile · Link to this post
Thank you!
I use the OnRosterItem event where through item we can get group name and user name.
I chack if this group not get yet, add this group to listgroups. Is it correct decision?
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
rItem.Name gives you the nickname if one is set.
rItem.GetGroups() gives you a list of groups the contact belongs to.

Alex
Avatar
Esofter #5
Member since Oct 2009 · 20 posts
Group memberships: Members
Show profile · Link to this post
Alex, how I can set status to another user.
For example I have user-friend user1. Can I set him status?
Avatar
Alex #6
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
please study the MiniClient example, all you need is there.

Alex
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