how can i list one chatroom 's Contact (wodXMPP)
after i join a chatroom
_wodXMPP1_ContactStatusChange can tell me other Contact in or out
but i dont know where in join a chatroom .this chatroom already being
Contact
then i use Room.GetContacts () but cant fire any
tks
Re: how can i list one chatroom 's Contact
Hi,
Did you try iterating thru Contacts collection of ChatRoom object?
I.e:
For i=0 TO Room.Contacts - 1
...do something
Next
Regards,
Damba
Re: how can i list one chatroom 's Contact
no
i just wanna kown a chatroom have how many Contacts
just like my jid is s1@gmail.com
and my friend is s12@gmail.com
we all join a chatroom
how can i kown when i join this chatroom
this chatroom have s12@gmail.com?or other xxxx@gmail.com
Re: how can i list one chatroom 's Contact
Hi,
I'm not really sure i understand what exactly the problem is.
If you need number of users in some chatroom you can use Room.Contacts.Count. As for notifications when a user joins a chatroom you can use ContactStatusChanged event where Room parameter will contain Chatroom object for which the change occured.
If i misunderstood what the problem is, please let me know.
Regards,
Damba