Package com.vk.api.sdk.queries.photos
Class PhotosGetByIdQueryWithLegacy
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<PhotosGetByIdQueryWithLegacy,java.util.List<GetByIdLegacyResponse>>
-
- com.vk.api.sdk.queries.photos.PhotosGetByIdQueryWithLegacy
-
public class PhotosGetByIdQueryWithLegacy extends AbstractQueryBuilder<PhotosGetByIdQueryWithLegacy,java.util.List<GetByIdLegacyResponse>>
Query for Photos.getById method
-
-
Constructor Summary
Constructors Constructor Description PhotosGetByIdQueryWithLegacy(VkApiClient client, ServiceActor actor, java.lang.String... photos)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersPhotosGetByIdQueryWithLegacy(VkApiClient client, ServiceActor actor, java.util.List<java.lang.String> photos)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersPhotosGetByIdQueryWithLegacy(VkApiClient client, UserActor actor, java.lang.String... photos)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersPhotosGetByIdQueryWithLegacy(VkApiClient client, UserActor actor, java.util.List<java.lang.String> photos)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 java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesPhotosGetByIdQueryWithLegacyextended(java.lang.Boolean value)'1' — to return additional fields, '0' — (default)protected PhotosGetByIdQueryWithLegacygetThis()Get reference to this objectprotected PhotosGetByIdQueryWithLegacyphotos(java.lang.String... value)photos IDs separated with a comma, that are IDs of users who posted photos and IDs of photos themselves with an underscore character between such IDs.protected PhotosGetByIdQueryWithLegacyphotos(java.util.List<java.lang.String> value)IDs separated with a comma, that are IDs of users who posted photos and IDs of photos themselves with an underscore character between such IDs.PhotosGetByIdQueryWithLegacyphotoSizes(java.lang.Boolean value)'1' — to return photo sizes in a-
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
-
PhotosGetByIdQueryWithLegacy
public PhotosGetByIdQueryWithLegacy(VkApiClient client, UserActor actor, java.lang.String... photos)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenphotos- value of "photos" parameter.
-
PhotosGetByIdQueryWithLegacy
public PhotosGetByIdQueryWithLegacy(VkApiClient client, UserActor actor, java.util.List<java.lang.String> photos)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenphotos- value of "photos" parameter.
-
PhotosGetByIdQueryWithLegacy
public PhotosGetByIdQueryWithLegacy(VkApiClient client, ServiceActor actor, java.lang.String... photos)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenphotos- value of "photos" parameter.
-
PhotosGetByIdQueryWithLegacy
public PhotosGetByIdQueryWithLegacy(VkApiClient client, ServiceActor actor, java.util.List<java.lang.String> photos)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenphotos- value of "photos" parameter.
-
-
Method Detail
-
extended
public PhotosGetByIdQueryWithLegacy extended(java.lang.Boolean value)
'1' — to return additional fields, '0' — (default)- Parameters:
value- value of "extended" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
photoSizes
public PhotosGetByIdQueryWithLegacy photoSizes(java.lang.Boolean value)
'1' — to return photo sizes in a- Parameters:
value- value of "photo sizes" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
photos
protected PhotosGetByIdQueryWithLegacy photos(java.lang.String... value)
photos IDs separated with a comma, that are IDs of users who posted photos and IDs of photos themselves with an underscore character between such IDs. To get information about a photo in the group album, you shall specify group ID instead of user ID. Example: "1_129207899,6492_135055734, , -20629724_271945303"- Parameters:
value- value of "photos" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
photos
protected PhotosGetByIdQueryWithLegacy photos(java.util.List<java.lang.String> value)
IDs separated with a comma, that are IDs of users who posted photos and IDs of photos themselves with an underscore character between such IDs. To get information about a photo in the group album, you shall specify group ID instead of user ID. Example: "1_129207899,6492_135055734, , -20629724_271945303"- Parameters:
value- value of "photos" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected PhotosGetByIdQueryWithLegacy getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<PhotosGetByIdQueryWithLegacy,java.util.List<GetByIdLegacyResponse>>- 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<PhotosGetByIdQueryWithLegacy,java.util.List<GetByIdLegacyResponse>>- Returns:
- list of names
-
-