Package com.vk.api.sdk.queries.wall
Class WallGetCommentsQueryWithExtended
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<WallGetCommentsQueryWithExtended,GetCommentsExtendedResponse>
-
- com.vk.api.sdk.queries.wall.WallGetCommentsQueryWithExtended
-
public class WallGetCommentsQueryWithExtended extends AbstractQueryBuilder<WallGetCommentsQueryWithExtended,GetCommentsExtendedResponse>
Query for Wall.getComments method
-
-
Constructor Summary
Constructors Constructor Description WallGetCommentsQueryWithExtended(VkApiClient client, ServiceActor actor)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersWallGetCommentsQueryWithExtended(VkApiClient client, UserActor actor)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 WallGetCommentsQueryWithExtendedcommentId(java.lang.Integer value)Comment ID.WallGetCommentsQueryWithExtendedcount(java.lang.Integer value)Number of comments to return (maximum 100).protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected WallGetCommentsQueryWithExtendedextended(java.lang.Boolean value)Set extendedWallGetCommentsQueryWithExtendedfields(UserGroupFields... value)fields Set fieldsWallGetCommentsQueryWithExtendedfields(java.util.List<UserGroupFields> value)Set fieldsprotected WallGetCommentsQueryWithExtendedgetThis()Get reference to this objectWallGetCommentsQueryWithExtendedneedLikes(java.lang.Boolean value)'1' — to return the 'likes' field, '0' — not to return the 'likes' field (default)WallGetCommentsQueryWithExtendedoffset(java.lang.Integer value)Offset needed to return a specific subset of comments.WallGetCommentsQueryWithExtendedownerId(java.lang.Integer value)User ID or community ID.WallGetCommentsQueryWithExtendedpostId(java.lang.Integer value)Post ID.WallGetCommentsQueryWithExtendedpreviewLength(java.lang.Integer value)Number of characters at which to truncate comments when previewed.WallGetCommentsQueryWithExtendedsort(GetCommentsSort value)Sort order: 'asc' — chronological, 'desc' — reverse chronologicalWallGetCommentsQueryWithExtendedstartCommentId(java.lang.Integer value)Set start comment idWallGetCommentsQueryWithExtendedthreadItemsCount(java.lang.Integer value)Count items in threads.-
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
-
WallGetCommentsQueryWithExtended
public WallGetCommentsQueryWithExtended(VkApiClient client, UserActor actor)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access token
-
WallGetCommentsQueryWithExtended
public WallGetCommentsQueryWithExtended(VkApiClient client, ServiceActor actor)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access token
-
-
Method Detail
-
ownerId
public WallGetCommentsQueryWithExtended ownerId(java.lang.Integer value)
User ID or community ID. Use a negative value to designate a community ID.- Parameters:
value- value of "owner id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
postId
public WallGetCommentsQueryWithExtended postId(java.lang.Integer value)
Post ID.- Parameters:
value- value of "post id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
needLikes
public WallGetCommentsQueryWithExtended needLikes(java.lang.Boolean value)
'1' — to return the 'likes' field, '0' — not to return the 'likes' field (default)- Parameters:
value- value of "need likes" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
startCommentId
public WallGetCommentsQueryWithExtended 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 WallGetCommentsQueryWithExtended 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 WallGetCommentsQueryWithExtended count(java.lang.Integer value)
Number of comments to return (maximum 100).- Parameters:
value- value of "count" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
sort
public WallGetCommentsQueryWithExtended sort(GetCommentsSort value)
Sort order: 'asc' — chronological, 'desc' — reverse chronological- Parameters:
value- value of "sort" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
previewLength
public WallGetCommentsQueryWithExtended previewLength(java.lang.Integer value)
Number of characters at which to truncate comments when previewed. By default, '90'. Specify '0' if you do not want to truncate comments.- Parameters:
value- value of "preview length" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
extended
protected WallGetCommentsQueryWithExtended extended(java.lang.Boolean value)
Set extended- Parameters:
value- value of "extended" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
commentId
public WallGetCommentsQueryWithExtended commentId(java.lang.Integer value)
Comment ID.- Parameters:
value- value of "comment id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
threadItemsCount
public WallGetCommentsQueryWithExtended threadItemsCount(java.lang.Integer value)
Count items in threads.- Parameters:
value- value of "thread items count" parameter. Maximum is 10. Minimum is 0. By default 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public WallGetCommentsQueryWithExtended fields(UserGroupFields... value)
fields Set fields- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public WallGetCommentsQueryWithExtended fields(java.util.List<UserGroupFields> value)
Set fields- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected WallGetCommentsQueryWithExtended getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<WallGetCommentsQueryWithExtended,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<WallGetCommentsQueryWithExtended,GetCommentsExtendedResponse>- Returns:
- list of names
-
-