Class BoardGetCommentsQuery

    • Constructor Detail

      • BoardGetCommentsQuery

        public BoardGetCommentsQuery​(VkApiClient client,
                                     UserActor actor,
                                     int groupId,
                                     int topicId)
        Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
        Parameters:
        client - VK API client
        actor - actor with access token
        groupId - value of "group id" parameter. Minimum is 1.
        topicId - value of "topic id" parameter. Minimum is 0.
      • BoardGetCommentsQuery

        public BoardGetCommentsQuery​(VkApiClient client,
                                     ServiceActor actor,
                                     int groupId,
                                     int topicId)
        Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
        Parameters:
        client - VK API client
        actor - actor with access token
        groupId - value of "group id" parameter. Minimum is 1.
        topicId - value of "topic id" parameter. Minimum is 0.
    • Method Detail

      • groupId

        protected BoardGetCommentsQuery groupId​(int value)
        ID of the community that owns the discussion board.
        Parameters:
        value - value of "group id" parameter. Minimum is 1.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • topicId

        protected BoardGetCommentsQuery topicId​(int value)
        Topic ID.
        Parameters:
        value - value of "topic id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • needLikes

        public BoardGetCommentsQuery needLikes​(java.lang.Boolean value)
        '1' — to return the 'likes' field, '0' — not to return the 'likes' field (default)
        Parameters:
        value - value of "need likes" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • startCommentId

        public BoardGetCommentsQuery startCommentId​(java.lang.Integer value)
        Set start comment id
        Parameters:
        value - value of "start comment id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • offset

        public BoardGetCommentsQuery offset​(java.lang.Integer value)
        Offset needed to return a specific subset of comments.
        Parameters:
        value - value of "offset" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • count

        public BoardGetCommentsQuery count​(java.lang.Integer value)
        Number of comments to return.
        Parameters:
        value - value of "count" parameter. Maximum is 100. Minimum is 0. By default 20.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • extended

        public BoardGetCommentsQuery extended​(java.lang.Boolean value)
        '1' — to return information about users who posted comments, '0' — to return no additional fields (default)
        Parameters:
        value - value of "extended" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • sort

        public BoardGetCommentsQuery sort​(GetCommentsSort value)
        Sort order: 'asc' — by creation date in chronological order, 'desc' — by creation date in reverse chronological order,
        Parameters:
        value - value of "sort" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.