Package com.mypurecloud.sdk.v2.model
Class MessageData
java.lang.Object
com.mypurecloud.sdk.v2.model.MessageData
- All Implemented Interfaces:
Serializable
MessageData
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe direction of the message.static enumType of text messenger.static enumThe status of the message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconversationId(String conversationId) The id of the conversation of this message.User who sent this message.direction(MessageData.DirectionEnum direction) The direction of the message.booleanfromAddress(String fromAddress) The sender of the text message.getId()getMedia()getName()inthashCode()media(List<MessageMedia> media) The media details associated to a message.messengerType(MessageData.MessengerTypeEnum messengerType) Type of text messenger.providerMessageId(String providerMessageId) The unique identifier of the message from providervoidsetConversationId(String conversationId) voidsetCreatedBy(User createdBy) voidsetDirection(MessageData.DirectionEnum direction) voidsetFromAddress(String fromAddress) voidsetMedia(List<MessageMedia> media) voidsetMessengerType(MessageData.MessengerTypeEnum messengerType) voidvoidsetProviderMessageId(String providerMessageId) voidsetStatus(MessageData.StatusEnum status) voidsetTextBody(String textBody) voidsetTimestamp(Date timestamp) voidsetToAddress(String toAddress) status(MessageData.StatusEnum status) The status of the message.The body of the text message.The time when the message was received or sent.The recipient of the text message.toString()
-
Constructor Details
-
MessageData
public MessageData() -
MessageData
-
-
Method Details
-
getId
-
name
-
getName
-
setName
-
providerMessageId
The unique identifier of the message from provider -
getProviderMessageId
-
setProviderMessageId
-
timestamp
The time when the message was received or sent. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z -
getTimestamp
-
setTimestamp
-
fromAddress
The sender of the text message. -
getFromAddress
-
setFromAddress
-
toAddress
The recipient of the text message. -
getToAddress
-
setToAddress
-
direction
The direction of the message. -
getDirection
-
setDirection
-
messengerType
Type of text messenger. -
getMessengerType
-
setMessengerType
-
textBody
The body of the text message. (Deprecated - Instead use normalizedMessage.text) -
getTextBody
-
setTextBody
-
status
The status of the message. -
getStatus
-
setStatus
-
media
The media details associated to a message. (Deprecated - Instead use normalizedMessage.content[index].attachment) -
getMedia
-
setMedia
-
getNormalizedMessage
-
getNormalizedReceipts
-
createdBy
User who sent this message. -
getCreatedBy
-
setCreatedBy
-
conversationId
The id of the conversation of this message. -
getConversationId
-
setConversationId
-
getSelfUri
-
equals
-
hashCode
public int hashCode() -
toString
-