Package com.vk.api.sdk.queries.likes
Class LikesAddQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<LikesAddQuery,AddResponse>
-
- com.vk.api.sdk.queries.likes.LikesAddQuery
-
public class LikesAddQuery extends AbstractQueryBuilder<LikesAddQuery,AddResponse>
Query for Likes.add method
-
-
Constructor Summary
Constructors Constructor Description LikesAddQuery(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 LikesAddQueryaccessKey(java.lang.String value)Access key required for an object owned by a private entity.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected LikesAddQuerygetThis()Get reference to this objectprotected LikesAddQueryitemId(int value)Object ID.LikesAddQueryownerId(java.lang.Integer value)ID of the user or community that owns the object.protected LikesAddQuerytype(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
-
LikesAddQuery
public LikesAddQuery(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
-
type
protected LikesAddQuery 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 LikesAddQuery 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 LikesAddQuery 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.
-
accessKey
public LikesAddQuery accessKey(java.lang.String value)
Access key required for an object owned by a private entity.- Parameters:
value- value of "access key" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected LikesAddQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<LikesAddQuery,AddResponse>- 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<LikesAddQuery,AddResponse>- Returns:
- list of names
-
-