Package com.vk.api.sdk.queries.wall
Class WallEditAdsStealthQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<WallEditAdsStealthQuery,OkResponse>
-
- com.vk.api.sdk.queries.wall.WallEditAdsStealthQuery
-
public class WallEditAdsStealthQuery extends AbstractQueryBuilder<WallEditAdsStealthQuery,OkResponse>
Query for Wall.editAdsStealth method
-
-
Constructor Summary
Constructors Constructor Description WallEditAdsStealthQuery(VkApiClient client, UserActor actor, int postId)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 WallEditAdsStealthQueryattachments(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. WallEditAdsStealthQueryattachments(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 WallEditAdsStealthQuerygetThis()Get reference to this objectWallEditAdsStealthQuerylat(java.lang.Number value)Geographical latitude of a check-in, in degrees (from -90 to 90).WallEditAdsStealthQuerylinkButton(java.lang.String value)Link button IDWallEditAdsStealthQuerylinkImage(java.lang.String value)Link image urlWallEditAdsStealthQuerylinkTitle(java.lang.String value)Link titleWallEditAdsStealthQuerylinkVideo(java.lang.String value)Link video ID in format "_ " WallEditAdsStealthQuerylng(java.lang.Number value)Geographical longitude of a check-in, in degrees (from -180 to 180).WallEditAdsStealthQuerymessage(java.lang.String value)(Required if 'attachments' is not set.) Text of the post.WallEditAdsStealthQueryownerId(java.lang.Integer value)User ID or community ID.WallEditAdsStealthQueryplaceId(java.lang.Integer value)ID of the location where the user was tagged.protected WallEditAdsStealthQuerypostId(int value)Post ID.WallEditAdsStealthQuerysigned(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
-
WallEditAdsStealthQuery
public WallEditAdsStealthQuery(VkApiClient client, UserActor actor, int postId)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenpostId- value of "post id" parameter. Minimum is 0.
-
-
Method Detail
-
ownerId
public WallEditAdsStealthQuery ownerId(java.lang.Integer 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.
-
postId
protected WallEditAdsStealthQuery postId(int value)
Post ID. Used for publishing of scheduled and suggested posts.- Parameters:
value- value of "post id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
message
public WallEditAdsStealthQuery 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 WallEditAdsStealthQuery 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 WallEditAdsStealthQuery 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 WallEditAdsStealthQuery 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 WallEditAdsStealthQuery 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.
-
linkButton
public WallEditAdsStealthQuery 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 WallEditAdsStealthQuery 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 WallEditAdsStealthQuery 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 WallEditAdsStealthQuery 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 WallEditAdsStealthQuery 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 WallEditAdsStealthQuery 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 WallEditAdsStealthQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<WallEditAdsStealthQuery,OkResponse>- 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<WallEditAdsStealthQuery,OkResponse>- Returns:
- list of names
-
-