Package com.vk.api.sdk.queries.friends
Class FriendsGetByPhonesQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<FriendsGetByPhonesQuery,java.util.List<GetByPhonesResponse>>
-
- com.vk.api.sdk.queries.friends.FriendsGetByPhonesQuery
-
public class FriendsGetByPhonesQuery extends AbstractQueryBuilder<FriendsGetByPhonesQuery,java.util.List<GetByPhonesResponse>>
Query for Friends.getByPhones method
-
-
Constructor Summary
Constructors Constructor Description FriendsGetByPhonesQuery(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 protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesFriendsGetByPhonesQueryfields(Fields... value)fields Profile fields to return.FriendsGetByPhonesQueryfields(java.util.List<Fields> value)Profile fields to return.protected FriendsGetByPhonesQuerygetThis()Get reference to this objectFriendsGetByPhonesQueryphones(java.lang.String... value)phones List of phone numbers in MSISDN format (maximum 1000).FriendsGetByPhonesQueryphones(java.util.List<java.lang.String> value)List of phone numbers in MSISDN format (maximum 1000).-
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
-
FriendsGetByPhonesQuery
public FriendsGetByPhonesQuery(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
-
-
Method Detail
-
phones
public FriendsGetByPhonesQuery phones(java.lang.String... value)
phones List of phone numbers in MSISDN format (maximum 1000). Example: "+79219876543,+79111234567"- Parameters:
value- value of "phones" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
phones
public FriendsGetByPhonesQuery phones(java.util.List<java.lang.String> value)
List of phone numbers in MSISDN format (maximum 1000). Example: "+79219876543,+79111234567"- Parameters:
value- value of "phones" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public FriendsGetByPhonesQuery 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', 'rate', 'contacts', 'education', 'online, counters'.- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public FriendsGetByPhonesQuery 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', 'rate', 'contacts', 'education', 'online, counters'.- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected FriendsGetByPhonesQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<FriendsGetByPhonesQuery,java.util.List<GetByPhonesResponse>>- 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<FriendsGetByPhonesQuery,java.util.List<GetByPhonesResponse>>- Returns:
- list of names
-
-