Class 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
      • getSeq

        @Deprecated
        public Long getSeq()
        Deprecated.
        https://messengerblog.com/platform-updates/introducing-messenger-platform-v1-3-and-new-ways-to-drive-the-conversation/ "Developers who previously relied on using seq ID for deduping can use mid instead, and those who were using it for ordering purposes can use timestamp instead."
        Message sequence number
      • setSeq

        @Deprecated
        public void setSeq​(Long seq)
        Deprecated.
        https://messengerblog.com/platform-updates/introducing-messenger-platform-v1-3-and-new-ways-to-drive-the-conversation/ "Developers who previously relied on using seq ID for deduping can use mid instead, and those who were using it for ordering purposes can use timestamp instead."
        Message sequence number
      • 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