Klasse MessageItem
java.lang.Object
com.restfb.types.webhook.messaging.MessageItem
- Alle implementierten Schnittstellen:
InnerMessagingItem
Represents the
Message
Callback
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetAppId()
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()
-
Konstruktordetails
-
MessageItem
public MessageItem()
-
-
Methodendetails
-
isLike
The user may send a like and this method can be used to discover the three know versions of the sticker- Gibt zurück:
true
if the user sent a like (thumb up sticker),false
otherwise
-
hasAttachment
Returns whether the message contains an attachment.- Gibt zurück:
true
if the message contains a attachment,false
otherwise
-
hasQuickReply
Returns whether the message contains a quick reply.- Gibt zurück:
true
if the message contains a quick reply,false
otherwise
-
hasNlp
Returns whether the message contains a NLP result.- Gibt zurück:
true
if the message contains a NLP result,false
otherwise
-
isReply
Returns wether the message is a reply to another message- Gibt zurück:
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
-