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