Class MarketReportCommentQuery

    • Constructor Detail

      • MarketReportCommentQuery

        public MarketReportCommentQuery​(VkApiClient client,
                                        UserActor actor,
                                        int ownerId,
                                        int commentId,
                                        int reason)
        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
        ownerId - value of "owner id" parameter.
        commentId - value of "comment id" parameter. Minimum is 0.
        reason - value of "reason" parameter. Minimum is 0.
    • Method Detail

      • ownerId

        protected MarketReportCommentQuery ownerId​(int value)
        ID of an item owner community.
        Parameters:
        value - value of "owner id" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • commentId

        protected MarketReportCommentQuery commentId​(int value)
        Comment ID.
        Parameters:
        value - value of "comment id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • reason

        protected MarketReportCommentQuery reason​(int value)
        Complaint reason. Possible values: *'0' — spam,, *'1' — child porn,, *'2' — extremism,, *'3' — violence,, *'4' — drugs propaganda,, *'5' — adult materials,, *'6' — insult.
        Parameters:
        value - value of "reason" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.