com.vk.api.sdk.queries.appwidgets.AppWidgetsGetGroupImageUploadServerQuery 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.appwidgets;
import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.GroupActor;
import com.vk.api.sdk.objects.annotations.ApiParam;
import com.vk.api.sdk.objects.appwidgets.GetGroupImageUploadServerImageType;
import com.vk.api.sdk.objects.appwidgets.responses.GetGroupImageUploadServerResponse;
import java.util.Arrays;
import java.util.List;
/**
* Query for AppWidgets.getGroupImageUploadServer method
*/
public class AppWidgetsGetGroupImageUploadServerQuery extends AbstractQueryBuilder {
/**
* Creates a AbstractQueryBuilder instance that can be used to build group api request with various parameters
*
* @param client VK API client
* @param actor actor with access token
* @param imageType value of "image type" parameter.
*/
public AppWidgetsGetGroupImageUploadServerQuery(VkApiClient client, GroupActor actor,
GetGroupImageUploadServerImageType imageType) {
super(client, "appWidgets.getGroupImageUploadServer", GetGroupImageUploadServerResponse.class);
accessToken(actor.getAccessToken());
imageType(imageType);
}
/**
* Creates a AbstractQueryBuilder instance that can be used to build group api request with various parameters
*
* @param client VK API client
* @param actor actor with access token
*/
public AppWidgetsGetGroupImageUploadServerQuery(VkApiClient client, GroupActor actor) {
super(client, "appWidgets.getGroupImageUploadServer", GetGroupImageUploadServerResponse.class);
accessToken(actor.getAccessToken());
}
/**
* Set image type
*
* @param value value of "image type" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
@ApiParam("image_type")
public AppWidgetsGetGroupImageUploadServerQuery imageType(
GetGroupImageUploadServerImageType value) {
return unsafeParam("image_type", value);
}
@Override
protected AppWidgetsGetGroupImageUploadServerQuery getThis() {
return this;
}
@Override
protected List essentialKeys() {
return Arrays.asList("image_type", "access_token");
}
}