Questions about Chat

I have some questions about the Chat class.

How can i get the contacts present in chat?

How can i invite anyone to chat that i created?

Have any way to attach a object to chat, so when i received an processMessage(Chat, Message), i can get this object.

Anyone can help me?

Hello,

Below are a some links that should answer your questions.

How can i get the contacts present in chat?

You’ll want to take a look at the getPresence method in the Roster class.

How can i invite anyone to chat that i created?

Take a look at the sample code in the GroupChatInvitation javadocs.

Have any way to attach a object to chat, so when i received an processMessage(Chat, Message), i can get this object.

The easiest way to do this by using Smacks Packet Properties.

Good luck,
Ryan