public class Message
Represents a message.
| Nested classes |
|---|
| Public methods | |
|---|---|
Constructor |
Message(...)
Create a Message instance. |
String |
String getId()
Return id. |
String |
String getLocalId()
Return local id. |
String |
String getConversationId()
Return conversation id. |
String |
String getConversationLocalId()
Return conversation local id. |
long |
long getCreatedAt()
Return created at. |
void |
void setCreatedAt(long)
Set created at. |
long |
long getUpdateAt()
Return update at. |
State |
State getState()
Return state. |
void |
void setState(State)
Set state. |
long |
long getSequence()
Return sequence. |
Type |
Type getType()
Return type. |
String |
String getText()
Return text. |
String |
String getThumbnail()
Return thumbnail. |
String |
String getThumbnailUrl()
Return thumbnail url. |
double |
double getLatitude()
Return latitude. |
void |
void setLatitude(double)
Set latitude. |
double |
double getLongitude()
Return longitude. |
void |
void setLongitude(double)
Set longitude. |
String |
String getAddress()
Return address. |
void |
void setAddress(String)
Set address. |
MsgType |
MsgType getMsgType()
Return msg type. |
String |
String getFilePath()
Return file path. |
void |
void setFilePath(String)
Set file path. |
String |
String getFileUrl()
Return file url. |
void |
void setFileUrl(String)
Set file url. |
int |
int getDuration()
Return duration. |
void |
void setDuration(int)
Set duration. |
float |
float getImageRatio()
Return image ratio. |
void |
void setImageRatio(float)
Set image ratio. |
String |
String getContact()
Return contact. |
void |
void setContact(String)
Set contact. |
String |
String getFileName()
Return file name. |
void |
void setFileName(String)
Set file name. |
long |
long getFileLength()
Return file length. |
void |
void setFileLength(long)
Set file length. |
String |
String getClientId()
Return client id. |
void |
void setStickerCategory(String)
Set sticker category. |
String |
String getStickerCategory()
Return sticker category. |
void |
void setStickerName(String)
Set sticker name. |
String |
String getStickerName()
Return sticker name. |
void |
void setThumbnailUrl(String)
Set thumbnail url. |
JSONObject |
JSONObject getCustomData()
Return custom data. |
void |
void setCustomData(JSONObject)
Set custom data. |
void |
void pinOrUnpin(StringeeClient, boolean, StatusListener)
Perform pin or unpin. |
void |
void edit(StringeeClient, String, StatusListener)
Perform edit. |
boolean |
boolean isDeleted()
Check whether deleted. |
User |
User getSender()
Return sender. |
String |
String getFileId()
Return file id. |
Message(...)
Create a Message instance.
String getId()
Return id.
String getLocalId()
Return local id.
String getConversationId()
Return conversation id.
String getConversationLocalId()
Return conversation local id.
long getCreatedAt()
Return created at.
void setCreatedAt(long)
Set created at.
long getUpdateAt()
Return update at.
State getState()
Return state.
void setState(State)
Set state.
long getSequence()
Return sequence.
Type getType()
Return type.
String getText()
Return text.
String getThumbnail()
Return thumbnail.
String getThumbnailUrl()
Return thumbnail url.
double getLatitude()
Return latitude.
void setLatitude(double)
Set latitude.
double getLongitude()
Return longitude.
void setLongitude(double)
Set longitude.
String getAddress()
Return address.
void setAddress(String)
Set address.
MsgType getMsgType()
Return msg type.
String getFilePath()
Return file path.
void setFilePath(String)
Set file path.
String getFileUrl()
Return file url.
void setFileUrl(String)
Set file url.
int getDuration()
Return duration.
void setDuration(int)
Set duration.
float getImageRatio()
Return image ratio.
void setImageRatio(float)
Set image ratio.
String getContact()
Return contact.
void setContact(String)
Set contact.
String getFileName()
Return file name.
void setFileName(String)
Set file name.
long getFileLength()
Return file length.
void setFileLength(long)
Set file length.
String getClientId()
Return client id.
void setStickerCategory(String)
Set sticker category.
String getStickerCategory()
Return sticker category.
void setStickerName(String)
Set sticker name.
String getStickerName()
Return sticker name.
void setThumbnailUrl(String)
Set thumbnail url.
JSONObject getCustomData()
Return custom data.
void setCustomData(JSONObject)
Set custom data.
void pinOrUnpin(StringeeClient, boolean, StatusListener)
Perform pin or unpin.
void edit(StringeeClient, String, StatusListener)
Perform edit.
boolean isDeleted()
Check whether deleted.
User getSender()
Return sender.
String getFileId()
Return file id.
Defines message ownership type values.
| Enum values | |
|---|---|
SEND
|
Represents SEND. |
RECEIVE
|
Represents RECEIVE. |
getValue
|
Return value. |
getType
|
Return type. |
Message.MsgType.SEND
Represents SEND.
Message.MsgType.RECEIVE
Represents RECEIVE.
Message.MsgType.getValue
Return value.
Message.MsgType.getType
Return type.
Defines message state values.
| Enum values | |
|---|---|
INITIALIZE
|
Represents INITIALIZE. |
SENDING
|
Represents SENDING. |
SENT
|
Represents SENT. |
DELIVERED
|
Represents DELIVERED. |
READ
|
Represents READ. |
getValue
|
Return value. |
getState
|
Return state. |
Message.State.INITIALIZE
Represents INITIALIZE.
Message.State.SENDING
Represents SENDING.
Message.State.SENT
Represents SENT.
Message.State.DELIVERED
Represents DELIVERED.
Message.State.READ
Represents READ.
Message.State.getValue
Return value.
Message.State.getState
Return state.
Defines message content type values.
| Enum values | |
|---|---|
TEXT
|
Represents TEXT. |
PHOTO
|
Represents PHOTO. |
VIDEO
|
Represents VIDEO. |
AUDIO
|
Represents AUDIO. |
FILE
|
Represents FILE. |
LINK
|
Represents LINK. |
CREATE_CONVERSATION
|
Represents CREATE_CONVERSATION. |
RENAME_CONVERSATION
|
Represents RENAME_CONVERSATION. |
LOCATION
|
Represents LOCATION. |
CONTACT
|
Represents CONTACT. |
STICKER
|
Represents STICKER. |
RATING
|
Represents RATING. |
NOTIFICATION
|
Represents NOTIFICATION. |
TEMP_DATE
|
Represents TEMP_DATE. |
getType
|
Return type. |
getValue
|
Return value. |
Message.Type.TEXT
Represents TEXT.
Message.Type.PHOTO
Represents PHOTO.
Message.Type.VIDEO
Represents VIDEO.
Message.Type.AUDIO
Represents AUDIO.
Message.Type.FILE
Represents FILE.
Message.Type.LINK
Represents LINK.
Message.Type.CREATE_CONVERSATION
Represents CREATE_CONVERSATION.
Message.Type.RENAME_CONVERSATION
Represents RENAME_CONVERSATION.
Message.Type.LOCATION
Represents LOCATION.
Message.Type.CONTACT
Represents CONTACT.
Message.Type.STICKER
Represents STICKER.
Message.Type.RATING
Represents RATING.
Message.Type.NOTIFICATION
Represents NOTIFICATION.
Message.Type.TEMP_DATE
Represents TEMP_DATE.
Message.Type.getType
Return type.
Message.Type.getValue
Return value.