Package com.vk.api.sdk.queries.photos
Class PhotosCreateCommentQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<PhotosCreateCommentQuery,java.lang.Integer>
-
- com.vk.api.sdk.queries.photos.PhotosCreateCommentQuery
-
public class PhotosCreateCommentQuery extends AbstractQueryBuilder<PhotosCreateCommentQuery,java.lang.Integer>
Query for Photos.createComment method
-
-
Constructor Summary
Constructors Constructor Description PhotosCreateCommentQuery(VkApiClient client, UserActor actor, int photoId)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 PhotosCreateCommentQueryaccessKey(java.lang.String value)Set access keyPhotosCreateCommentQueryattachments(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, ' ' — Media attachment owner ID. PhotosCreateCommentQueryattachments(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, ' ' — Media attachment owner ID. protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesPhotosCreateCommentQueryfromGroup(java.lang.Boolean value)'1' — to post a comment from the communityprotected PhotosCreateCommentQuerygetThis()Get reference to this objectPhotosCreateCommentQueryguid(java.lang.String value)Set guidPhotosCreateCommentQuerymessage(java.lang.String value)Comment text.PhotosCreateCommentQueryownerId(java.lang.Integer value)ID of the user or community that owns the photo.protected PhotosCreateCommentQueryphotoId(int value)Photo ID.PhotosCreateCommentQueryreplyToComment(java.lang.Integer value)Set reply to commentPhotosCreateCommentQuerystickerId(java.lang.Integer value)Set 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
-
PhotosCreateCommentQuery
public PhotosCreateCommentQuery(VkApiClient client, UserActor actor, int photoId)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenphotoId- value of "photo id" parameter.
-
-
Method Detail
-
ownerId
public PhotosCreateCommentQuery ownerId(java.lang.Integer value)
ID of the user or community that owns the photo.- Parameters:
value- value of "owner id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
photoId
protected PhotosCreateCommentQuery photoId(int value)
Photo ID.- Parameters:
value- value of "photo id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
message
public PhotosCreateCommentQuery message(java.lang.String value)
Comment text.- Parameters:
value- value of "message" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fromGroup
public PhotosCreateCommentQuery fromGroup(java.lang.Boolean value)
'1' — to post a comment from the community- Parameters:
value- value of "from group" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
replyToComment
public PhotosCreateCommentQuery replyToComment(java.lang.Integer value)
Set reply to comment- Parameters:
value- value of "reply to comment" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
stickerId
public PhotosCreateCommentQuery stickerId(java.lang.Integer value)
Set sticker id- Parameters:
value- value of "sticker id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
accessKey
public PhotosCreateCommentQuery accessKey(java.lang.String value)
Set access key- Parameters:
value- value of "access key" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
guid
public PhotosCreateCommentQuery guid(java.lang.String value)
Set guid- Parameters:
value- value of "guid" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
attachments
public PhotosCreateCommentQuery 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, ' ' — Media attachment owner ID. ' ' — Media attachment ID. Example: "photo100172_166443618,photo66748_265827614" - Parameters:
value- value of "attachments" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
attachments
public PhotosCreateCommentQuery 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, ' ' — Media attachment owner ID. ' ' — Media attachment ID. Example: "photo100172_166443618,photo66748_265827614" - Parameters:
value- value of "attachments" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected PhotosCreateCommentQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<PhotosCreateCommentQuery,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<PhotosCreateCommentQuery,java.lang.Integer>- Returns:
- list of names
-
-