
com.vk.api.sdk.queries.wall.WallGetCommentQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Java library for VK API interaction, includes OAuth 2.0 authorization and API methods.
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.queries.wall;
import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.UserActor;
import com.vk.api.sdk.objects.annotations.ApiParam;
import com.vk.api.sdk.objects.base.UserGroupFields;
import com.vk.api.sdk.objects.wall.responses.GetCommentResponse;
import java.util.Arrays;
import java.util.List;
/**
* Query for Wall.getComment method
*/
public class WallGetCommentQuery extends AbstractQueryBuilder {
/**
* Creates a AbstractQueryBuilder instance that can be used to build user api request with various parameters
*
* @param client VK API client
* @param actor actor with access token
* @param commentId value of "comment id" parameter. Minimum is 0.
*/
public WallGetCommentQuery(VkApiClient client, UserActor actor, Integer commentId) {
super(client, "wall.getComment", GetCommentResponse.class);
accessToken(actor.getAccessToken());
commentId(commentId);
}
/**
* Creates a AbstractQueryBuilder instance that can be used to build user api request with various parameters
*
* @param client VK API client
* @param actor actor with access token
*/
public WallGetCommentQuery(VkApiClient client, UserActor actor) {
super(client, "wall.getComment", GetCommentResponse.class);
accessToken(actor.getAccessToken());
}
/**
* User ID or community ID. Use a negative value to designate a community ID.
*
* @param value value of "owner id" parameter. Entity - owner
*
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("owner_id")
public WallGetCommentQuery ownerId(Long value) {
return unsafeParam("owner_id", value);
}
/**
* Comment ID.
*
* @param value value of "comment id" parameter. Minimum is 0.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("comment_id")
public WallGetCommentQuery commentId(Integer value) {
return unsafeParam("comment_id", value);
}
/**
* Set extended
*
* @param value value of "extended" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("extended")
public WallGetCommentQuery extended(Boolean value) {
return unsafeParam("extended", value);
}
/**
* fields
* Set fields
*
* @param value value of "fields" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("fields")
public WallGetCommentQuery fields(UserGroupFields... value) {
return unsafeParam("fields", value);
}
/**
* Set fields
*
* @param value value of "fields" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("fields")
public WallGetCommentQuery fields(List value) {
return unsafeParam("fields", value);
}
@Override
protected WallGetCommentQuery getThis() {
return this;
}
@Override
protected List essentialKeys() {
return Arrays.asList("comment_id", "access_token");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy