Class WebMessagingMessage
java.lang.Object
cloud.genesys.webmessaging.sdk.model.WebMessagingMessage
- All Implemented Interfaces:
Serializable
A web messaging message
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe direction of the message.static enumSpecifies if this message was sent by a human agent or bot.static enumMessage type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchannel(WebMessagingChannel channel) Channel-specific information that describes the message and the message channel/provider.content(List<WebMessagingContent> content) List of content elements.direction(WebMessagingMessage.DirectionEnum direction) The direction of the message.booleanevents(List<WebMessagingEvent> events) List of event elements.getId()getText()getType()inthashCode()Unique ID of the message.Additional metadata about this message.originatingEntity(WebMessagingMessage.OriginatingEntityEnum originatingEntity) Specifies if this message was sent by a human agent or bot.voidsetChannel(WebMessagingChannel channel) voidsetContent(List<WebMessagingContent> content) voidsetDirection(WebMessagingMessage.DirectionEnum direction) voidsetEvents(List<WebMessagingEvent> events) voidvoidsetMetadata(Map<String, String> metadata) voidsetOriginatingEntity(WebMessagingMessage.OriginatingEntityEnum originatingEntity) voidvoidMessage text.toString()Message type.
-
Constructor Details
-
WebMessagingMessage
public WebMessagingMessage()
-
-
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. -
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
-
events
List of event elements. -
getEvents
-
setEvents
-
direction
The direction of the message. Direction is always from the perspective of the Genesys Cloud platform. An Inbound message is one sent from a guest to the Genesys Cloud Platform. An Outbound message is one sent from the Genesys Cloud Platform to a guest. -
getDirection
-
setDirection
-
originatingEntity
public WebMessagingMessage originatingEntity(WebMessagingMessage.OriginatingEntityEnum originatingEntity) Specifies if this message was sent by a human agent or bot. The platform may use this to apply appropriate provider policies. -
getOriginatingEntity
-
setOriginatingEntity
-
metadata
Additional metadata about this message. -
getMetadata
-
setMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-