Class NewsfeedGetCommentsQuery

java.lang.Object

public class NewsfeedGetCommentsQuery
extends AbstractQueryBuilder<NewsfeedGetCommentsQuery,​GetCommentsResponse>
Query for Newsfeed.getComments method
  • Constructor Details

    • 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 client
      actor - actor with access token
  • Method Details

    • 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • getThis

      protected NewsfeedGetCommentsQuery getThis()
      Description copied from class: AbstractQueryBuilder
      Get reference to this object
      Specified by:
      getThis in class AbstractQueryBuilder<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 class AbstractQueryBuilder<NewsfeedGetCommentsQuery,​GetCommentsResponse>
      Returns:
      list of names