-
@Serializable() public final class SendMessagePayloadPayload for OrigonClient.sendMessage. Mirrors the Rust
SendMessagePayloadshape.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtextprivate final Stringhtmlprivate final List<Attachment>attachmentsprivate final Stringvalueprivate final StringgalleryLabelprivate final MessageMetadatametadata
-
Constructor Summary
Constructors Constructor Description SendMessagePayload(String text, String html, List<Attachment> attachments, String value, String galleryLabel, MessageMetadata metadata)
-
Method Summary
Modifier and Type Method Description final StringgetText()final StringgetHtml()final List<Attachment>getAttachments()final StringgetValue()The chosen MessageButton.value when this send answers an interactive prompt. final StringgetGalleryLabel()The picked MessageCard.title when answering a gallery prompt. final MessageMetadatagetMetadata()Optional participant/monitor audience metadata. -
-
Constructor Detail
-
SendMessagePayload
SendMessagePayload(String text, String html, List<Attachment> attachments, String value, String galleryLabel, MessageMetadata metadata)
-
-
Method Detail
-
getAttachments
final List<Attachment> getAttachments()
-
getValue
final String getValue()
The chosen MessageButton.value when this send answers an interactive prompt. The server matches a button on this, falling back to text — so text must ALSO be set (to the option's label): a body with no text/html/attachments is refused with a 400 before the flow ever sees it.
Omitted from the wire when null (
encodeDefaultsis off).
-
getGalleryLabel
final String getGalleryLabel()
The picked MessageCard.title when answering a gallery prompt. The server matches a gallery pick on the PAIR
(galleryLabel, value), which is what disambiguates two cards sharing a button value. Leave null for a plain button reply.
-
getMetadata
final MessageMetadata getMetadata()
Optional participant/monitor audience metadata.
-
-
-
-