|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.voiceclearly.api.chat.Message
public class Message
Represents chat messages. A message can be one of several types: For each message type, different message fields are typically used as follows:
| Constructor Summary | |
|---|---|
Message()
Class constructor that creates a new chat message. |
|
Message(com.voiceclearly.jingle.Message msg)
Class constructor that wraps a jingle chat message. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBody()
Returns the body of the message, or null if the body has not been set. |
com.voiceclearly.jingle.Message |
getJingleMessage()
Method to return a jingle message. |
java.lang.String |
getSubject()
Returns the subject of the message, or null if the subject has not been set. |
java.lang.String |
getThread()
Returns the thread id of the message, which is a unique identifier for a specific chat. |
void |
setBody(java.lang.String body)
Sets the body of the message. |
void |
setSubject(java.lang.String subject)
Sets the subject of the message. |
void |
setThread(java.lang.String thread)
Sets the thread id of the message, which is a unique identifier for chat |
java.lang.String |
toXML()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Message()
public Message(com.voiceclearly.jingle.Message msg)
msg - | Method Detail |
|---|
public com.voiceclearly.jingle.Message getJingleMessage()
public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject - the subject of the message.public java.lang.String getBody()
public void setBody(java.lang.String body)
body - the body of the message.public java.lang.String getThread()
public void setThread(java.lang.String thread)
thread - the thread id of the message.public java.lang.String toXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||