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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddComment(Message comment) booleanaddTo(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.booleanremoveComment(Message comment) booleanremoveTo(NamedFacebookType subscriber) voidThe amount of messages that are unread by the session profile.voidThe amount of messages that are unseen by the session profile.voidsetUpdatedTime(Date updatedTime) The time of the last comment on this post.Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setTypeMethods 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.
-