
com.vk.api.sdk.queries.video.VideoEditCommentQuery Maven / Gradle / Ivy
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.queries.video;
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.base.responses.OkResponse;
import java.util.Arrays;
import java.util.List;
/**
* Query for Video.editComment method
*/
public class VideoEditCommentQuery extends AbstractQueryBuilder {
/**
* Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
*
* @param client VK API client
* @param actor actor with access token
* @param commentId value of "comment id" parameter.
*/
public VideoEditCommentQuery(VkApiClient client, UserActor actor, int commentId) {
super(client, "video.editComment", OkResponse.class);
accessToken(actor.getAccessToken());
commentId(commentId);
}
/**
* ID of the user or community that owns the video.
*
* @param value value of "owner id" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public VideoEditCommentQuery ownerId(Integer value) {
return unsafeParam("owner_id", value);
}
/**
* Comment ID.
*
* @param value value of "comment id" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
protected VideoEditCommentQuery commentId(int value) {
return unsafeParam("comment_id", value);
}
/**
* New comment text.
*
* @param value value of "message" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public VideoEditCommentQuery message(String value) {
return unsafeParam("message", value);
}
/**
* attachments
* List of objects attached to the comment, in the following format: "_,_", ' — Type of media attachment: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, '' — ID of the media attachment owner. '' — Media attachment ID. Example: "photo100172_166443618,photo66748_265827614"
*
* @param value value of "attachments" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public VideoEditCommentQuery attachments(String... value) {
return unsafeParam("attachments", value);
}
/**
* List of objects attached to the comment, in the following format: "_,_", ' — Type of media attachment: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, '' — ID of the media attachment owner. '' — Media attachment ID. Example: "photo100172_166443618,photo66748_265827614"
*
* @param value value of "attachments" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public VideoEditCommentQuery attachments(List value) {
return unsafeParam("attachments", value);
}
@Override
protected VideoEditCommentQuery getThis() {
return this;
}
@Override
protected List essentialKeys() {
return Arrays.asList("comment_id", "access_token");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy