Class MessageContent
java.lang.Object
cloud.genesys.webmessaging.sdk.model.MessageContent
- All Implemented Interfaces:
Serializable
Message content element. If contentType = \"Attachment\" only one item is allowed.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachment(ContentAttachment attachment) Attachment content.buttonResponse(ContentButtonResponse buttonResponse) Button response content.card(ContentCard card) Card contentcarousel(ContentCarousel carousel) Carousel contentcontentType(ContentType contentType) booleangeneric(ContentGeneric generic) Generic content (Deprecated).getCard()getList()getStory()getText()inthashCode()list(ContentList list) List content (Deprecated).location(ContentLocation location) Location content.mention(MessagingRecipient mention) Mention content.postback(ContentPostback postback) Structured message postback (Deprecated).quickReply(ContentQuickReply quickReply) Quick reply content.quickReplyV2(ContentQuickReplyV2 quickReplyV2) Quick reply V2 content.reactions(List<ContentReaction> reactions) A set of reactions to a message.voidsetAttachment(ContentAttachment attachment) voidsetButtonResponse(ContentButtonResponse buttonResponse) voidsetCard(ContentCard card) voidsetCarousel(ContentCarousel carousel) voidsetContentType(ContentType contentType) voidsetGeneric(ContentGeneric generic) voidsetList(ContentList list) voidsetLocation(ContentLocation location) voidsetMention(MessagingRecipient mention) voidsetPostback(ContentPostback postback) voidsetQuickReply(ContentQuickReply quickReply) voidsetQuickReplyV2(ContentQuickReplyV2 quickReplyV2) voidsetReactions(List<ContentReaction> reactions) voidsetStory(ContentStory story) voidsetTemplate(ContentNotificationTemplate template) voidsetText(ContentText text) story(ContentStory story) Ephemeral story content.template(ContentNotificationTemplate template) Template notification content.text(ContentText text) Text content.toString()
-
Constructor Details
-
MessageContent
public MessageContent()
-
-
Method Details
-
attachment
Attachment content. -
getAttachment
-
setAttachment
-
buttonResponse
Button response content. -
getButtonResponse
-
setButtonResponse
-
card
Card content -
getCard
-
setCard
-
carousel
Carousel content -
getCarousel
-
setCarousel
-
contentType
-
getContentType
-
setContentType
-
generic
Generic content (Deprecated). -
getGeneric
-
setGeneric
-
list
List content (Deprecated). -
getList
-
setList
-
location
Location content. -
getLocation
-
setLocation
-
mention
Mention content. -
getMention
-
setMention
-
postback
Structured message postback (Deprecated). -
getPostback
-
setPostback
-
quickReply
Quick reply content. -
getQuickReply
-
setQuickReply
-
quickReplyV2
Quick reply V2 content. -
getQuickReplyV2
-
setQuickReplyV2
-
reactions
A set of reactions to a message. -
getReactions
-
setReactions
-
story
Ephemeral story content. -
getStory
-
setStory
-
template
Template notification content. -
getTemplate
-
setTemplate
-
text
Text content. -
getText
-
setText
-
equals
-
hashCode
public int hashCode() -
toString
-