Package com.mypurecloud.sdk.v2.model
Class OpenNormalizedMessage
java.lang.Object
com.mypurecloud.sdk.v2.model.OpenNormalizedMessage
- All Implemented Interfaces:
Serializable
Open Messaging rich media message structure
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe direction of the message.static enumMessage receipt status, only used with type Receipt.static enumMessage type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchannel(OpenMessagingChannel channel) Channel-specific information that describes the message and the message channel/provider.content(List<OpenMessageContent> content) List of content elements.direction(OpenNormalizedMessage.DirectionEnum direction) The direction of the message.booleangetId()getText()getType()inthashCode()Unique ID of the message.isFinalReceipt(Boolean isFinalReceipt) Indicates if this is the last message receipt for this message, or if another message receipt can be expected.Additional metadata about this message.reasons(List<ConversationReason> reasons) List of reasons for a message receipt that indicates the message has failed.voidsetChannel(OpenMessagingChannel channel) voidsetContent(List<OpenMessageContent> content) voidsetDirection(OpenNormalizedMessage.DirectionEnum direction) voidvoidsetIsFinalReceipt(Boolean isFinalReceipt) voidsetMetadata(Map<String, String> metadata) voidsetReasons(List<ConversationReason> reasons) voidvoidvoidMessage receipt status, only used with type Receipt.Message text.toString()Message type.
-
Constructor Details
-
OpenNormalizedMessage
public OpenNormalizedMessage() -
OpenNormalizedMessage
-
-
Method Details
-
id
Unique ID of the message. This ID is generated by Messaging Platform. Message receipts will have the same ID as the message they reference, as such should only be set when sending a message receipt. -
getId
-
setId
-
channel
Channel-specific information that describes the message and the message channel/provider. -
getChannel
-
setChannel
-
type
Message type. -
getType
-
setType
-
text
Message text. -
getText
-
setText
-
content
List of content elements. -
getContent
-
setContent
-
status
Message receipt status, only used with type Receipt. -
getStatus
-
setStatus
-
reasons
List of reasons for a message receipt that indicates the message has failed. Only used with Failed status. -
getReasons
-
setReasons
-
isFinalReceipt
Indicates if this is the last message receipt for this message, or if another message receipt can be expected. -
getIsFinalReceipt
-
setIsFinalReceipt
-
direction
The direction of the message. -
getDirection
-
setDirection
-
metadata
Additional metadata about this message. -
getMetadata
-
setMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-