Interface AppMessage<T extends AppMessageBody>
- Type Parameters:
T
- Body type for message
- All Superinterfaces:
ConversationMessageBody
Message originating from an app
- Since:
- 1.3
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
AppMessage.Builder<T extends AppMessageBody>
Dedicated Builder -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends AppMessageBody>
AppMessage.Builder<T> builder()
Getting BuildergetAgent()
Get agentgetBody()
Get message bodyChannel specific messages, overriding any transcoding.Channel specific messages, overriding any transcoding.The option to override the omni-channel template configuration with a channel-specific template (for channels on which channel-specific templates can be created.
-
Method Details
-
getBody
T getBody()Get message body- Returns:
- Message body
-
getExplicitChannelMessage
Map<ConversationChannel,Object> getExplicitChannelMessage()Channel specific messages, overriding any transcoding. The key in the map must point to a valid conversation channel as defined in the enum `ConversationChannel`.- Returns:
- explicitChannelMessage
-
getExplicitChannelOmniMessage
Map<OmniMessageOverride.ChannelSpecificTemplate,OmniMessageOverride> getExplicitChannelOmniMessage()The option to override the omni-channel template configuration with a channel-specific template (for channels on which channel-specific templates can be created. For more information, see [Channel Specific Templates](../../../../../conversation/templates/#channel-specific-templates)).- Returns:
- explicitChannelOmniMessage
-
getChannelSpecificMessage
Map<ConversationChannel,ChannelSpecificMessage> getChannelSpecificMessage()Channel specific messages, overriding any transcoding. The structure of this property is more well-defined than the open structure of the `explicit_channel_message` property, and may be easier to use. The key in the map must point to a valid conversation channel as defined in the enum `ConversationChannel`.- Returns:
- channelSpecificMessage
-
getAgent
Agent getAgent()Get agent- Returns:
- agent
-
builder
Getting Builder- Returns:
- New Builder instance
- Since:
- 1.0
-