Package com.vk.api.sdk.queries.photos
Class PhotosGetCommentsQueryWithExtended
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<PhotosGetCommentsQueryWithExtended,GetCommentsExtendedResponse>
-
- com.vk.api.sdk.queries.photos.PhotosGetCommentsQueryWithExtended
-
public class PhotosGetCommentsQueryWithExtended extends AbstractQueryBuilder<PhotosGetCommentsQueryWithExtended,GetCommentsExtendedResponse>
Query for Photos.getComments method
-
-
Constructor Summary
Constructors Constructor Description PhotosGetCommentsQueryWithExtended(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 PhotosGetCommentsQueryWithExtendedaccessKey(java.lang.String value)Set access keyPhotosGetCommentsQueryWithExtendedcount(java.lang.Integer value)Number of comments to return.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected PhotosGetCommentsQueryWithExtendedextended(java.lang.Boolean value)Set extendedPhotosGetCommentsQueryWithExtendedfields(Fields... value)fields Set fieldsPhotosGetCommentsQueryWithExtendedfields(java.util.List<Fields> value)Set fieldsprotected PhotosGetCommentsQueryWithExtendedgetThis()Get reference to this objectPhotosGetCommentsQueryWithExtendedneedLikes(java.lang.Boolean value)'1' — to return an additional 'likes' field, '0' — (default)PhotosGetCommentsQueryWithExtendedoffset(java.lang.Integer value)Offset needed to return a specific subset of comments.PhotosGetCommentsQueryWithExtendedownerId(java.lang.Integer value)ID of the user or community that owns the photo.protected PhotosGetCommentsQueryWithExtendedphotoId(int value)Photo ID.PhotosGetCommentsQueryWithExtendedsort(GetCommentsSort value)Sort order: 'asc' — old first, 'desc' — new firstPhotosGetCommentsQueryWithExtendedstartCommentId(java.lang.Integer value)Set start comment 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
-
PhotosGetCommentsQueryWithExtended
public PhotosGetCommentsQueryWithExtended(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 PhotosGetCommentsQueryWithExtended 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 PhotosGetCommentsQueryWithExtended photoId(int value)
Photo ID.- Parameters:
value- value of "photo id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
needLikes
public PhotosGetCommentsQueryWithExtended needLikes(java.lang.Boolean value)
'1' — to return an additional 'likes' field, '0' — (default)- Parameters:
value- value of "need likes" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
startCommentId
public PhotosGetCommentsQueryWithExtended startCommentId(java.lang.Integer value)
Set start comment id- Parameters:
value- value of "start comment id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
offset
public PhotosGetCommentsQueryWithExtended offset(java.lang.Integer value)
Offset needed to return a specific subset of comments. By default, '0'.- Parameters:
value- value of "offset" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
count
public PhotosGetCommentsQueryWithExtended count(java.lang.Integer value)
Number of comments to return.- Parameters:
value- value of "count" parameter. Maximum is 100. Minimum is 0. By default 20.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
sort
public PhotosGetCommentsQueryWithExtended sort(GetCommentsSort value)
Sort order: 'asc' — old first, 'desc' — new first- Parameters:
value- value of "sort" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
accessKey
public PhotosGetCommentsQueryWithExtended 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.
-
extended
protected PhotosGetCommentsQueryWithExtended extended(java.lang.Boolean value)
Set extended- Parameters:
value- value of "extended" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public PhotosGetCommentsQueryWithExtended fields(Fields... value)
fields Set fields- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fields
public PhotosGetCommentsQueryWithExtended fields(java.util.List<Fields> value)
Set fields- Parameters:
value- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected PhotosGetCommentsQueryWithExtended getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<PhotosGetCommentsQueryWithExtended,GetCommentsExtendedResponse>- 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<PhotosGetCommentsQueryWithExtended,GetCommentsExtendedResponse>- Returns:
- list of names
-
-