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