Class MessageItem
- java.lang.Object
-
- com.restfb.types.webhook.messaging.MessageItem
-
- All Implemented Interfaces:
InnerMessagingItem
public class MessageItem extends Object implements InnerMessagingItem
Represents the Message Callback
-
-
Constructor Summary
Constructors Constructor Description MessageItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAppId()
ID of the app from which the message was sentList<MessagingAttachment>
getAttachments()
Array containing attachment dataBoolean
getIsDeleted()
Boolean
getIsUnsupported()
not included if message is supportedString
getMetadata()
Custom string passed to the Send API as the metadata fieldString
getMid()
Message IDNlpResult
getNlp()
QuickReplyItem
getQuickReply()
ReplyTo
getReplyTo()
String
getStickerId()
String
getText()
Text of messageboolean
hasAttachment()
Returns whether the message contains an attachment.boolean
hasNlp()
Returns whether the message contains a NLP result.boolean
hasQuickReply()
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
setAppId(String appId)
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
setMid(String mid)
Message IDvoid
setQuickReply(QuickReplyItem quickReply)
void
setStickerId(String stickerId)
void
setText(String text)
Text of messageString
toString()
-
-
-
Constructor Detail
-
MessageItem
public MessageItem()
-
-
Method Detail
-
isLike
public boolean 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
public boolean hasAttachment()
Returns whether the message contains an attachment.- Returns:
true
if the message contains a attachment,false
otherwise
-
hasQuickReply
public boolean hasQuickReply()
Returns whether the message contains a quick reply.- Returns:
true
if the message contains a quick reply,false
otherwise
-
hasNlp
public boolean hasNlp()
Returns whether the message contains a NLP result.- Returns:
true
if the message contains a NLP result,false
otherwise
-
isReply
public boolean isReply()
Returns wether the message is a reply to another message- Returns:
true
if the message is a reply of another message,false
otherwise
-
getIsDeleted
public Boolean getIsDeleted()
-
setIsDeleted
public void setIsDeleted(Boolean isDeleted)
-
getIsUnsupported
public Boolean getIsUnsupported()
not included if message is supported
-
setIsUnsupported
public void setIsUnsupported(Boolean isUnsupported)
not included if message is supported
-
isEcho
public boolean isEcho()
Indicates the message sent from the page itself
-
setEcho
public void setEcho(boolean isEcho)
Indicates the message sent from the page itself
-
getMetadata
public String getMetadata()
Custom string passed to the Send API as the metadata field
-
setMetadata
public void setMetadata(String metadata)
Custom string passed to the Send API as the metadata field
-
getQuickReply
public QuickReplyItem getQuickReply()
-
setQuickReply
public void setQuickReply(QuickReplyItem quickReply)
-
getStickerId
public String getStickerId()
-
setStickerId
public void setStickerId(String stickerId)
-
getAttachments
public List<MessagingAttachment> getAttachments()
Array containing attachment data
-
setAttachments
public void setAttachments(List<MessagingAttachment> attachments)
Array containing attachment data
-
getReplyTo
public ReplyTo getReplyTo()
-
-