Package com.vk.api.sdk.queries.market
Class MarketCreateCommentQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<MarketCreateCommentQuery,java.lang.Integer>
-
- com.vk.api.sdk.queries.market.MarketCreateCommentQuery
-
public class MarketCreateCommentQuery extends AbstractQueryBuilder<MarketCreateCommentQuery,java.lang.Integer>
Query for Market.createComment method
-
-
Constructor Summary
Constructors Constructor Description MarketCreateCommentQuery(VkApiClient client, UserActor actor, int ownerId, int itemId)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 MarketCreateCommentQueryattachments(java.lang.String... value)attachments Comma-separated list of objects attached to a comment.MarketCreateCommentQueryattachments(java.util.List<java.lang.String> value)Comma-separated list of objects attached to a comment.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesMarketCreateCommentQueryfromGroup(java.lang.Boolean value)'1' - comment will be published on behalf of a community, '0' - on behalf of a user (by default).protected MarketCreateCommentQuerygetThis()Get reference to this objectMarketCreateCommentQueryguid(java.lang.String value)Random value to avoid resending one comment.protected MarketCreateCommentQueryitemId(int value)Item ID.MarketCreateCommentQuerymessage(java.lang.String value)Comment text (required if 'attachments' parameter is not specified)protected MarketCreateCommentQueryownerId(int value)ID of an item owner community.MarketCreateCommentQueryreplyToComment(java.lang.Integer value)ID of a comment to reply with current comment to.MarketCreateCommentQuerystickerId(java.lang.Integer value)Sticker ID.-
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
-
MarketCreateCommentQuery
public MarketCreateCommentQuery(VkApiClient client, UserActor actor, int ownerId, int itemId)
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.itemId- value of "item id" parameter. Minimum is 0.
-
-
Method Detail
-
ownerId
protected MarketCreateCommentQuery ownerId(int value)
ID of an item owner community.- Parameters:
value- value of "owner id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
itemId
protected MarketCreateCommentQuery itemId(int value)
Item ID.- Parameters:
value- value of "item id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
message
public MarketCreateCommentQuery message(java.lang.String value)
Comment text (required if 'attachments' parameter is not specified)- Parameters:
value- value of "message" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fromGroup
public MarketCreateCommentQuery fromGroup(java.lang.Boolean value)
'1' - comment will be published on behalf of a community, '0' - on behalf of a user (by default).- Parameters:
value- value of "from group" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
replyToComment
public MarketCreateCommentQuery replyToComment(java.lang.Integer value)
ID of a comment to reply with current comment to.- Parameters:
value- value of "reply to comment" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
stickerId
public MarketCreateCommentQuery stickerId(java.lang.Integer value)
Sticker ID.- Parameters:
value- value of "sticker id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
guid
public MarketCreateCommentQuery guid(java.lang.String value)
Random value to avoid resending one comment.- Parameters:
value- value of "guid" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
attachments
public MarketCreateCommentQuery attachments(java.lang.String... value)
attachments Comma-separated list of objects attached to a comment. The field is submitted the following way: , "'_ , _ '", , ' - media attachment type: "'photo' - photo, 'video' - video, 'audio' - audio, 'doc' - document", , ' ' - media owner id, ' ' - media attachment id, , For example: "photo100172_166443618,photo66748_265827614", - Parameters:
value- value of "attachments" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
attachments
public MarketCreateCommentQuery attachments(java.util.List<java.lang.String> value)
Comma-separated list of objects attached to a comment. The field is submitted the following way: , "'_ , _ '", , ' - media attachment type: "'photo' - photo, 'video' - video, 'audio' - audio, 'doc' - document", , ' ' - media owner id, ' ' - media attachment id, , For example: "photo100172_166443618,photo66748_265827614", - Parameters:
value- value of "attachments" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected MarketCreateCommentQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<MarketCreateCommentQuery,java.lang.Integer>- 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<MarketCreateCommentQuery,java.lang.Integer>- Returns:
- list of names
-
-