Class Comments
- All Implemented Interfaces:
Serializable
Please request '{id}/comments?summary=true' explicitly if you would like the summary field which contains the count (now called 'total_count')
- Author:
- Mark Allen
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getData()
The comments.getOrder()
Order in which comments were returned.The count of comments on this node.boolean
removeData(Comment comment)
void
setCanComment(Boolean canComment)
void
Order in which comments were returned.void
setTotalCount(Long totalCount)
The count of comments on this node.Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
Comments
public Comments()
-
-
Method Details
-
getData
The comments.- Returns:
- The comments.
-
addData
-
removeData
-
getTotalCount
The count of comments on this node.It is important to note that this value is changed depending on the
filter
modifier being used (where comment replies are available):- if filter is
stream
then total_count will be a count of all comments (including replies) on the node. - if filter is
toplevel
then total_count will be a count of all top-level comments on the node.
total_count
can be greater than or equal to the actual number of comments returned due to privacy or deletionPlease request '{id}/comments?summary=true' explicitly if you would like the summary field which contains the count (now called 'total_count')
- Returns:
- The number of comments.
- if filter is
-
setTotalCount
The count of comments on this node.It is important to note that this value is changed depending on the
filter
modifier being used (where comment replies are available):- if filter is
stream
then total_count will be a count of all comments (including replies) on the node. - if filter is
toplevel
then total_count will be a count of all top-level comments on the node.
total_count
can be greater than or equal to the actual number of comments returned due to privacy or deletionPlease request '{id}/comments?summary=true' explicitly if you would like the summary field which contains the count (now called 'total_count')
- if filter is
-
getOrder
Order in which comments were returned.ranked
indicates the most interesting comments are sorted first.
chronological
indicates comments are sorted by the oldest comments first.- Returns:
- the order of the comments
-
setOrder
Order in which comments were returned.ranked
indicates the most interesting comments are sorted first.
chronological
indicates comments are sorted by the oldest comments first. -
getCanComment
-
setCanComment
-