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
public class Thread extends FacebookType
Represents the Thread Graph API type.- Since:
- 1.7.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Thread()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addComment(Message comment)
boolean
addTo(NamedFacebookType subscriber)
List<Message>
getComments()
The messages in this thread.List<NamedFacebookType>
getTo()
A list of the Thread subscriberInteger
getUnread()
The amount of messages that are unread by the session profile.Integer
getUnseen()
The amount of messages that are unseen by the session profile.Date
getUpdatedTime()
The time of the last comment on this post.boolean
removeComment(Message comment)
boolean
removeTo(NamedFacebookType subscriber)
void
setUnread(Integer unread)
The amount of messages that are unread by the session profile.void
setUnseen(Integer unseen)
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 Detail
-
Thread
public Thread()
-
-
Method Detail
-
getComments
public List<Message> getComments()
The messages in this thread.- Returns:
- the messages in the thread
-
addComment
public boolean addComment(Message comment)
-
removeComment
public boolean removeComment(Message comment)
-
getTo
public List<NamedFacebookType> getTo()
A list of the Thread subscriber- Returns:
- A list of the thread subsscriber
-
addTo
public boolean addTo(NamedFacebookType subscriber)
-
removeTo
public boolean removeTo(NamedFacebookType subscriber)
-
getUnread
public Integer getUnread()
The amount of messages that are unread by the session profile.- Returns:
- the amount of messages that are unread
-
setUnread
public void setUnread(Integer unread)
The amount of messages that are unread by the session profile.
-
getUnseen
public Integer getUnseen()
The amount of messages that are unseen by the session profile.- Returns:
- the amount of messages that are unseen
-
setUnseen
public void setUnseen(Integer unseen)
The amount of messages that are unseen by the session profile.
-
getUpdatedTime
public Date getUpdatedTime()
The time of the last comment on this post.- Returns:
- The time of the last comment on this post.
-
setUpdatedTime
public void setUpdatedTime(Date updatedTime)
The time of the last comment on this post.
-
-