public class Chat extends Object
Constructor and Description |
---|
Chat(long id,
Context context)
Creates new chat representation object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected Message |
sendMessage(String body)
Sends message in current chat.
|
void |
setJid(JID jid)
Sets interlocutor JID.
|
void |
setMessageModule(MessageModule module) |
void |
setThreadId(String threadId)
Sets thread-id.
|
public Chat(long id, Context context)
id
- internal object identifier.packetWriter
- packet writer related to chat.sessionObject
- session object related to chat.public long getId()
public JID getJid()
public SessionObject getSessionObject()
public String getThreadId()
null
if not present.protected Message sendMessage(String body) throws XMLException, JaxmppException
body
- message to send.XMLException
JaxmppException
public void setJid(JID jid)
jid
- interlocutor JID.public void setMessageModule(MessageModule module)
public void setThreadId(String threadId)
threadId
- thread-id.Copyright © 2006–2015 Tigase. All rights reserved.