
com.vk.api.sdk.queries.friends.FriendsGetByPhonesQuery Maven / Gradle / Ivy
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.queries.friends;
import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.Utils;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.UserActor;
import com.vk.api.sdk.objects.friends.responses.GetByPhonesResponse;
import com.vk.api.sdk.objects.users.Fields;
import java.util.Arrays;
import java.util.List;
/**
* Query for Friends.getByPhones method
*/
public class FriendsGetByPhonesQuery extends AbstractQueryBuilder> {
/**
* Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
*
* @param client VK API client
* @param actor actor with access token
*/
public FriendsGetByPhonesQuery(VkApiClient client, UserActor actor) {
super(client, "friends.getByPhones", Utils.buildParametrizedType(List.class, GetByPhonesResponse.class));
accessToken(actor.getAccessToken());
}
/**
* phones
* List of phone numbers in MSISDN format (maximum 1000). Example: "+79219876543,+79111234567"
*
* @param value value of "phones" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public FriendsGetByPhonesQuery phones(String... value) {
return unsafeParam("phones", value);
}
/**
* List of phone numbers in MSISDN format (maximum 1000). Example: "+79219876543,+79111234567"
*
* @param value value of "phones" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public FriendsGetByPhonesQuery phones(List value) {
return unsafeParam("phones", 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'.
*
* @param value value of "fields" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public FriendsGetByPhonesQuery fields(Fields... value) {
return unsafeParam("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'.
*
* @param value value of "fields" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public FriendsGetByPhonesQuery fields(List value) {
return unsafeParam("fields", value);
}
@Override
protected FriendsGetByPhonesQuery getThis() {
return this;
}
@Override
protected List essentialKeys() {
return Arrays.asList("access_token");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy