Package com.vk.api.sdk.queries.likes
Class LikesGetListQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<LikesGetListQuery,GetListResponse>
-
- com.vk.api.sdk.queries.likes.LikesGetListQuery
-
public class LikesGetListQuery extends AbstractQueryBuilder<LikesGetListQuery,GetListResponse>
Query for Likes.getList method
-
-
Constructor Summary
Constructors Constructor Description LikesGetListQuery(VkApiClient client, ServiceActor actor, Type type)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersLikesGetListQuery(VkApiClient client, UserActor actor, Type type)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 LikesGetListQuerycount(java.lang.Integer value)Number of user IDs to return (maximum '1000').protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesLikesGetListQueryextended(java.lang.Boolean value)Specifies whether extended information will be returned.LikesGetListQueryfilter(GetListFilter value)Filters to apply: 'likes' — returns information about all users who liked the object (default), 'copies' — returns information only about users who told their friends about the objectLikesGetListQueryfriendsOnly(GetListFriendsOnly value)Specifies which users are returned: '1' — to return only the current user's friends, '0' — to return all users (default)protected LikesGetListQuerygetThis()Get reference to this objectLikesGetListQueryitemId(java.lang.Integer value)Object ID.LikesGetListQueryoffset(java.lang.Integer value)Offset needed to select a specific subset of users.LikesGetListQueryownerId(java.lang.Integer value)ID of the user, community, or application that owns the object.LikesGetListQuerypageUrl(java.lang.String value)URL of the page where the [vk.com/dev/Like|Like widget] is installed.LikesGetListQueryskipOwn(java.lang.Boolean value)Set skip ownprotected LikesGetListQuerytype(Type value), Object type: 'post' — post on user or community wall, 'comment' — comment on a wall post, 'photo' — photo, 'audio' — audio, 'video' — video, 'note' — note, 'photo_comment' — comment on the photo, 'video_comment' — comment on the video, 'topic_comment' — comment in the discussion, 'sitepage' — page of the site where the [vk.com/dev/Like|Like widget] is installed-
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
-
LikesGetListQuery
public LikesGetListQuery(VkApiClient client, UserActor actor, Type type)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokentype- value of "type" parameter.
-
LikesGetListQuery
public LikesGetListQuery(VkApiClient client, ServiceActor actor, Type type)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokentype- value of "type" parameter.
-
-
Method Detail
-
type
protected LikesGetListQuery type(Type value)
, Object type: 'post' — post on user or community wall, 'comment' — comment on a wall post, 'photo' — photo, 'audio' — audio, 'video' — video, 'note' — note, 'photo_comment' — comment on the photo, 'video_comment' — comment on the video, 'topic_comment' — comment in the discussion, 'sitepage' — page of the site where the [vk.com/dev/Like|Like widget] is installed- Parameters:
value- value of "type" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
ownerId
public LikesGetListQuery ownerId(java.lang.Integer value)
ID of the user, community, or application that owns the object. If the 'type' parameter is set as 'sitepage', the application ID is passed as 'owner_id'. Use negative value for a community id. If the 'type' parameter is not set, the 'owner_id' is assumed to be either the current user or the same application ID as if the 'type' parameter was set to 'sitepage'.- Parameters:
value- value of "owner id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
itemId
public LikesGetListQuery itemId(java.lang.Integer value)
Object ID. If 'type' is set as 'sitepage', 'item_id' can include the 'page_id' parameter value used during initialization of the [vk.com/dev/Like|Like widget].- Parameters:
value- value of "item id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
pageUrl
public LikesGetListQuery pageUrl(java.lang.String value)
URL of the page where the [vk.com/dev/Like|Like widget] is installed. Used instead of the 'item_id' parameter.- Parameters:
value- value of "page url" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
filter
public LikesGetListQuery filter(GetListFilter value)
Filters to apply: 'likes' — returns information about all users who liked the object (default), 'copies' — returns information only about users who told their friends about the object- Parameters:
value- value of "filter" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
friendsOnly
public LikesGetListQuery friendsOnly(GetListFriendsOnly value)
Specifies which users are returned: '1' — to return only the current user's friends, '0' — to return all users (default)- Parameters:
value- value of "friends only" parameter. By default 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
extended
public LikesGetListQuery extended(java.lang.Boolean value)
Specifies whether extended information will be returned. '1' — to return extended information about users and communities from the 'Likes' list, '0' — to return no additional information (default)- Parameters:
value- value of "extended" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
offset
public LikesGetListQuery offset(java.lang.Integer value)
Offset needed to select a specific subset of users.- Parameters:
value- value of "offset" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
count
public LikesGetListQuery count(java.lang.Integer value)
Number of user IDs to return (maximum '1000'). Default is '100' if 'friends_only' is set to '0', otherwise, the default is '10' if 'friends_only' is set to '1'.- Parameters:
value- value of "count" parameter. Maximum is 1000. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
skipOwn
public LikesGetListQuery skipOwn(java.lang.Boolean value)
Set skip own- Parameters:
value- value of "skip own" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected LikesGetListQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<LikesGetListQuery,GetListResponse>- 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<LikesGetListQuery,GetListResponse>- Returns:
- list of names
-
-