Package com.vk.api.sdk.queries.newsfeed
Class NewsfeedGetCommentsQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<NewsfeedGetCommentsQuery,GetCommentsResponse>
-
- com.vk.api.sdk.queries.newsfeed.NewsfeedGetCommentsQuery
-
public class NewsfeedGetCommentsQuery extends AbstractQueryBuilder<NewsfeedGetCommentsQuery,GetCommentsResponse>
Query for Newsfeed.getComments method
-
-
Constructor Summary
Constructors Constructor Description NewsfeedGetCommentsQuery(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 NewsfeedGetCommentsQuerycount(java.lang.Integer value)Number of comments to return.NewsfeedGetCommentsQueryendTime(java.lang.Integer value)Latest timestamp (in Unix time) of a comment to return.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesNewsfeedGetCommentsQueryfields(UserGroupFields... value)fields Additional fields of [vk.com/dev/fields|profiles] and [vk.com/dev/fields_groups|communities] to return.NewsfeedGetCommentsQueryfields(java.util.List<UserGroupFields> value)Additional fields of [vk.com/dev/fields|profiles] and [vk.com/dev/fields_groups|communities] to return.NewsfeedGetCommentsQueryfilters(CommentsFilters... value)filters Filters to apply: 'post' — new comments on wall posts, 'photo' — new comments on photos, 'video' — new comments on videos, 'topic' — new comments on discussions, 'note' — new comments on notes,NewsfeedGetCommentsQueryfilters(java.util.List<CommentsFilters> value)Filters to apply: 'post' — new comments on wall posts, 'photo' — new comments on photos, 'video' — new comments on videos, 'topic' — new comments on discussions, 'note' — new comments on notes,protected NewsfeedGetCommentsQuerygetThis()Get reference to this objectNewsfeedGetCommentsQuerylastCommentsCount(java.lang.Integer value)Set last comments countNewsfeedGetCommentsQueryreposts(java.lang.String value)Object ID, comments on repost of which shall be returned, e.g.NewsfeedGetCommentsQuerystartFrom(java.lang.String value)Identificator needed to return the next page with results.NewsfeedGetCommentsQuerystartTime(java.lang.Integer value)Earliest timestamp (in Unix time) of a comment to return.-
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
-
NewsfeedGetCommentsQuery
public NewsfeedGetCommentsQuery(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
-
-
Method Detail
-
count
public NewsfeedGetCommentsQuery count(java.lang.Integer value)
Number of comments to return. For auto feed, you can use the 'new_offset' parameter returned by this method.- Parameters:
value- value of "count" parameter. Maximum is 100. Minimum is 0. By default 30.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
reposts
public NewsfeedGetCommentsQuery reposts(java.lang.String value)
Object ID, comments on repost of which shall be returned, e.g. 'wall1_45486'. (If the parameter is set, the 'filters' parameter is optional.),- Parameters:
value- value of "reposts" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
startTime
public NewsfeedGetCommentsQuery startTime(java.lang.Integer value)
Earliest timestamp (in Unix time) of a comment to return. By default, 24 hours ago.- Parameters:
value- value of "start time" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
endTime
public NewsfeedGetCommentsQuery endTime(java.lang.Integer value)
Latest timestamp (in Unix time) of a comment to return. By default, the current time.- Parameters:
value- value of "end time" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
lastCommentsCount
public NewsfeedGetCommentsQuery lastCommentsCount(java.lang.Integer value)
Set last comments count- Parameters:
value- value of "last comments count" parameter. Maximum is 10. Minimum is 0. By default 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
startFrom
public NewsfeedGetCommentsQuery startFrom(java.lang.String value)
Identificator needed to return the next page with results. Value for this parameter returns in 'next_from' field.- Parameters:
value- value of "start from" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
filters
public NewsfeedGetCommentsQuery filters(CommentsFilters... value)
filters Filters to apply: 'post' — new comments on wall posts, 'photo' — new comments on photos, 'video' — new comments on videos, 'topic' — new comments on discussions, 'note' — new comments on notes,- Parameters:
value- value of "filters" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
filters
public NewsfeedGetCommentsQuery filters(java.util.List<CommentsFilters> value)
Filters to apply: 'post' — new comments on wall posts, 'photo' — new comments on photos, 'video' — new comments on videos, 'topic' — new comments on discussions, 'note' — new comments on notes,- Parameters:
value- value of "filters" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public NewsfeedGetCommentsQuery fields(UserGroupFields... value)
fields Additional fields of [vk.com/dev/fields|profiles] and [vk.com/dev/fields_groups|communities] to return.- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public NewsfeedGetCommentsQuery fields(java.util.List<UserGroupFields> value)
Additional fields of [vk.com/dev/fields|profiles] and [vk.com/dev/fields_groups|communities] to return.- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected NewsfeedGetCommentsQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<NewsfeedGetCommentsQuery,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<NewsfeedGetCommentsQuery,GetCommentsResponse>- Returns:
- list of names
-
-