-
@Serializable() public final class MessageCardOne card in a Message.gallery carousel.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtitleprivate final Stringdescriptionprivate final Attachmentimageprivate final List<MessageButton>buttons
-
Constructor Summary
Constructors Constructor Description MessageCard(String title, String description, Attachment image, List<MessageButton> buttons)
-
Method Summary
Modifier and Type Method Description final StringgetTitle()Card heading. final StringgetDescription()final AttachmentgetImage()Nullable, and legitimately so — the server emits nullfor a card authored without an image.final List<MessageButton>getButtons()This card's own options, same shape as the top-level array. -
-
Constructor Detail
-
MessageCard
MessageCard(String title, String description, Attachment image, List<MessageButton> buttons)
-
-
Method Detail
-
getTitle
final String getTitle()
Card heading. Doubles as the gallery match key — a reply sends it as SendMessagePayload.galleryLabel.
-
getDescription
final String getDescription()
-
getImage
final Attachment getImage()
Nullable, and legitimately so — the server emits
nullfor a card authored without an image. A card with no image is valid, not malformed; guard before rendering.
-
getButtons
final List<MessageButton> getButtons()
This card's own options, same shape as the top-level array.
-
-
-
-