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
Modifier and Type Method Description 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.protected java.util.List<java.lang.String>
essentialKeys()
Get list of required parameter namesWallGetByIdQueryWithLegacy
extended(java.lang.Boolean value)
'1' — to return user and community objects needed to display posts, '0' — no additional fields are returned (default)WallGetByIdQueryWithLegacy
fields(UserGroupFields... value)
fields Set fieldsWallGetByIdQueryWithLegacy
fields(java.util.List<UserGroupFields> value)
Set fieldsprotected WallGetByIdQueryWithLegacy
getThis()
Get reference to this objectprotected WallGetByIdQueryWithLegacy
posts(java.lang.String... value)
posts User or community IDs and post IDs, separated by underscores.protected WallGetByIdQueryWithLegacy
posts(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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
WallGetByIdQueryWithLegacy
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 Details
-
extended
'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
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
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
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
fields Set fields- Parameters:
value
- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
fields
Set fields- 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<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 classAbstractQueryBuilder<WallGetByIdQueryWithLegacy,java.util.List<GetByIdLegacyResponse>>
- Returns:
- list of names
-