public interface Message
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
getAttributes()
Retrieve attributes associated with this message.
|
java.lang.String |
getAuthor()
The global identity of the author of this message.
|
java.lang.String |
getChannelSid()
Returns the Channel Sid of the channel this message belongs to.
|
java.lang.String |
getMessageBody()
The body for this message.
|
long |
getMessageIndex()
Returns the index number for this message.
|
java.lang.String |
getSid()
Returns the identifier for this message.
|
java.lang.String |
getTimeStamp()
The last updated timestamp for this message.
|
void |
setAttributes(org.json.JSONObject updatedAttributes,
Constants.StatusListener listener)
Change attributes associated with this message.
|
void |
updateMessageBody(java.lang.String body,
Constants.StatusListener listener)
Updates the body for a message.
|
java.lang.String getSid()
java.lang.String getAuthor()
java.lang.String getTimeStamp()
java.lang.String getMessageBody()
void updateMessageBody(java.lang.String body,
Constants.StatusListener listener)
body - The body for the message.listener - Listener that will receive callback of the result.java.lang.String getChannelSid()
long getMessageIndex()
org.json.JSONObject getAttributes()
void setAttributes(org.json.JSONObject updatedAttributes,
Constants.StatusListener listener)
updatedAttributes - Message attributes map to fully replace old attributes.listener - Listener that will receive callback with the result.