Package com.restfb.types
Class Conversation
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.Conversation
- All Implemented Interfaces:
Serializable
Represents the Conversation Graph
API type.
- Author:
- Mark Allen, Felipe Kurkowski
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addFormerParticipant
(NamedFacebookType formerParticipant) boolean
addMessage
(Message message) boolean
addParticipant
(ExtendedReferenceType participant) boolean
addSender
(NamedFacebookType sender) boolean
addTag
(Conversation.Tag tag) Whether The Page can reply to the conversationUsers who used to be on this message conversation.getLink()
A URL for this conversation.The number of messages in the conversationList of all messages in the conversationgetName()
The name of the message folder or source.Users who are on this message conversationUsers who send a message on the conversationThe title of a message in the conversationThe subject of this conversation.Whether you are subscribed to the conversationgetTags()
A list of tags indicating the message folder, and whether the conversation is read and seen.The new identifier for threads effective after September 24, 2017The number of unread messages in the conversationLast update time of the conversationWallpaper to display as a background for the threadboolean
removeFormerParticipant
(NamedFacebookType formerParticipant) boolean
removeMessage
(Message message) boolean
removeParticipant
(ExtendedReferenceType participant) boolean
removeSender
(NamedFacebookType sender) boolean
void
setCanReply
(Boolean canReply) Whether The Page can reply to the conversationvoid
A URL for this conversation.void
setMessageCount
(Long messageCount) The number of messages in the conversationvoid
The name of the message folder or source.void
setSnippet
(String snippet) The title of a message in the conversationvoid
setSubject
(String subject) The subject of this conversation.void
setSubscribed
(Boolean subscribed) Whether you are subscribed to the conversationvoid
setThreadKey
(String threadKey) The new identifier for threads effective after September 24, 2017void
setUnreadCount
(Long unreadCount) The number of unread messages in the conversationvoid
setUpdatedTime
(Date updatedTime) Last update time of the conversationvoid
setWallpaper
(String wallpaper) Wallpaper to display as a background for the threadMethods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
Conversation
public Conversation()
-
-
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
-
removeTag
-
getParticipants
Users who are on this message conversation- Returns:
- Users who are on this message conversation
-
addParticipant
-
removeParticipant
-
getSenders
Users who send a message on the conversation- Returns:
- Users who send a message on the conversation
-
addSender
-
removeSender
-
getMessages
List of all messages in the conversation- Returns:
- List of all messages in the conversation
-
addMessage
-
removeMessage
-
getFormerParticipants
Users who used to be on this message conversation.- Returns:
- Users who used to be on this message conversation.
-
addFormerParticipant
-
removeFormerParticipant
-
getLink
A URL for this conversation.- Returns:
- A URL for this conversation.
-
setLink
A URL for this conversation. -
getSubject
The subject of this conversation.- Returns:
- The subject of this conversation.
-
setSubject
The subject of this conversation. -
getSnippet
The title of a message in the conversation- Returns:
- The title of a message in the conversation
-
setSnippet
The title of a message in the conversation -
getThreadKey
The new identifier for threads effective after September 24, 2017- Returns:
- The new identifier for threads effective after September 24, 2017
-
setThreadKey
The new identifier for threads effective after September 24, 2017 -
getUpdatedTime
Last update time of the conversation- Returns:
- Last update time of the conversation
-
setUpdatedTime
Last update time of the conversation -
getMessageCount
The number of messages in the conversation- Returns:
- The number of messages in the conversation
-
setMessageCount
The number of messages in the conversation -
getName
The name of the message folder or source.- Returns:
- The name of the message folder or source
-
setName
The name of the message folder or source. -
getUnreadCount
The number of unread messages in the conversationFacebook 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
The number of unread messages in the conversationFacebook 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
Wallpaper to display as a background for the thread- Returns:
- Wallpaper to display as a background for the thread
-
setWallpaper
Wallpaper to display as a background for the thread -
getCanReply
Whether The Page can reply to the conversation- Returns:
- Whether The Page can reply to the conversation
-
setCanReply
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
Whether you are subscribed to the conversation
-