Class MessageItem
java.lang.Object
com.restfb.types.webhook.messaging.MessageItem
- All Implemented Interfaces:
InnerMessagingItem
Represents the
Message
Callback
-
Constructor Summary
-
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 messageboolean
Returns whether the message contains an attachment.boolean
hasNlp()
Returns whether the message contains a NLP result.boolean
Returns whether the message contains a quick reply.boolean
isEcho()
Indicates the message sent from the page itselfboolean
isLike()
The user may send a like and this method can be used to discover the three know versions of the stickerboolean
isReply()
Returns wether the message is a reply to another messagevoid
ID of the app from which the message was sentvoid
setAttachments
(List<MessagingAttachment> attachments) Array containing attachment datavoid
setEcho
(boolean isEcho) Indicates the message sent from the page itselfvoid
setIsDeleted
(Boolean isDeleted) void
setIsUnsupported
(Boolean isUnsupported) not included if message is supportedvoid
setMetadata
(String metadata) Custom string passed to the Send API as the metadata fieldvoid
Message IDvoid
setQuickReply
(QuickReplyItem quickReply) void
setStickerId
(String stickerId) void
Text 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:
true
if the user sent a like (thumb up sticker),false
otherwise
-
hasAttachment
Returns whether the message contains an attachment.- Returns:
true
if the message contains a attachment,false
otherwise
-
hasQuickReply
Returns whether the message contains a quick reply.- Returns:
true
if the message contains a quick reply,false
otherwise
-
hasNlp
Returns whether the message contains a NLP result.- Returns:
true
if the message contains a NLP result,false
otherwise
-
isReply
Returns wether the message is a reply to another message- Returns:
true
if the message is a reply of another message,false
otherwise
-
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
-