Klasse Comments

Alle implementierten Schnittstellen:
Serializable

public class Comments extends AbstractFacebookType
Represents the Comments Graph API type.

Please request '{id}/comments?summary=true' explicitly if you would like the summary field which contains the count (now called 'total_count')

Autor:
Mark Allen
Siehe auch:
  • Konstruktordetails

  • Methodendetails

    • getData

      public List<Comment> getData()
      The comments.
      Gibt zurück:
      The comments.
    • addData

      public boolean addData(Comment comment)
      Adds a comment
      Parameter:
      comment - the comment that should be added
      Gibt zurück:
      true if the comment was added, false otherwise
    • removeData

      public boolean removeData(Comment comment)
      remove a comment
      Parameter:
      comment - the comment that should be removed
      Gibt zurück:
      true if the comment was removed, false otherwise
    • getTotalCount

      public Long 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 deletion

      Please request '{id}/comments?summary=true' explicitly if you would like the summary field which contains the count (now called 'total_count')

      Gibt zurück:
      The number of comments.
    • setTotalCount

      public void setTotalCount(Long totalCount)
      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 deletion

      Please request '{id}/comments?summary=true' explicitly if you would like the summary field which contains the count (now called 'total_count')

    • getOrder

      public String 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.

      Gibt zurück:
      the order of the comments
    • setOrder

      public void setOrder(String order)
      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

      public void setCanComment(Boolean canComment)