Class Conversation

    • Method Detail

      • getTags

        public List<Conversation.TaggetTags()
        A list of tags indicating the message folder, and whether the conversation is read and seen.
        Returns:
        A list of tags indicating the message folder, and whether the conversation is read and seen.
      • getSenders

        public List<NamedFacebookTypegetSenders()
        Users who send a message on the conversation
        Returns:
        Users who send a message on the conversation
      • getMessages

        public List<MessagegetMessages()
        List of all messages in the conversation
        Returns:
        List of all messages in the conversation
      • getLink

        public String getLink()
        A URL for this conversation.
        Returns:
        A URL for this conversation.
      • setLink

        public void setLink​(String link)
        A URL for this conversation.
      • getSubject

        public String getSubject()
        The subject of this conversation.
        Returns:
        The subject of this conversation.
      • setSubject

        public void setSubject​(String subject)
        The subject of this conversation.
      • getSnippet

        public String getSnippet()
        The title of a message in the conversation
        Returns:
        The title of a message in the conversation
      • setSnippet

        public void setSnippet​(String snippet)
        The title of a message in the conversation
      • getThreadKey

        public String getThreadKey()
        The new identifier for threads effective after September 24, 2017
        Returns:
        The new identifier for threads effective after September 24, 2017
      • setThreadKey

        public void setThreadKey​(String threadKey)
        The new identifier for threads effective after September 24, 2017
      • getUpdatedTime

        public Date getUpdatedTime()
        Last update time of the conversation
        Returns:
        Last update time of the conversation
      • setUpdatedTime

        public void setUpdatedTime​(Date updatedTime)
        Last update time of the conversation
      • getMessageCount

        public Long getMessageCount()
        The number of messages in the conversation
        Returns:
        The number of messages in the conversation
      • setMessageCount

        public void setMessageCount​(Long messageCount)
        The number of messages in the conversation
      • getName

        public String getName()
        The name of the message folder or source.
        Returns:
        The name of the message folder or source
      • setName

        public void setName​(String name)
        The name of the message folder or source.
      • getUnreadCount

        public Long getUnreadCount()
        The number of unread messages in the conversation

        Facebook does not send the unread count if there aren't any new messages. In order to keep data consistency, we set the default value to zero. If this value is sent, the JsonMapper will override it.

        Returns:
        The number of unread messages in the conversation
      • setUnreadCount

        public void setUnreadCount​(Long unreadCount)
        The number of unread messages in the conversation

        Facebook does not send the unread count if there aren't any new messages. In order to keep data consistency, we set the default value to zero. If this value is sent, the JsonMapper will override it.

      • getWallpaper

        public String getWallpaper()
        Wallpaper to display as a background for the thread
        Returns:
        Wallpaper to display as a background for the thread
      • setWallpaper

        public void setWallpaper​(String wallpaper)
        Wallpaper to display as a background for the thread
      • getCanReply

        public Boolean getCanReply()
        Whether The Page can reply to the conversation
        Returns:
        Whether The Page can reply to the conversation
      • setCanReply

        public void setCanReply​(Boolean canReply)
        Whether The Page can reply to the conversation
      • getSubscribed

        public Boolean getSubscribed()
        Whether you are subscribed to the conversation
        Returns:
        Whether you are subscribed to the conversation
      • setSubscribed

        public void setSubscribed​(Boolean subscribed)
        Whether you are subscribed to the conversation