Package com.vk.api.sdk.queries.friends
Class FriendsGetMutualQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<FriendsGetMutualQuery,java.util.List<java.lang.Integer>>
-
- com.vk.api.sdk.queries.friends.FriendsGetMutualQuery
-
public class FriendsGetMutualQuery extends AbstractQueryBuilder<FriendsGetMutualQuery,java.util.List<java.lang.Integer>>
Query for Friends.getMutual method
-
-
Constructor Summary
Constructors Constructor Description FriendsGetMutualQuery(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 FriendsGetMutualQuerycount(java.lang.Integer value)Number of mutual friends to return.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected FriendsGetMutualQuerygetThis()Get reference to this objectFriendsGetMutualQueryoffset(java.lang.Integer value)Offset needed to return a specific subset of mutual friends.FriendsGetMutualQueryorder(java.lang.String value)Sort order: 'random' — random orderFriendsGetMutualQuerysourceUid(java.lang.Integer value)ID of the user whose friends will be checked against the friends of the user specified in 'target_uid'.FriendsGetMutualQuerytargetUid(java.lang.Integer value)ID of the user whose friends will be checked against the friends of the user specified in 'source_uid'.FriendsGetMutualQuerytargetUids(java.lang.Integer... value)target_uids IDs of the users whose friends will be checked against the friends of the user specified in 'source_uid'.FriendsGetMutualQuerytargetUids(java.util.List<java.lang.Integer> value)IDs of the users whose friends will be checked against the friends of the user specified in 'source_uid'.-
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
-
FriendsGetMutualQuery
public FriendsGetMutualQuery(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
-
sourceUid
public FriendsGetMutualQuery sourceUid(java.lang.Integer value)
ID of the user whose friends will be checked against the friends of the user specified in 'target_uid'.- Parameters:
value- value of "source uid" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
targetUid
public FriendsGetMutualQuery targetUid(java.lang.Integer value)
ID of the user whose friends will be checked against the friends of the user specified in 'source_uid'.- Parameters:
value- value of "target uid" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
order
public FriendsGetMutualQuery order(java.lang.String value)
Sort order: 'random' — random order- Parameters:
value- value of "order" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
count
public FriendsGetMutualQuery count(java.lang.Integer value)
Number of mutual friends to return.- Parameters:
value- value of "count" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
offset
public FriendsGetMutualQuery offset(java.lang.Integer value)
Offset needed to return a specific subset of mutual friends.- Parameters:
value- value of "offset" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
targetUids
public FriendsGetMutualQuery targetUids(java.lang.Integer... value)
target_uids IDs of the users whose friends will be checked against the friends of the user specified in 'source_uid'.- Parameters:
value- value of "target uids" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
targetUids
public FriendsGetMutualQuery targetUids(java.util.List<java.lang.Integer> value)
IDs of the users whose friends will be checked against the friends of the user specified in 'source_uid'.- Parameters:
value- value of "target uids" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected FriendsGetMutualQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<FriendsGetMutualQuery,java.util.List<java.lang.Integer>>- 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<FriendsGetMutualQuery,java.util.List<java.lang.Integer>>- Returns:
- list of names
-
-