Class Comments

    • Method Detail

      • addData

        public boolean addData​(Comment comment)
        Adds a comment
        Parameters:
        comment - the comment that should be added
        Returns:
        true if the comment was added, false otherwise
      • removeData

        public boolean removeData​(Comment comment)
        remove a comment
        Parameters:
        comment - the comment that should be removed
        Returns:
        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')

        Returns:
        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.

        Returns:
        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.