public class Chat extends Object
| Constructor and Description |
|---|
Chat(long id,
tigase.jaxmpp.core.client.Context context)
Creates new chat representation object.
|
| Modifier and Type | Method and Description |
|---|---|
tigase.jaxmpp.core.client.xmpp.stanzas.Message |
createMessage(String body)
Sends message in current chat.
|
long |
getId()
Return internal identifier of chat object.
|
tigase.jaxmpp.core.client.JID |
getJid()
Returns interlocutor JID.
|
tigase.jaxmpp.core.client.SessionObject |
getSessionObject()
Return SessionObject related to this chat.
|
String |
getThreadId()
Returns thread-id.
|
void |
setJid(tigase.jaxmpp.core.client.JID jid)
Sets interlocutor JID.
|
void |
setMessageModule(MessageModule module) |
void |
setThreadId(String threadId)
Sets thread-id.
|
public Chat(long id,
tigase.jaxmpp.core.client.Context context)
id - internal object identifier.packetWriter - packet writer related to chat.sessionObject - session object related to chat.public tigase.jaxmpp.core.client.xmpp.stanzas.Message createMessage(String body) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
body - message to send.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic long getId()
public tigase.jaxmpp.core.client.JID getJid()
public void setJid(tigase.jaxmpp.core.client.JID jid)
jid - interlocutor JID.public tigase.jaxmpp.core.client.SessionObject getSessionObject()
public String getThreadId()
null if not present.public void setThreadId(String threadId)
threadId - thread-id.public void setMessageModule(MessageModule module)
Copyright © 2006–2020 Tigase. All rights reserved.