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
Modifier and Type Method Description NewsfeedGetCommentsQuery
count(java.lang.Integer value)
Number of comments to return.NewsfeedGetCommentsQuery
endTime(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 namesNewsfeedGetCommentsQuery
fields(UserGroupFields... value)
fields Additional fields of [vk.com/dev/fields|profiles] and [vk.com/dev/fields_groups|communities] to return.NewsfeedGetCommentsQuery
fields(java.util.List<UserGroupFields> value)
Additional fields of [vk.com/dev/fields|profiles] and [vk.com/dev/fields_groups|communities] to return.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,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,protected NewsfeedGetCommentsQuery
getThis()
Get reference to this objectNewsfeedGetCommentsQuery
lastCommentsCount(java.lang.Integer value)
Set last comments countNewsfeedGetCommentsQuery
reposts(java.lang.String value)
Object ID, comments on repost of which shall be returned, e.g.NewsfeedGetCommentsQuery
startFrom(java.lang.String value)
Identificator needed to return the next page with results.NewsfeedGetCommentsQuery
startTime(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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
NewsfeedGetCommentsQuery
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 Details
-
count
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
reposts
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
startTime
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
endTime
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
lastCommentsCount
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
startFrom
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
filters
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
fields
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
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
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
getThis
Description copied from class:AbstractQueryBuilder
Get reference to this object- Specified by:
getThis
in classAbstractQueryBuilder<NewsfeedGetCommentsQuery,GetCommentsResponse>
- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
essentialKeys
protected java.util.List<java.lang.String> essentialKeys()Description copied from class:AbstractQueryBuilder
Get list of required parameter names- Specified by:
essentialKeys
in classAbstractQueryBuilder<NewsfeedGetCommentsQuery,GetCommentsResponse>
- Returns:
- list of names
-