Package com.vk.api.sdk.queries.video
Class VideoGetCommentsQueryWithExtended
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<VideoGetCommentsQueryWithExtended,GetCommentsExtendedResponse>
-
- com.vk.api.sdk.queries.video.VideoGetCommentsQueryWithExtended
-
public class VideoGetCommentsQueryWithExtended extends AbstractQueryBuilder<VideoGetCommentsQueryWithExtended,GetCommentsExtendedResponse>
Query for Video.getComments method
-
-
Constructor Summary
Constructors Constructor Description VideoGetCommentsQueryWithExtended(VkApiClient client, UserActor actor, int videoId)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 VideoGetCommentsQueryWithExtendedcount(java.lang.Integer value)Number of comments to return.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected VideoGetCommentsQueryWithExtendedextended(java.lang.Boolean value)Set extendedVideoGetCommentsQueryWithExtendedfields(java.lang.String... value)fields Set fieldsVideoGetCommentsQueryWithExtendedfields(java.util.List<java.lang.String> value)Set fieldsprotected VideoGetCommentsQueryWithExtendedgetThis()Get reference to this objectVideoGetCommentsQueryWithExtendedneedLikes(java.lang.Boolean value)'1' — to return an additional 'likes' fieldVideoGetCommentsQueryWithExtendedoffset(java.lang.Integer value)Offset needed to return a specific subset of comments.VideoGetCommentsQueryWithExtendedownerId(java.lang.Integer value)ID of the user or community that owns the video.VideoGetCommentsQueryWithExtendedsort(GetCommentsSort value)Sort order: 'asc' — oldest comment first, 'desc' — newest comment firstVideoGetCommentsQueryWithExtendedstartCommentId(java.lang.Integer value)Set start comment idprotected VideoGetCommentsQueryWithExtendedvideoId(int value)Video 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
-
VideoGetCommentsQueryWithExtended
public VideoGetCommentsQueryWithExtended(VkApiClient client, UserActor actor, int videoId)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenvideoId- value of "video id" parameter. Minimum is 0.
-
-
Method Detail
-
ownerId
public VideoGetCommentsQueryWithExtended ownerId(java.lang.Integer value)
ID of the user or community that owns the video.- Parameters:
value- value of "owner id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
videoId
protected VideoGetCommentsQueryWithExtended videoId(int value)
Video ID.- Parameters:
value- value of "video id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
needLikes
public VideoGetCommentsQueryWithExtended needLikes(java.lang.Boolean value)
'1' — to return an additional 'likes' field- Parameters:
value- value of "need likes" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
startCommentId
public VideoGetCommentsQueryWithExtended startCommentId(java.lang.Integer value)
Set start comment id- Parameters:
value- value of "start comment id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
offset
public VideoGetCommentsQueryWithExtended offset(java.lang.Integer value)
Offset needed to return a specific subset of comments.- Parameters:
value- value of "offset" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
count
public VideoGetCommentsQueryWithExtended 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.
-
sort
public VideoGetCommentsQueryWithExtended sort(GetCommentsSort value)
Sort order: 'asc' — oldest comment first, 'desc' — newest comment first- Parameters:
value- value of "sort" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
extended
protected VideoGetCommentsQueryWithExtended extended(java.lang.Boolean value)
Set extended- Parameters:
value- value of "extended" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public VideoGetCommentsQueryWithExtended fields(java.lang.String... value)
fields Set fields- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public VideoGetCommentsQueryWithExtended fields(java.util.List<java.lang.String> value)
Set fields- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected VideoGetCommentsQueryWithExtended getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<VideoGetCommentsQueryWithExtended,GetCommentsExtendedResponse>- 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<VideoGetCommentsQueryWithExtended,GetCommentsExtendedResponse>- Returns:
- list of names
-
-