Package com.vk.api.sdk.queries.wall
Class WallRepostQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<WallRepostQuery,RepostResponse>
-
- com.vk.api.sdk.queries.wall.WallRepostQuery
-
public class WallRepostQuery extends AbstractQueryBuilder<WallRepostQuery,RepostResponse>
Query for Wall.repost method
-
-
Constructor Summary
Constructors Constructor Description WallRepostQuery(VkApiClient client, UserActor actor, java.lang.String object)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 protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected WallRepostQuerygetThis()Get reference to this objectWallRepostQuerygroupId(java.lang.Integer value)Target community ID when reposting to a community.WallRepostQuerymarkAsAds(java.lang.Boolean value)Set mark as adsWallRepostQuerymessage(java.lang.String value)Comment to be added along with the reposted object.WallRepostQuerymuteNotifications(java.lang.Boolean value)Set mute notificationsprotected WallRepostQueryobject(java.lang.String value)ID of the object to be reposted on the wall.-
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
-
WallRepostQuery
public WallRepostQuery(VkApiClient client, UserActor actor, java.lang.String object)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenobject- value of "object" parameter.
-
-
Method Detail
-
object
protected WallRepostQuery object(java.lang.String value)
ID of the object to be reposted on the wall. Example: "wall66748_3675"- Parameters:
value- value of "object" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
message
public WallRepostQuery message(java.lang.String value)
Comment to be added along with the reposted object.- Parameters:
value- value of "message" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
groupId
public WallRepostQuery groupId(java.lang.Integer value)
Target community ID when reposting to a community.- Parameters:
value- value of "group id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
markAsAds
public WallRepostQuery markAsAds(java.lang.Boolean value)
Set mark as ads- Parameters:
value- value of "mark as ads" parameter. By default false.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
muteNotifications
public WallRepostQuery muteNotifications(java.lang.Boolean value)
Set mute notifications- Parameters:
value- value of "mute notifications" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected WallRepostQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<WallRepostQuery,RepostResponse>- 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<WallRepostQuery,RepostResponse>- Returns:
- list of names
-
-