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
Modifier and Type Method Description PhotosSaveWallPhotoQuery
caption(java.lang.String value)
Text describing the photo.protected java.util.List<java.lang.String>
essentialKeys()
Get list of required parameter namesprotected PhotosSaveWallPhotoQuery
getThis()
Get reference to this objectPhotosSaveWallPhotoQuery
groupId(java.lang.Integer value)
ID of community on whose wall the photo will be saved.PhotosSaveWallPhotoQuery
hash(java.lang.String value)
Set hashPhotosSaveWallPhotoQuery
latitude(java.lang.Number value)
Geographical latitude, in degrees (from '-90' to '90').PhotosSaveWallPhotoQuery
longitude(java.lang.Number value)
Geographical longitude, in degrees (from '-180' to '180').protected PhotosSaveWallPhotoQuery
photo(java.lang.String value)
Parameter returned when the the photo is [vk.com/dev/upload_files|uploaded to the server].PhotosSaveWallPhotoQuery
server(java.lang.Integer value)
Set serverPhotosSaveWallPhotoQuery
userId(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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
PhotosSaveWallPhotoQuery
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 Details
-
userId
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
groupId
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
photo
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
server
Set server- Parameters:
value
- value of "server" parameter.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
hash
Set hash- Parameters:
value
- value of "hash" parameter.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
latitude
Geographical latitude, in degrees (from '-90' to '90').- Parameters:
value
- value of "latitude" parameter.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
longitude
Geographical longitude, in degrees (from '-180' to '180').- Parameters:
value
- value of "longitude" parameter.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
caption
Text describing the photo. 2048 digits max.- Parameters:
value
- value of "caption" parameter.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
getThis
Description copied from class:AbstractQueryBuilder
Get reference to this object- Specified by:
getThis
in classAbstractQueryBuilder<PhotosSaveWallPhotoQuery,java.util.List<SaveWallPhotoResponse>>
- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
essentialKeys
protected java.util.List<java.lang.String> essentialKeys()Description copied from class:AbstractQueryBuilder
Get list of required parameter names- Specified by:
essentialKeys
in classAbstractQueryBuilder<PhotosSaveWallPhotoQuery,java.util.List<SaveWallPhotoResponse>>
- Returns:
- list of names
-