Package com.vk.api.sdk.queries.likes
Class LikesIsLikedQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<LikesIsLikedQuery,IsLikedResponse>
-
- com.vk.api.sdk.queries.likes.LikesIsLikedQuery
-
public class LikesIsLikedQuery extends AbstractQueryBuilder<LikesIsLikedQuery,IsLikedResponse>
Query for Likes.isLiked method
-
-
Constructor Summary
Constructors Constructor Description LikesIsLikedQuery(VkApiClient client, UserActor actor, Type type, int itemId)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 namesprotected LikesIsLikedQuerygetThis()Get reference to this objectprotected LikesIsLikedQueryitemId(int value)Object ID.LikesIsLikedQueryownerId(java.lang.Integer value)ID of the user or community that owns the object.protected LikesIsLikedQuerytype(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 discussionLikesIsLikedQueryuserId(java.lang.Integer value)User ID.-
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
-
LikesIsLikedQuery
public LikesIsLikedQuery(VkApiClient client, UserActor actor, Type type, int itemId)
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.itemId- value of "item id" parameter. Minimum is 0.
-
-
Method Detail
-
userId
public LikesIsLikedQuery userId(java.lang.Integer value)
User ID.- Parameters:
value- value of "user id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
type
protected LikesIsLikedQuery 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- Parameters:
value- value of "type" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
ownerId
public LikesIsLikedQuery ownerId(java.lang.Integer value)
ID of the user or community that owns the object.- Parameters:
value- value of "owner id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
itemId
protected LikesIsLikedQuery itemId(int value)
Object ID.- Parameters:
value- value of "item id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected LikesIsLikedQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<LikesIsLikedQuery,IsLikedResponse>- 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<LikesIsLikedQuery,IsLikedResponse>- Returns:
- list of names
-
-