-
- All Implemented Interfaces:
public final class MessagePayload extends ConversationPayload
A payload class to send messages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMessagePayload.Companion
-
Field Summary
Fields Modifier and Type Field Description private final transient StringmessageNonceprivate final transient Stringboundaryprivate transient List<Message.Attachment>attachmentsprivate final Stringtypeprivate final Stringbodyprivate final Sendersenderprivate final Booleanhiddenprivate final Booleanautomatedprivate final Map<String, Object>customDataprivate final DoubleclientCreatedAtprivate final IntegerclientCreatedAtUtcOffsetprivate final Stringnonce
-
Method Summary
Modifier and Type Method Description final StringgetMessageNonce()final StringgetBoundary()final List<Message.Attachment>getAttachments()final UnitsetAttachments(List<Message.Attachment> attachments)final StringgetType()final StringgetBody()final SendergetSender()final BooleangetHidden()final BooleangetAutomated()final Map<String, Object>getCustomData()final DoublegetClientCreatedAt()final IntegergetClientCreatedAtUtcOffset()final StringgetNonce()-
-
Constructor Detail
-
MessagePayload
MessagePayload(String messageNonce, String boundary, List<Message.Attachment> attachments, String type, String body, Sender sender, Boolean hidden, Boolean automated, Map<String, Object> customData)
- Parameters:
messageNonce-The nonce assigned to the message
body-Body of the message
sender-Data container class for Message Sender.
hidden-Flag to determine whether the message should be hidden in the Message Center UI
automated-Flag to determine whether the message was sent by an automatic process
-
-
Method Detail
-
getMessageNonce
final String getMessageNonce()
-
getBoundary
final String getBoundary()
-
getAttachments
final List<Message.Attachment> getAttachments()
-
setAttachments
final Unit setAttachments(List<Message.Attachment> attachments)
-
getAutomated
final Boolean getAutomated()
-
getCustomData
final Map<String, Object> getCustomData()
-
getClientCreatedAt
final Double getClientCreatedAt()
-
getClientCreatedAtUtcOffset
final Integer getClientCreatedAtUtcOffset()
-
-
-
-