Package com.vk.api.sdk.queries.wall
Class WallCreateCommentQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<WallCreateCommentQuery,CreateCommentResponse>
-
- com.vk.api.sdk.queries.wall.WallCreateCommentQuery
-
public class WallCreateCommentQuery extends AbstractQueryBuilder<WallCreateCommentQuery,CreateCommentResponse>
Query for Wall.createComment method
-
-
Constructor Summary
Constructors Constructor Description WallCreateCommentQuery(VkApiClient client, GroupActor actor, int postId)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersWallCreateCommentQuery(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 WallCreateCommentQueryattachments(java.lang.String... value)attachments (Required if 'message' is not set.) List of media objects attached to the comment, in the following format: "_ , _ ", ' — Type of media ojbect: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, ' ' — ID of the media owner. WallCreateCommentQueryattachments(java.util.List<java.lang.String> value)(Required if 'message' is not set.) List of media objects attached to the comment, in the following format: "_ , _ ", ' — Type of media ojbect: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, ' ' — ID of the media owner. protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesWallCreateCommentQueryfromGroup(java.lang.Integer value)Group ID.protected WallCreateCommentQuerygetThis()Get reference to this objectWallCreateCommentQueryguid(java.lang.String value)Unique identifier to avoid repeated comments.WallCreateCommentQuerymessage(java.lang.String value)(Required if 'attachments' is not set.) Text of the comment.WallCreateCommentQueryownerId(java.lang.Integer value)User ID or community ID.protected WallCreateCommentQuerypostId(int value)Post ID.WallCreateCommentQueryreplyToComment(java.lang.Integer value)ID of comment to reply.WallCreateCommentQuerystickerId(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
-
WallCreateCommentQuery
public WallCreateCommentQuery(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.
-
WallCreateCommentQuery
public WallCreateCommentQuery(VkApiClient client, GroupActor 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 WallCreateCommentQuery 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 WallCreateCommentQuery postId(int value)
Post ID.- Parameters:
value- value of "post id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fromGroup
public WallCreateCommentQuery fromGroup(java.lang.Integer value)
Group ID.- Parameters:
value- value of "from group" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
message
public WallCreateCommentQuery message(java.lang.String value)
(Required if 'attachments' is not set.) Text of the comment.- Parameters:
value- value of "message" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
replyToComment
public WallCreateCommentQuery replyToComment(java.lang.Integer value)
ID of comment to reply.- Parameters:
value- value of "reply to comment" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
stickerId
public WallCreateCommentQuery 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 WallCreateCommentQuery guid(java.lang.String value)
Unique identifier to avoid repeated comments.- Parameters:
value- value of "guid" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
attachments
public WallCreateCommentQuery attachments(java.lang.String... value)
attachments (Required if 'message' is not set.) List of media objects attached to the comment, in the following format: "_ , _ ", ' — Type of media ojbect: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, ' ' — ID of the media owner. ' ' — Media 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 WallCreateCommentQuery attachments(java.util.List<java.lang.String> value)
(Required if 'message' is not set.) List of media objects attached to the comment, in the following format: "_ , _ ", ' — Type of media ojbect: 'photo' — photo, 'video' — video, 'audio' — audio, 'doc' — document, ' ' — ID of the media owner. ' ' — Media 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 WallCreateCommentQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<WallCreateCommentQuery,CreateCommentResponse>- 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<WallCreateCommentQuery,CreateCommentResponse>- Returns:
- list of names
-
-