Package com.vk.api.sdk.queries.photos
Class PhotosSaveWallPhotoQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<PhotosSaveWallPhotoQuery,java.util.List<SaveWallPhotoResponse>>
-
- com.vk.api.sdk.queries.photos.PhotosSaveWallPhotoQuery
-
public class PhotosSaveWallPhotoQuery extends AbstractQueryBuilder<PhotosSaveWallPhotoQuery,java.util.List<SaveWallPhotoResponse>>
Query for Photos.saveWallPhoto method
-
-
Constructor Summary
Constructors Constructor Description PhotosSaveWallPhotoQuery(VkApiClient client, UserActor actor, java.lang.String photo)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 PhotosSaveWallPhotoQuerycaption(java.lang.String value)Text describing the photo.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected PhotosSaveWallPhotoQuerygetThis()Get reference to this objectPhotosSaveWallPhotoQuerygroupId(java.lang.Integer value)ID of community on whose wall the photo will be saved.PhotosSaveWallPhotoQueryhash(java.lang.String value)Set hashPhotosSaveWallPhotoQuerylatitude(java.lang.Number value)Geographical latitude, in degrees (from '-90' to '90').PhotosSaveWallPhotoQuerylongitude(java.lang.Number value)Geographical longitude, in degrees (from '-180' to '180').protected PhotosSaveWallPhotoQueryphoto(java.lang.String value)Parameter returned when the the photo is [vk.com/dev/upload_files|uploaded to the server].PhotosSaveWallPhotoQueryserver(java.lang.Integer value)Set serverPhotosSaveWallPhotoQueryuserId(java.lang.Integer value)ID of the user on whose wall the photo will be saved.-
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
-
PhotosSaveWallPhotoQuery
public PhotosSaveWallPhotoQuery(VkApiClient client, UserActor actor, java.lang.String photo)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenphoto- value of "photo" parameter.
-
-
Method Detail
-
userId
public PhotosSaveWallPhotoQuery userId(java.lang.Integer value)
ID of the user on whose wall the photo will be saved.- Parameters:
value- value of "user id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
groupId
public PhotosSaveWallPhotoQuery groupId(java.lang.Integer value)
ID of community on whose wall the photo will be saved.- Parameters:
value- value of "group id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
photo
protected PhotosSaveWallPhotoQuery photo(java.lang.String value)
Parameter returned when the the photo is [vk.com/dev/upload_files|uploaded to the server].- Parameters:
value- value of "photo" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
server
public PhotosSaveWallPhotoQuery server(java.lang.Integer value)
Set server- Parameters:
value- value of "server" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
hash
public PhotosSaveWallPhotoQuery hash(java.lang.String value)
Set hash- Parameters:
value- value of "hash" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
latitude
public PhotosSaveWallPhotoQuery latitude(java.lang.Number value)
Geographical latitude, in degrees (from '-90' to '90').- Parameters:
value- value of "latitude" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
longitude
public PhotosSaveWallPhotoQuery longitude(java.lang.Number value)
Geographical longitude, in degrees (from '-180' to '180').- Parameters:
value- value of "longitude" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
caption
public PhotosSaveWallPhotoQuery caption(java.lang.String value)
Text describing the photo. 2048 digits max.- Parameters:
value- value of "caption" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected PhotosSaveWallPhotoQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<PhotosSaveWallPhotoQuery,java.util.List<SaveWallPhotoResponse>>- 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<PhotosSaveWallPhotoQuery,java.util.List<SaveWallPhotoResponse>>- Returns:
- list of names
-
-