Package com.vk.api.sdk.queries.wall
Class WallPostAdsStealthQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<WallPostAdsStealthQuery,PostAdsStealthResponse>
-
- com.vk.api.sdk.queries.wall.WallPostAdsStealthQuery
-
public class WallPostAdsStealthQuery extends AbstractQueryBuilder<WallPostAdsStealthQuery,PostAdsStealthResponse>
Query for Wall.postAdsStealth method
-
-
Constructor Summary
Constructors Constructor Description WallPostAdsStealthQuery(VkApiClient client, UserActor actor, int ownerId)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 WallPostAdsStealthQueryattachments(java.lang.String... value)attachments (Required if 'message' is not set.) List of objects attached to the post, in the following format: "_ , _ ", ' — Type of media attachment: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, 'page' — wiki-page, 'note' — note, 'poll' — poll, 'album' — photo album, ' ' — ID of the media application owner. WallPostAdsStealthQueryattachments(java.util.List<java.lang.String> value)(Required if 'message' is not set.) List of objects attached to the post, in the following format: "_ , _ ", ' — Type of media attachment: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, 'page' — wiki-page, 'note' — note, 'poll' — poll, 'album' — photo album, ' ' — ID of the media application owner. protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected WallPostAdsStealthQuerygetThis()Get reference to this objectWallPostAdsStealthQueryguid(java.lang.String value)Unique identifier to avoid duplication the same post.WallPostAdsStealthQuerylat(java.lang.Number value)Geographical latitude of a check-in, in degrees (from -90 to 90).WallPostAdsStealthQuerylinkButton(java.lang.String value)Link button IDWallPostAdsStealthQuerylinkImage(java.lang.String value)Link image urlWallPostAdsStealthQuerylinkTitle(java.lang.String value)Link titleWallPostAdsStealthQuerylinkVideo(java.lang.String value)Link video ID in format "_ " WallPostAdsStealthQuerylng(java.lang.Number value)Geographical longitude of a check-in, in degrees (from -180 to 180).WallPostAdsStealthQuerymessage(java.lang.String value)(Required if 'attachments' is not set.) Text of the post.protected WallPostAdsStealthQueryownerId(int value)User ID or community ID.WallPostAdsStealthQueryplaceId(java.lang.Integer value)ID of the location where the user was tagged.WallPostAdsStealthQuerysigned(java.lang.Boolean value)Only for posts in communities with 'from_group' set to '1': '1' — post will be signed with the name of the posting user, '0' — post will not be signed (default)-
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
-
WallPostAdsStealthQuery
public WallPostAdsStealthQuery(VkApiClient client, UserActor actor, int ownerId)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenownerId- value of "owner id" parameter.
-
-
Method Detail
-
ownerId
protected WallPostAdsStealthQuery ownerId(int value)
User ID or community ID. Use a negative value to designate a community ID.- Parameters:
value- value of "owner id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
message
public WallPostAdsStealthQuery message(java.lang.String value)
(Required if 'attachments' is not set.) Text of the post.- Parameters:
value- value of "message" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
signed
public WallPostAdsStealthQuery signed(java.lang.Boolean value)
Only for posts in communities with 'from_group' set to '1': '1' — post will be signed with the name of the posting user, '0' — post will not be signed (default)- Parameters:
value- value of "signed" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
lat
public WallPostAdsStealthQuery lat(java.lang.Number value)
Geographical latitude of a check-in, in degrees (from -90 to 90).- Parameters:
value- value of "lat" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
lng
public WallPostAdsStealthQuery lng(java.lang.Number value)
Geographical longitude of a check-in, in degrees (from -180 to 180).- Parameters:
value- value of "long" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
placeId
public WallPostAdsStealthQuery placeId(java.lang.Integer value)
ID of the location where the user was tagged.- Parameters:
value- value of "place id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
guid
public WallPostAdsStealthQuery guid(java.lang.String value)
Unique identifier to avoid duplication the same post.- Parameters:
value- value of "guid" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
linkButton
public WallPostAdsStealthQuery linkButton(java.lang.String value)
Link button ID- Parameters:
value- value of "link button" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
linkTitle
public WallPostAdsStealthQuery linkTitle(java.lang.String value)
Link title- Parameters:
value- value of "link title" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
linkImage
public WallPostAdsStealthQuery linkImage(java.lang.String value)
Link image url- Parameters:
value- value of "link image" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
linkVideo
public WallPostAdsStealthQuery linkVideo(java.lang.String value)
Link video ID in format "_ " - Parameters:
value- value of "link video" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
attachments
public WallPostAdsStealthQuery attachments(java.lang.String... value)
attachments (Required if 'message' is not set.) List of objects attached to the post, in the following format: "_ , _ ", ' — Type of media attachment: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, 'page' — wiki-page, 'note' — note, 'poll' — poll, 'album' — photo album, ' ' — ID of the media application owner. ' ' — Media application ID. Example: "photo100172_166443618,photo66748_265827614", May contain a link to an external page to include in the post. Example: "photo66748_265827614,http://habrahabr.ru", "NOTE: If more than one link is being attached, an error will be thrown." - Parameters:
value- value of "attachments" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
attachments
public WallPostAdsStealthQuery attachments(java.util.List<java.lang.String> value)
(Required if 'message' is not set.) List of objects attached to the post, in the following format: "_ , _ ", ' — Type of media attachment: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, 'page' — wiki-page, 'note' — note, 'poll' — poll, 'album' — photo album, ' ' — ID of the media application owner. ' ' — Media application ID. Example: "photo100172_166443618,photo66748_265827614", May contain a link to an external page to include in the post. Example: "photo66748_265827614,http://habrahabr.ru", "NOTE: If more than one link is being attached, an error will be thrown." - Parameters:
value- value of "attachments" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected WallPostAdsStealthQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<WallPostAdsStealthQuery,PostAdsStealthResponse>- 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<WallPostAdsStealthQuery,PostAdsStealthResponse>- Returns:
- list of names
-
-