public class Friends extends AbstractAction
| Constructor and Description |
|---|
Friends(VkApiClient client)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
FriendsAddQuery |
add(UserActor actor)
Approves or creates a friend request.
|
FriendsAddListQuery |
addList(UserActor actor)
Creates a new friend list for the current user.
|
FriendsAddListQuery |
addList(UserActor actor,
java.lang.String name)
Creates a new friend list for the current user.
|
FriendsAreFriendsQuery |
areFriends(UserActor actor)
Checks the current user's friendship status with other specified users.
|
FriendsAreFriendsQuery |
areFriends(UserActor actor,
java.util.List<java.lang.Long> userIds)
Checks the current user's friendship status with other specified users.
|
FriendsAreFriendsQuery |
areFriends(UserActor actor,
java.lang.Long... userIds)
Checks the current user's friendship status with other specified users.
|
FriendsAreFriendsQueryWithExtended |
areFriendsExtended(UserActor actor,
java.util.List<java.lang.Long> userIds)
Checks the current user's friendship status with other specified users.
|
FriendsAreFriendsQueryWithExtended |
areFriendsExtended(UserActor actor,
java.lang.Long... userIds)
Checks the current user's friendship status with other specified users.
|
FriendsDeleteQuery |
delete(UserActor actor)
Declines a friend request or deletes a user from the current user's friend list.
|
FriendsDeleteAllRequestsQuery |
deleteAllRequests(UserActor actor)
Marks all incoming friend requests as viewed.
|
FriendsDeleteListQuery |
deleteList(UserActor actor)
Deletes a friend list of the current user.
|
FriendsDeleteListQuery |
deleteList(UserActor actor,
java.lang.Integer listId)
Deletes a friend list of the current user.
|
FriendsEditQuery |
edit(UserActor actor)
Edits the friend lists of the selected user.
|
FriendsEditQuery |
edit(UserActor actor,
java.lang.Long userId)
Edits the friend lists of the selected user.
|
FriendsEditListQuery |
editList(UserActor actor)
Edits a friend list of the current user.
|
FriendsEditListQuery |
editList(UserActor actor,
java.lang.Integer listId)
Edits a friend list of the current user.
|
FriendsGetQuery |
get(ServiceActor actor)
Returns a list of user IDs or detailed information about a user's friends.
|
FriendsGetQuery |
get(UserActor actor)
Returns a list of user IDs or detailed information about a user's friends.
|
FriendsGetAppUsersQuery |
getAppUsers(UserActor actor)
Returns a list of IDs of the current user's friends who installed the application.
|
FriendsGetByPhonesQuery |
getByPhones(UserActor actor)
Returns a list of the current user's friends whose phone numbers, validated or specified in a profile, are in a given list.
|
FriendsGetListsQuery |
getLists(UserActor actor)
Returns a list of the user's friend lists.
|
FriendsGetMutualQuery |
getMutual(UserActor actor)
Returns a list of user IDs of the mutual friends of two users.
|
FriendsGetMutualQueryWithTargetUids |
getMutualWithTargetUids(UserActor actor,
java.lang.Long... targetUids)
Returns a list of user IDs of the mutual friends of two users.
|
FriendsGetOnlineQuery |
getOnline(UserActor actor)
Returns a list of user IDs of a user's friends who are online.
|
FriendsGetOnlineQueryWithOnlineMobile |
getOnlineWithOnlineMobile(UserActor actor,
java.lang.Boolean onlineMobile)
Returns a list of user IDs of a user's friends who are online.
|
FriendsGetRecentQuery |
getRecent(UserActor actor)
Returns a list of user IDs of the current user's recently added friends.
|
FriendsGetRequestsQuery |
getRequests(UserActor actor)
Returns information about the current user's incoming and outgoing friend requests.
|
FriendsGetRequestsQueryWithExtended |
getRequestsExtended(UserActor actor)
Returns information about the current user's incoming and outgoing friend requests.
|
FriendsGetRequestsQueryWithNeedMutual |
getRequestsWithNeedMutual(UserActor actor,
java.lang.Boolean needMutual)
Returns information about the current user's incoming and outgoing friend requests.
|
FriendsGetSuggestionsQuery |
getSuggestions(UserActor actor)
Returns a list of profiles of users whom the current user may know.
|
FriendsGetQueryWithFields |
getWithFields(ServiceActor actor,
Fields... fields)
Returns a list of user IDs or detailed information about a user's friends.
|
FriendsGetQueryWithFields |
getWithFields(UserActor actor,
Fields... fields)
Returns a list of user IDs or detailed information about a user's friends.
|
FriendsSearchQuery |
search(UserActor actor)
Returns a list of friends matching the search criteria.
|
getClientpublic Friends(VkApiClient client)
client - vk api clientpublic FriendsAddQuery add(UserActor actor)
actor - vk user actorpublic FriendsAddListQuery addList(UserActor actor, java.lang.String name)
actor - vk user actorname - Name of the friend list.public FriendsAddListQuery addList(UserActor actor)
actor - vk user actorpublic FriendsAreFriendsQuery areFriends(UserActor actor, java.lang.Long... userIds)
actor - vk user actoruserIds - IDs of the users whose friendship status to check.public FriendsAreFriendsQuery areFriends(UserActor actor, java.util.List<java.lang.Long> userIds)
actor - vk user actoruserIds - IDs of the users whose friendship status to check.public FriendsAreFriendsQuery areFriends(UserActor actor)
actor - vk user actorpublic FriendsAreFriendsQueryWithExtended areFriendsExtended(UserActor actor, java.lang.Long... userIds)
actor - vk user actoruserIds - IDs of the users whose friendship status to check.public FriendsAreFriendsQueryWithExtended areFriendsExtended(UserActor actor, java.util.List<java.lang.Long> userIds)
actor - vk user actoruserIds - IDs of the users whose friendship status to check.public FriendsDeleteQuery delete(UserActor actor)
actor - vk user actorpublic FriendsDeleteAllRequestsQuery deleteAllRequests(UserActor actor)
actor - vk user actorpublic FriendsDeleteListQuery deleteList(UserActor actor, java.lang.Integer listId)
actor - vk user actorlistId - ID of the friend list to delete.public FriendsDeleteListQuery deleteList(UserActor actor)
actor - vk user actorpublic FriendsEditQuery edit(UserActor actor, java.lang.Long userId)
actor - vk user actoruserId - ID of the user whose friend list is to be edited.public FriendsEditQuery edit(UserActor actor)
actor - vk user actorpublic FriendsEditListQuery editList(UserActor actor, java.lang.Integer listId)
actor - vk user actorlistId - Friend list ID.public FriendsEditListQuery editList(UserActor actor)
actor - vk user actorpublic FriendsGetQuery get(UserActor actor)
actor - vk user actorpublic FriendsGetQuery get(ServiceActor actor)
actor - vk service actorpublic FriendsGetQueryWithFields getWithFields(UserActor actor, Fields... fields)
actor - vk user actorfields - 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'.public FriendsGetQueryWithFields getWithFields(ServiceActor actor, Fields... fields)
actor - vk service actorfields - 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'.public FriendsGetAppUsersQuery getAppUsers(UserActor actor)
actor - vk user actorpublic FriendsGetByPhonesQuery getByPhones(UserActor actor)
actor - vk user actorpublic FriendsGetListsQuery getLists(UserActor actor)
actor - vk user actorpublic FriendsGetMutualQueryWithTargetUids getMutualWithTargetUids(UserActor actor, java.lang.Long... targetUids)
actor - vk user actortargetUids - IDs of the users whose friends will be checked against the friends of the user specified in 'source_uid'.public FriendsGetMutualQuery getMutual(UserActor actor)
actor - vk user actorpublic FriendsGetOnlineQuery getOnline(UserActor actor)
actor - vk user actorpublic FriendsGetOnlineQueryWithOnlineMobile getOnlineWithOnlineMobile(UserActor actor, java.lang.Boolean onlineMobile)
actor - vk user actoronlineMobile - '1' - to return an additional 'online_mobile' field, '0' - (default),public FriendsGetRecentQuery getRecent(UserActor actor)
actor - vk user actorpublic FriendsGetRequestsQueryWithExtended getRequestsExtended(UserActor actor)
actor - vk user actorpublic FriendsGetRequestsQuery getRequests(UserActor actor)
actor - vk user actorpublic FriendsGetRequestsQueryWithNeedMutual getRequestsWithNeedMutual(UserActor actor, java.lang.Boolean needMutual)
actor - vk user actorneedMutual - '1' - to return a list of mutual friends (up to 20), if anypublic FriendsGetSuggestionsQuery getSuggestions(UserActor actor)
actor - vk user actorpublic FriendsSearchQuery search(UserActor actor)
actor - vk user actor