Package com.vk.api.sdk.queries.wall
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 Summary
Constructors Constructor Description WallGetByIdQueryWithLegacy(VkApiClient client, ServiceActor actor, java.lang.String... posts)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersWallGetByIdQueryWithLegacy(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 parametersWallGetByIdQueryWithLegacy(VkApiClient client, UserActor actor, java.lang.String... posts)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersWallGetByIdQueryWithLegacy(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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WallGetByIdQueryWithLegacycopyHistoryDepth(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.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesWallGetByIdQueryWithLegacyextended(java.lang.Boolean value)'1' — to return user and community objects needed to display posts, '0' — no additional fields are returned (default)WallGetByIdQueryWithLegacyfields(UserGroupFields... value)fields Set fieldsWallGetByIdQueryWithLegacyfields(java.util.List<UserGroupFields> value)Set fieldsprotected WallGetByIdQueryWithLegacygetThis()Get reference to this objectprotected WallGetByIdQueryWithLegacyposts(java.lang.String... value)posts User or community IDs and post IDs, separated by underscores.protected WallGetByIdQueryWithLegacyposts(java.util.List<java.lang.String> value)User or community IDs and post IDs, separated by underscores.-
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
-
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 clientactor- actor with access tokenposts- 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 clientactor- actor with access tokenposts- 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 clientactor- actor with access tokenposts- 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 clientactor- actor with access tokenposts- value of "posts" parameter.
-
-
Method Detail
-
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
AbstractQueryBuilderobject 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
AbstractQueryBuilderobject 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
AbstractQueryBuilderobject 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
AbstractQueryBuilderobject 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
AbstractQueryBuilderobject 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
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected WallGetByIdQueryWithLegacy getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<WallGetByIdQueryWithLegacy,java.util.List<GetByIdLegacyResponse>>- 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<WallGetByIdQueryWithLegacy,java.util.List<GetByIdLegacyResponse>>- Returns:
- list of names
-
-