Package com.vk.api.sdk.queries.apps
Class AppsGetQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<AppsGetQuery,GetResponse>
-
- com.vk.api.sdk.queries.apps.AppsGetQuery
-
public class AppsGetQuery extends AbstractQueryBuilder<AppsGetQuery,GetResponse>
Query for Apps.get method
-
-
Constructor Summary
Constructors Constructor Description AppsGetQuery(VkApiClient client, ServiceActor actor)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersAppsGetQuery(VkApiClient client, UserActor actor)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 AppsGetQueryappId(java.lang.Integer value)Application IDAppsGetQueryappIds(java.lang.String... value)app_ids List of application IDAppsGetQueryappIds(java.util.List<java.lang.String> value)List of application IDprotected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesAppsGetQueryextended(java.lang.Boolean value)Set extendedAppsGetQueryfields(Fields... value)fields Profile fields to return.AppsGetQueryfields(java.util.List<Fields> value)Profile fields to return.protected AppsGetQuerygetThis()Get reference to this objectAppsGetQuerynameCase(GetNameCase value)Case for declension of user name and surname: 'nom' — nominative (default),, 'gen' — genitive,, 'dat' — dative,, 'acc' — accusative,, 'ins' — instrumental,, 'abl' — prepositional.AppsGetQueryplatform(GetPlatform value)Platform.AppsGetQueryreturnFriends(java.lang.Boolean value)Set return friends-
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
-
AppsGetQuery
public AppsGetQuery(VkApiClient client, UserActor actor)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access token
-
AppsGetQuery
public AppsGetQuery(VkApiClient client, ServiceActor actor)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access token
-
-
Method Detail
-
appId
public AppsGetQuery appId(java.lang.Integer value)
Application ID- Parameters:
value- value of "app id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
platform
public AppsGetQuery platform(GetPlatform value)
Platform. Possible values: *'ios' — iOS,, *'android' — Android,, *'winphone' — Windows Phone,, *'web' — приложения на vk.com. By default: 'web'.- Parameters:
value- value of "platform" parameter. By default web.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
extended
public AppsGetQuery extended(java.lang.Boolean value)
Set extended- Parameters:
value- value of "extended" parameter. By default 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
returnFriends
public AppsGetQuery returnFriends(java.lang.Boolean value)
Set return friends- Parameters:
value- value of "return friends" parameter. By default 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
nameCase
public AppsGetQuery nameCase(GetNameCase value)
Case for declension of user name and surname: 'nom' — nominative (default),, 'gen' — genitive,, 'dat' — dative,, 'acc' — accusative,, 'ins' — instrumental,, 'abl' — prepositional. (only if 'return_friends' = '1')- Parameters:
value- value of "name case" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
appIds
public AppsGetQuery appIds(java.lang.String... value)
app_ids List of application ID- Parameters:
value- value of "app ids" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
appIds
public AppsGetQuery appIds(java.util.List<java.lang.String> value)
List of application ID- Parameters:
value- value of "app ids" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public AppsGetQuery fields(Fields... value)
fields Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'contacts', 'education', 'online', 'counters', 'relation', 'last_seen', 'activity', 'can_write_private_message', 'can_see_all_posts', 'can_post', 'universities', (only if return_friends - 1)- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public AppsGetQuery fields(java.util.List<Fields> value)
Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'contacts', 'education', 'online', 'counters', 'relation', 'last_seen', 'activity', 'can_write_private_message', 'can_see_all_posts', 'can_post', 'universities', (only if return_friends - 1)- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected AppsGetQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<AppsGetQuery,GetResponse>- 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<AppsGetQuery,GetResponse>- Returns:
- list of names
-
-