Package com.vk.api.sdk.queries.friends
Class FriendsGetQueryWithFields
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<FriendsGetQueryWithFields,GetFieldsResponse>
-
- com.vk.api.sdk.queries.friends.FriendsGetQueryWithFields
-
public class FriendsGetQueryWithFields extends AbstractQueryBuilder<FriendsGetQueryWithFields,GetFieldsResponse>
Query for Friends.get method
-
-
Constructor Summary
Constructors Constructor Description FriendsGetQueryWithFields(VkApiClient client, ServiceActor actor, Fields... fields)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersFriendsGetQueryWithFields(VkApiClient client, ServiceActor actor, java.util.List<Fields> fields)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersFriendsGetQueryWithFields(VkApiClient client, UserActor actor, Fields... fields)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersFriendsGetQueryWithFields(VkApiClient client, UserActor actor, java.util.List<Fields> fields)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 FriendsGetQueryWithFieldscount(java.lang.Integer value)Number of friends to return.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected FriendsGetQueryWithFieldsfields(Fields... value)fields Profile fields to return.protected FriendsGetQueryWithFieldsfields(java.util.List<Fields> value)Profile fields to return.protected FriendsGetQueryWithFieldsgetThis()Get reference to this objectFriendsGetQueryWithFieldslistId(java.lang.Integer value)ID of the friend list returned by the [vk.com/dev/friends.getLists|friends.getLists] method to be used as the source.FriendsGetQueryWithFieldsnameCase(GetNameCase value)Case for declension of user name and surname: , 'nom' — nominative (default) , 'gen' — genitive , 'dat' — dative , 'acc' — accusative , 'ins' — instrumental , 'abl' — prepositionalFriendsGetQueryWithFieldsoffset(java.lang.Integer value)Offset needed to return a specific subset of friends.FriendsGetQueryWithFieldsorder(GetOrder value)Sort order: , 'name' — by name (enabled only if the 'fields' parameter is used), 'hints' — by rating, similar to how friends are sorted in My friends section, , This parameter is available only for [vk.com/dev/standalone|desktop applications].FriendsGetQueryWithFieldsref(java.lang.String value)Set refFriendsGetQueryWithFieldsuserId(java.lang.Integer value)User ID.-
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
-
FriendsGetQueryWithFields
public FriendsGetQueryWithFields(VkApiClient client, UserActor actor, Fields... fields)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access token
-
FriendsGetQueryWithFields
public FriendsGetQueryWithFields(VkApiClient client, UserActor actor, java.util.List<Fields> fields)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access token
-
FriendsGetQueryWithFields
public FriendsGetQueryWithFields(VkApiClient client, ServiceActor actor, Fields... fields)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access token
-
FriendsGetQueryWithFields
public FriendsGetQueryWithFields(VkApiClient client, ServiceActor actor, java.util.List<Fields> fields)
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
-
userId
public FriendsGetQueryWithFields userId(java.lang.Integer value)
User ID. By default, the current user ID.- Parameters:
value- value of "user id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
order
public FriendsGetQueryWithFields order(GetOrder value)
Sort order: , 'name' — by name (enabled only if the 'fields' parameter is used), 'hints' — by rating, similar to how friends are sorted in My friends section, , This parameter is available only for [vk.com/dev/standalone|desktop applications].- Parameters:
value- value of "order" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
listId
public FriendsGetQueryWithFields listId(java.lang.Integer value)
ID of the friend list returned by the [vk.com/dev/friends.getLists|friends.getLists] method to be used as the source. This parameter is taken into account only when the uid parameter is set to the current user ID. This parameter is available only for [vk.com/dev/standalone|desktop applications].- Parameters:
value- value of "list id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
count
public FriendsGetQueryWithFields count(java.lang.Integer value)
Number of friends to return.- Parameters:
value- value of "count" parameter. Minimum is 0. By default 5000.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
offset
public FriendsGetQueryWithFields offset(java.lang.Integer value)
Offset needed to return a specific subset of friends.- Parameters:
value- value of "offset" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
nameCase
public FriendsGetQueryWithFields nameCase(GetNameCase value)
Case for declension of user name and surname: , 'nom' — nominative (default) , 'gen' — genitive , 'dat' — dative , 'acc' — accusative , 'ins' — instrumental , 'abl' — prepositional- Parameters:
value- value of "name case" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
ref
public FriendsGetQueryWithFields ref(java.lang.String value)
Set ref- Parameters:
value- value of "ref" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
protected FriendsGetQueryWithFields fields(Fields... value)
fields Profile fields to return. Sample values: 'uid', 'first_name', 'last_name', 'nickname', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'domain', 'has_mobile', 'rate', 'contacts', 'education'.- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
protected FriendsGetQueryWithFields fields(java.util.List<Fields> value)
Profile fields to return. Sample values: 'uid', 'first_name', 'last_name', 'nickname', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'domain', 'has_mobile', 'rate', 'contacts', 'education'.- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected FriendsGetQueryWithFields getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<FriendsGetQueryWithFields,GetFieldsResponse>- 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<FriendsGetQueryWithFields,GetFieldsResponse>- Returns:
- list of names
-
-