Package com.vk.api.sdk.queries.notes
Class NotesGetCommentsQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<NotesGetCommentsQuery,GetCommentsResponse>
-
- com.vk.api.sdk.queries.notes.NotesGetCommentsQuery
-
public class NotesGetCommentsQuery extends AbstractQueryBuilder<NotesGetCommentsQuery,GetCommentsResponse>
Query for Notes.getComments method
-
-
Constructor Summary
Constructors Constructor Description NotesGetCommentsQuery(VkApiClient client, UserActor actor, int noteId)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 NotesGetCommentsQuerycount(java.lang.Integer value)Number of comments to return.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected NotesGetCommentsQuerygetThis()Get reference to this objectprotected NotesGetCommentsQuerynoteId(int value)Note ID.NotesGetCommentsQueryoffset(java.lang.Integer value)Set offsetNotesGetCommentsQueryownerId(java.lang.Integer value)Note owner ID.NotesGetCommentsQuerysort(GetCommentsSort value)Set sort-
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
-
NotesGetCommentsQuery
public NotesGetCommentsQuery(VkApiClient client, UserActor actor, int noteId)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokennoteId- value of "note id" parameter. Minimum is 0.
-
-
Method Detail
-
noteId
protected NotesGetCommentsQuery noteId(int value)
Note ID.- Parameters:
value- value of "note id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
ownerId
public NotesGetCommentsQuery ownerId(java.lang.Integer value)
Note owner ID.- Parameters:
value- value of "owner id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
sort
public NotesGetCommentsQuery sort(GetCommentsSort value)
Set sort- Parameters:
value- value of "sort" parameter. Minimum is 0. By default 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
offset
public NotesGetCommentsQuery offset(java.lang.Integer value)
Set offset- Parameters:
value- value of "offset" parameter. Minimum is 0. By default 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
count
public NotesGetCommentsQuery count(java.lang.Integer value)
Number of comments to return.- Parameters:
value- value of "count" parameter. Maximum is 100. Minimum is 0. By default 20.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected NotesGetCommentsQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<NotesGetCommentsQuery,GetCommentsResponse>- 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<NotesGetCommentsQuery,GetCommentsResponse>- Returns:
- list of names
-
-