
com.vk.api.sdk.queries.notes.NotesRestoreCommentQuery 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.
The newest version!
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.queries.notes;
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.responses.OkResponse;
import java.util.Arrays;
import java.util.List;
/**
* Query for Notes.restoreComment method
*/
public class NotesRestoreCommentQuery 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 NotesRestoreCommentQuery(VkApiClient client, UserActor actor, Integer commentId) {
super(client, "notes.restoreComment", OkResponse.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 NotesRestoreCommentQuery(VkApiClient client, UserActor actor) {
super(client, "notes.restoreComment", OkResponse.class);
accessToken(actor.getAccessToken());
}
/**
* 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 NotesRestoreCommentQuery commentId(Integer value) {
return unsafeParam("comment_id", value);
}
/**
* Note owner ID.
*
* @param value value of "owner id" parameter. Minimum is 0. Entity - owner
*
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("owner_id")
public NotesRestoreCommentQuery ownerId(Long value) {
return unsafeParam("owner_id", value);
}
@Override
protected NotesRestoreCommentQuery getThis() {
return this;
}
@Override
protected List essentialKeys() {
return Arrays.asList("comment_id", "access_token");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy