Class MessageItem
java.lang.Object
com.restfb.types.webhook.messaging.MessageItem
- All Implemented Interfaces:
InnerMessagingItem
Represents the
Message
Callback
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAppId()ID of the app from which the message was sentArray containing attachment datanot included if message is supportedCustom string passed to the Send API as the metadata fieldgetMid()Message IDgetNlp()getText()Text of messagebooleanReturns whether the message contains an attachment.booleanhasNlp()Returns whether the message contains a NLP result.booleanReturns whether the message contains a quick reply.booleanisEcho()Indicates the message sent from the page itselfbooleanisLike()The user may send a like and this method can be used to discover the three know versions of the stickerbooleanisReply()Returns wether the message is a reply to another messagevoidID of the app from which the message was sentvoidsetAttachments(List<MessagingAttachment> attachments) Array containing attachment datavoidsetEcho(boolean isEcho) Indicates the message sent from the page itselfvoidsetIsDeleted(Boolean isDeleted) voidsetIsUnsupported(Boolean isUnsupported) not included if message is supportedvoidsetMetadata(String metadata) Custom string passed to the Send API as the metadata fieldvoidMessage IDvoidsetQuickReply(QuickReplyItem quickReply) voidsetStickerId(String stickerId) voidText of messagetoString()
-
Constructor Details
-
MessageItem
public MessageItem()
-
-
Method Details
-
isLike
The user may send a like and this method can be used to discover the three know versions of the sticker- Returns:
trueif the user sent a like (thumb up sticker),falseotherwise
-
hasAttachment
Returns whether the message contains an attachment.- Returns:
trueif the message contains a attachment,falseotherwise
-
hasQuickReply
Returns whether the message contains a quick reply.- Returns:
trueif the message contains a quick reply,falseotherwise
-
hasNlp
Returns whether the message contains a NLP result.- Returns:
trueif the message contains a NLP result,falseotherwise
-
isReply
Returns wether the message is a reply to another message- Returns:
trueif the message is a reply of another message,falseotherwise
-
toString
-
getMid
Message ID -
setMid
Message ID -
getText
Text of message -
setText
Text of message -
getIsDeleted
-
setIsDeleted
-
getIsUnsupported
not included if message is supported -
setIsUnsupported
not included if message is supported -
isEcho
Indicates the message sent from the page itself -
setEcho
Indicates the message sent from the page itself -
getAppId
ID of the app from which the message was sent -
setAppId
ID of the app from which the message was sent -
getMetadata
Custom string passed to the Send API as the metadata field -
setMetadata
Custom string passed to the Send API as the metadata field -
getQuickReply
-
setQuickReply
-
getStickerId
-
setStickerId
-
getAttachments
Array containing attachment data -
setAttachments
Array containing attachment data -
getNlp
-
getReplyTo
-