Package com.vk.api.sdk.queries.photos
Class PhotosGetChatUploadServerQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<PhotosGetChatUploadServerQuery,GetUploadServerResponse>
-
- com.vk.api.sdk.queries.photos.PhotosGetChatUploadServerQuery
-
public class PhotosGetChatUploadServerQuery extends AbstractQueryBuilder<PhotosGetChatUploadServerQuery,GetUploadServerResponse>
Query for Photos.getChatUploadServer method
-
-
Constructor Summary
Constructors Constructor Description PhotosGetChatUploadServerQuery(VkApiClient client, GroupActor actor, int chatId)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersPhotosGetChatUploadServerQuery(VkApiClient client, UserActor actor, int chatId)Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PhotosGetChatUploadServerQuerychatId(int value)ID of the chat for which you want to upload a cover photo.PhotosGetChatUploadServerQuerycropWidth(java.lang.Integer value)Width (in pixels) of the photo after cropping.PhotosGetChatUploadServerQuerycropX(java.lang.Integer value)Set crop xPhotosGetChatUploadServerQuerycropY(java.lang.Integer value)Set crop yprotected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected PhotosGetChatUploadServerQuerygetThis()Get reference to this object-
Methods inherited from class com.vk.api.sdk.client.AbstractQueryBuilder
accessToken, build, captchaKey, captchaSid, clientSecret, confirm, getBody, getMethod, getParams, lang, toString, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, version
-
Methods inherited from class com.vk.api.sdk.client.ApiRequest
execute, executeAsRaw, executeAsString, getClient, getGson, getHeaders, getResponseClass, getUrl, setHeaders
-
-
-
-
Constructor Detail
-
PhotosGetChatUploadServerQuery
public PhotosGetChatUploadServerQuery(VkApiClient client, UserActor actor, int chatId)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenchatId- value of "chat id" parameter. Minimum is 0.
-
PhotosGetChatUploadServerQuery
public PhotosGetChatUploadServerQuery(VkApiClient client, GroupActor actor, int chatId)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenchatId- value of "chat id" parameter. Minimum is 0.
-
-
Method Detail
-
chatId
protected PhotosGetChatUploadServerQuery chatId(int value)
ID of the chat for which you want to upload a cover photo.- Parameters:
value- value of "chat id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
cropX
public PhotosGetChatUploadServerQuery cropX(java.lang.Integer value)
Set crop x- Parameters:
value- value of "crop x" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
cropY
public PhotosGetChatUploadServerQuery cropY(java.lang.Integer value)
Set crop y- Parameters:
value- value of "crop y" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
cropWidth
public PhotosGetChatUploadServerQuery cropWidth(java.lang.Integer value)
Width (in pixels) of the photo after cropping.- Parameters:
value- value of "crop width" parameter. Minimum is 200.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected PhotosGetChatUploadServerQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<PhotosGetChatUploadServerQuery,GetUploadServerResponse>- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
essentialKeys
protected java.util.List<java.lang.String> essentialKeys()
Description copied from class:AbstractQueryBuilderGet list of required parameter names- Specified by:
essentialKeysin classAbstractQueryBuilder<PhotosGetChatUploadServerQuery,GetUploadServerResponse>- Returns:
- list of names
-
-