Class Conversation

All Implemented Interfaces:
Serializable

public class Conversation extends FacebookType
Author:
Mark Allen, Felipe Kurkowski
See Also:
  • Constructor Details

  • Method Details

    • getTags

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

      public boolean addTag(Conversation.Tag tag)
    • removeTag

      public boolean removeTag(Conversation.Tag tag)
    • getParticipants

      Users who are on this message conversation
      Returns:
      Users who are on this message conversation
    • addParticipant

      public boolean addParticipant(ExtendedReferenceType participant)
    • removeParticipant

      public boolean removeParticipant(ExtendedReferenceType participant)
    • getSenders

      Users who send a message on the conversation
      Returns:
      Users who send a message on the conversation
    • addSender

      public boolean addSender(NamedFacebookType sender)
    • removeSender

      public boolean removeSender(NamedFacebookType sender)
    • getMessages

      List of all messages in the conversation
      Returns:
      List of all messages in the conversation
    • addMessage

      public boolean addMessage(Message message)
    • removeMessage

      public boolean removeMessage(Message message)
    • getFormerParticipants

      Users who used to be on this message conversation.
      Returns:
      Users who used to be on this message conversation.
    • addFormerParticipant

      public boolean addFormerParticipant(NamedFacebookType formerParticipant)
    • removeFormerParticipant

      public boolean removeFormerParticipant(NamedFacebookType formerParticipant)
    • 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

      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

      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