how can i list one chatroom 's Contact - WeOnlyDo Discussion board

how can i list one chatroom 's Contact (wodXMPP)

by zyq11111111, Sunday, January 23, 2011, 15:53 (5051 days ago)

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

by wodDamir, Sunday, January 23, 2011, 16:09 (5051 days ago) @ zyq11111111

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

by zyq11111111, Sunday, January 23, 2011, 16:39 (5051 days ago) @ wodDamir

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

by wodDamir, Sunday, January 23, 2011, 18:31 (5051 days ago) @ zyq11111111

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