Package com.vk.api.sdk.queries.wall
Class WallGetByIdQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<WallGetByIdQuery,java.util.List<WallpostFull>>
-
- com.vk.api.sdk.queries.wall.WallGetByIdQuery
-
public class WallGetByIdQuery extends AbstractQueryBuilder<WallGetByIdQuery,java.util.List<WallpostFull>>
Query for Wall.getById method
-
-
Constructor Summary
Constructors Constructor Description WallGetByIdQuery(VkApiClient client, ServiceActor actor, java.lang.String... posts)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersWallGetByIdQuery(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 parametersWallGetByIdQuery(VkApiClient client, UserActor actor, java.lang.String... posts)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersWallGetByIdQuery(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 WallGetByIdQuerycopyHistoryDepth(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 namesWallGetByIdQueryextended(java.lang.Boolean value)'1' — to return user and community objects needed to display posts, '0' — no additional fields are returned (default)WallGetByIdQueryfields(UserGroupFields... value)fields Set fieldsWallGetByIdQueryfields(java.util.List<UserGroupFields> value)Set fieldsprotected WallGetByIdQuerygetThis()Get reference to this objectprotected WallGetByIdQueryposts(java.lang.String... value)posts User or community IDs and post IDs, separated by underscores.protected WallGetByIdQueryposts(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
-
WallGetByIdQuery
public WallGetByIdQuery(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.
-
WallGetByIdQuery
public WallGetByIdQuery(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.
-
WallGetByIdQuery
public WallGetByIdQuery(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.
-
WallGetByIdQuery
public WallGetByIdQuery(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 WallGetByIdQuery 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 WallGetByIdQuery 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 WallGetByIdQuery 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 WallGetByIdQuery 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 WallGetByIdQuery 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 WallGetByIdQuery 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 WallGetByIdQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<WallGetByIdQuery,java.util.List<WallpostFull>>- 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<WallGetByIdQuery,java.util.List<WallpostFull>>- Returns:
- list of names
-
-