com.vk.api.sdk.queries.photos.PhotosReorderPhotosQuery 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.photos;
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 Photos.reorderPhotos method
*/
public class PhotosReorderPhotosQuery 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 photoId value of "photo id" parameter.
*/
public PhotosReorderPhotosQuery(VkApiClient client, UserActor actor, Integer photoId) {
super(client, "photos.reorderPhotos", OkResponse.class);
accessToken(actor.getAccessToken());
photoId(photoId);
}
/**
* 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 PhotosReorderPhotosQuery(VkApiClient client, UserActor actor) {
super(client, "photos.reorderPhotos", OkResponse.class);
accessToken(actor.getAccessToken());
}
/**
* ID of the user or community that owns the photo.
*
* @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 PhotosReorderPhotosQuery ownerId(Long value) {
return unsafeParam("owner_id", value);
}
/**
* Photo ID.
*
* @param value value of "photo id" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("photo_id")
public PhotosReorderPhotosQuery photoId(Integer value) {
return unsafeParam("photo_id", value);
}
/**
* ID of the photo before which the photo in question shall be placed.
*
* @param value value of "before" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("before")
public PhotosReorderPhotosQuery before(Integer value) {
return unsafeParam("before", value);
}
/**
* ID of the photo after which the photo in question shall be placed.
*
* @param value value of "after" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("after")
public PhotosReorderPhotosQuery after(Integer value) {
return unsafeParam("after", value);
}
@Override
protected PhotosReorderPhotosQuery getThis() {
return this;
}
@Override
protected List essentialKeys() {
return Arrays.asList("photo_id", "access_token");
}
}