Package com.vk.api.sdk.queries.photos
Class PhotosGetAllCommentsQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<PhotosGetAllCommentsQuery,GetAllCommentsResponse>
-
- com.vk.api.sdk.queries.photos.PhotosGetAllCommentsQuery
-
public class PhotosGetAllCommentsQuery extends AbstractQueryBuilder<PhotosGetAllCommentsQuery,GetAllCommentsResponse>
Query for Photos.getAllComments method
-
-
Constructor Summary
Constructors Constructor Description PhotosGetAllCommentsQuery(VkApiClient client, UserActor actor)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 PhotosGetAllCommentsQueryalbumId(java.lang.Integer value)Album ID.PhotosGetAllCommentsQuerycount(java.lang.Integer value)Number of comments to return.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected PhotosGetAllCommentsQuerygetThis()Get reference to this objectPhotosGetAllCommentsQueryneedLikes(java.lang.Boolean value)'1' — to return an additional 'likes' field, '0' — (default)PhotosGetAllCommentsQueryoffset(java.lang.Integer value)Offset needed to return a specific subset of comments.PhotosGetAllCommentsQueryownerId(java.lang.Integer value)ID of the user or community that owns the album(s).-
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
-
PhotosGetAllCommentsQuery
public PhotosGetAllCommentsQuery(VkApiClient client, UserActor actor)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access token
-
-
Method Detail
-
ownerId
public PhotosGetAllCommentsQuery ownerId(java.lang.Integer value)
ID of the user or community that owns the album(s).- Parameters:
value- value of "owner id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
albumId
public PhotosGetAllCommentsQuery albumId(java.lang.Integer value)
Album ID. If the parameter is not set, comments on all of the user's albums will be returned.- Parameters:
value- value of "album id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
needLikes
public PhotosGetAllCommentsQuery 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.
-
offset
public PhotosGetAllCommentsQuery offset(java.lang.Integer value)
Offset needed to return a specific subset of comments. By default, '0'.- Parameters:
value- value of "offset" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
count
public PhotosGetAllCommentsQuery count(java.lang.Integer value)
Number of comments to return. By default, '20'. Maximum value, '100'.- Parameters:
value- value of "count" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected PhotosGetAllCommentsQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<PhotosGetAllCommentsQuery,GetAllCommentsResponse>- 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<PhotosGetAllCommentsQuery,GetAllCommentsResponse>- Returns:
- list of names
-
-