Package com.restfb.types
Class Thread
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.Thread
- All Implemented Interfaces:
Serializable
Represents the Thread Graph API type.
- Since:
- 1.7.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addComment
(Message comment) boolean
addTo
(NamedFacebookType subscriber) The messages in this thread.getTo()
A list of the Thread subscriberThe amount of messages that are unread by the session profile.The amount of messages that are unseen by the session profile.The time of the last comment on this post.boolean
removeComment
(Message comment) boolean
removeTo
(NamedFacebookType subscriber) void
The amount of messages that are unread by the session profile.void
The amount of messages that are unseen by the session profile.void
setUpdatedTime
(Date updatedTime) The time of the last comment on this post.Methods 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
-
Thread
public Thread()
-
-
Method Details
-
getComments
The messages in this thread.- Returns:
- the messages in the thread
-
addComment
-
removeComment
-
getTo
A list of the Thread subscriber- Returns:
- A list of the thread subsscriber
-
addTo
-
removeTo
-
getUnread
The amount of messages that are unread by the session profile.- Returns:
- the amount of messages that are unread
-
setUnread
The amount of messages that are unread by the session profile. -
getUnseen
The amount of messages that are unseen by the session profile.- Returns:
- the amount of messages that are unseen
-
setUnseen
The amount of messages that are unseen by the session profile. -
getUpdatedTime
The time of the last comment on this post.- Returns:
- The time of the last comment on this post.
-
setUpdatedTime
The time of the last comment on this post.
-