|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.xmpp.modules.chat.Chat
public class Chat
Representation chat with specified interlocutor.
| Field Summary | |
|---|---|
static EventType |
MessageReceived
|
| Constructor Summary | |
|---|---|
Chat(long id,
PacketWriter packetWriter,
SessionObject sessionObject)
Creates new chat representation object. |
|
| Method Summary | |
|---|---|
long |
getId()
Return internal identifier of chat object. |
JID |
getJid()
Returns interlocutor JID. |
SessionObject |
getSessionObject()
Return SessionObject related to this chat. |
String |
getThreadId()
Returns thread-id. |
void |
sendMessage(String body)
Sends message in current chat. |
void |
setJid(JID jid)
Sets interlocutor JID. |
void |
setThreadId(String threadId)
Sets thread-id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final EventType MessageReceived
| Constructor Detail |
|---|
public Chat(long id,
PacketWriter packetWriter,
SessionObject sessionObject)
id - internal object identifier.packetWriter - packet writer related to chat.sessionObject - session object related to chat.| Method Detail |
|---|
public long getId()
public JID getJid()
public SessionObject getSessionObject()
public String getThreadId()
null if not present.
public void sendMessage(String body)
throws XMLException,
JaxmppException
body - message to send.
XMLException
JaxmppExceptionpublic void setJid(JID jid)
jid - interlocutor JID.public void setThreadId(String threadId)
threadId - thread-id.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||