Package com.mypurecloud.sdk.v2.model
Class MessageContent
java.lang.Object
com.mypurecloud.sdk.v2.model.MessageContent
- All Implemented Interfaces:
Serializable
Message content element. If contentType = \"Attachment\" only one item is allowed.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of this content element. -
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(MessageContent.ContentTypeEnum contentType) Type of this content element.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(MessageContent.ContentTypeEnum 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
-
contentType
Type of this content element. -
getContentType
-
setContentType
-
location
Location content. -
getLocation
-
setLocation
-
attachment
Attachment content. -
getAttachment
-
setAttachment
-
quickReply
Quick reply content. -
getQuickReply
-
setQuickReply
-
buttonResponse
Button response content. -
getButtonResponse
-
setButtonResponse
-
generic
Generic content (Deprecated). -
getGeneric
-
setGeneric
-
list
List content (Deprecated). -
getList
-
setList
-
template
Template notification content. -
getTemplate
-
setTemplate
-
reactions
A set of reactions to a message. -
getReactions
-
setReactions
-
mention
Mention content. -
getMention
-
setMention
-
postback
Structured message postback (Deprecated). -
getPostback
-
setPostback
-
story
Ephemeral story content. -
getStory
-
setStory
-
card
Card content -
getCard
-
setCard
-
carousel
Carousel content -
getCarousel
-
setCarousel
-
text
Text content. -
getText
-
setText
-
quickReplyV2
Quick reply V2 content. -
getQuickReplyV2
-
setQuickReplyV2
-
equals
-
hashCode
public int hashCode() -
toString
-