Klasse MessageItem

java.lang.Object
com.restfb.types.webhook.messaging.MessageItem
Alle implementierten Schnittstellen:
InnerMessagingItem

public class MessageItem extends Object implements InnerMessagingItem
Represents the Message Callback
  • Konstruktordetails

  • Methodendetails

    • 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
      Gibt zurück:
      true if the user sent a like (thumb up sticker), false otherwise
    • hasAttachment

      public boolean hasAttachment()
      Returns whether the message contains an attachment.
      Gibt zurück:
      true if the message contains a attachment, false otherwise
    • hasQuickReply

      public boolean hasQuickReply()
      Returns whether the message contains a quick reply.
      Gibt zurück:
      true if the message contains a quick reply, false otherwise
    • hasNlp

      public boolean hasNlp()
      Returns whether the message contains a NLP result.
      Gibt zurück:
      true if the message contains a NLP result, false otherwise
    • isReply

      public boolean 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

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • getMid

      public String getMid()
      Message ID
    • setMid

      public void setMid(String mid)
      Message ID
    • getText

      public String getText()
      Text of message
    • setText

      public void setText(String text)
      Text of message
    • getIsDeleted

    • setIsDeleted

      public void setIsDeleted(Boolean isDeleted)
    • 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
    • getAppId

      public String getAppId()
      ID of the app from which the message was sent
    • setAppId

      public void setAppId(String appId)
      ID of the app from which the message was sent
    • 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

    • setQuickReply

      public void setQuickReply(QuickReplyItem quickReply)
    • getStickerId

      public String getStickerId()
    • setStickerId

      public void setStickerId(String stickerId)
    • getAttachments

      Array containing attachment data
    • setAttachments

      public void setAttachments(List<MessagingAttachment> attachments)
      Array containing attachment data
    • getNlp

      public NlpResult getNlp()
    • getReplyTo

      public ReplyTo getReplyTo()