Type Parameters:
T - Body type for message
All Superinterfaces:
ConversationMessageBody

public interface AppMessage<T extends AppMessageBody> extends ConversationMessageBody
Message originating from an app
Since:
1.3
  • 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

      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

      static <T extends AppMessageBody> AppMessage.Builder<T> builder()
      Getting Builder
      Returns:
      New Builder instance
      Since:
      1.0