Class WallGetByIdQueryWithLegacy

java.lang.Object
com.vk.api.sdk.client.ApiRequest<R>
com.vk.api.sdk.client.AbstractQueryBuilder<WallGetByIdQueryWithLegacy,​java.util.List<GetByIdLegacyResponse>>
com.vk.api.sdk.queries.wall.WallGetByIdQueryWithLegacy

public class WallGetByIdQueryWithLegacy
extends AbstractQueryBuilder<WallGetByIdQueryWithLegacy,​java.util.List<GetByIdLegacyResponse>>
Query for Wall.getById method
  • Constructor Details

    • WallGetByIdQueryWithLegacy

      public WallGetByIdQueryWithLegacy​(VkApiClient client, UserActor actor, java.lang.String... posts)
      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
      posts - value of "posts" parameter.
    • WallGetByIdQueryWithLegacy

      public WallGetByIdQueryWithLegacy​(VkApiClient client, UserActor actor, java.util.List<java.lang.String> posts)
      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
      posts - value of "posts" parameter.
    • WallGetByIdQueryWithLegacy

      public WallGetByIdQueryWithLegacy​(VkApiClient client, ServiceActor actor, java.lang.String... posts)
      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
      posts - value of "posts" parameter.
    • WallGetByIdQueryWithLegacy

      public WallGetByIdQueryWithLegacy​(VkApiClient client, ServiceActor actor, java.util.List<java.lang.String> posts)
      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
      posts - value of "posts" parameter.
  • Method Details

    • extended

      public WallGetByIdQueryWithLegacy extended​(java.lang.Boolean value)
      '1' — to return user and community objects needed to display posts, '0' — no additional fields are returned (default)
      Parameters:
      value - value of "extended" parameter.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • copyHistoryDepth

      public WallGetByIdQueryWithLegacy copyHistoryDepth​(java.lang.Integer value)
      Sets the number of parent elements to include in the array 'copy_history' that is returned if the post is a repost from another wall.
      Parameters:
      value - value of "copy history depth" parameter. By default 2.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • posts

      protected WallGetByIdQueryWithLegacy posts​(java.lang.String... value)
      posts User or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example: "93388_21539,93388_20904,2943_4276,-1_1"
      Parameters:
      value - value of "posts" parameter.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • posts

      protected WallGetByIdQueryWithLegacy posts​(java.util.List<java.lang.String> value)
      User or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example: "93388_21539,93388_20904,2943_4276,-1_1"
      Parameters:
      value - value of "posts" parameter.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • fields

      public WallGetByIdQueryWithLegacy fields​(UserGroupFields... value)
      fields Set fields
      Parameters:
      value - value of "fields" parameter.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • fields

      public WallGetByIdQueryWithLegacy fields​(java.util.List<UserGroupFields> value)
      Set fields
      Parameters:
      value - value of "fields" parameter.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • getThis

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