Class BatchGetContentResponse.Data
-
- All Implemented Interfaces:
public final class BatchGetContentResponse.DataContent data specific to the channel type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBatchGetContentResponse.Data.VisitorAn interface that defines how to map each variant of Data to a value of type T.
public final classBatchGetContentResponse.Data.MessageEmailContentThe content of an email message.
public final classBatchGetContentResponse.Data.MessageSmsContentThe content of an SMS message.
public final classBatchGetContentResponse.Data.MessagePushContentThe content of a push notification.
public final classBatchGetContentResponse.Data.MessageChatContentThe content of a chat message.
public final classBatchGetContentResponse.Data.MessageInAppFeedContentThe content of an in-app feed message.
-
Method Summary
-
-
Method Detail
-
messageEmailContent
final Optional<BatchGetContentResponse.Data.MessageEmailContent> messageEmailContent()
The content of an email message.
-
messageSmsContent
final Optional<BatchGetContentResponse.Data.MessageSmsContent> messageSmsContent()
The content of an SMS message.
-
messagePushContent
final Optional<BatchGetContentResponse.Data.MessagePushContent> messagePushContent()
The content of a push notification.
-
messageChatContent
final Optional<BatchGetContentResponse.Data.MessageChatContent> messageChatContent()
The content of a chat message.
-
messageInAppFeedContent
final Optional<BatchGetContentResponse.Data.MessageInAppFeedContent> messageInAppFeedContent()
The content of an in-app feed message.
-
isMessageEmailContent
final Boolean isMessageEmailContent()
-
isMessageSmsContent
final Boolean isMessageSmsContent()
-
isMessagePushContent
final Boolean isMessagePushContent()
-
isMessageChatContent
final Boolean isMessageChatContent()
-
isMessageInAppFeedContent
final Boolean isMessageInAppFeedContent()
-
asMessageEmailContent
final BatchGetContentResponse.Data.MessageEmailContent asMessageEmailContent()
The content of an email message.
-
asMessageSmsContent
final BatchGetContentResponse.Data.MessageSmsContent asMessageSmsContent()
The content of an SMS message.
-
asMessagePushContent
final BatchGetContentResponse.Data.MessagePushContent asMessagePushContent()
The content of a push notification.
-
asMessageChatContent
final BatchGetContentResponse.Data.MessageChatContent asMessageChatContent()
The content of a chat message.
-
asMessageInAppFeedContent
final BatchGetContentResponse.Data.MessageInAppFeedContent asMessageInAppFeedContent()
The content of an in-app feed message.
-
accept
final <T extends Any> T accept(BatchGetContentResponse.Data.Visitor<T> visitor)
-
validate
final BatchGetContentResponse.Data validate()
-
ofMessageEmailContent
final static BatchGetContentResponse.Data ofMessageEmailContent(BatchGetContentResponse.Data.MessageEmailContent messageEmailContent)
The content of an email message.
-
ofMessageSmsContent
final static BatchGetContentResponse.Data ofMessageSmsContent(BatchGetContentResponse.Data.MessageSmsContent messageSmsContent)
The content of an SMS message.
-
ofMessagePushContent
final static BatchGetContentResponse.Data ofMessagePushContent(BatchGetContentResponse.Data.MessagePushContent messagePushContent)
The content of a push notification.
-
ofMessageChatContent
final static BatchGetContentResponse.Data ofMessageChatContent(BatchGetContentResponse.Data.MessageChatContent messageChatContent)
The content of a chat message.
-
ofMessageInAppFeedContent
final static BatchGetContentResponse.Data ofMessageInAppFeedContent(BatchGetContentResponse.Data.MessageInAppFeedContent messageInAppFeedContent)
The content of an in-app feed message.
-
-
-
-