Package com.vk.api.sdk.queries.photos
Class PhotosReportQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<PhotosReportQuery,OkResponse>
-
- com.vk.api.sdk.queries.photos.PhotosReportQuery
-
public class PhotosReportQuery extends AbstractQueryBuilder<PhotosReportQuery,OkResponse>
Query for Photos.report method
-
-
Constructor Summary
Constructors Constructor Description PhotosReportQuery(VkApiClient client, UserActor actor, int ownerId, 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 protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected PhotosReportQuerygetThis()Get reference to this objectprotected PhotosReportQueryownerId(int value)ID of the user or community that owns the photo.protected PhotosReportQueryphotoId(int value)Photo ID.PhotosReportQueryreason(ReportReason value)Reason for the complaint: '0' - spam, '1' - child pornography, '2' - extremism, '3' - violence, '4' - drug propaganda, '5' - adult material, '6' - insult, abuse-
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
-
PhotosReportQuery
public PhotosReportQuery(VkApiClient client, UserActor actor, int ownerId, 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 tokenownerId- value of "owner id" parameter.photoId- value of "photo id" parameter. Minimum is 0.
-
-
Method Detail
-
ownerId
protected PhotosReportQuery ownerId(int 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 PhotosReportQuery photoId(int value)
Photo ID.- Parameters:
value- value of "photo id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
reason
public PhotosReportQuery reason(ReportReason value)
Reason for the complaint: '0' - spam, '1' - child pornography, '2' - extremism, '3' - violence, '4' - drug propaganda, '5' - adult material, '6' - insult, abuse- Parameters:
value- value of "reason" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected PhotosReportQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<PhotosReportQuery,OkResponse>- 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<PhotosReportQuery,OkResponse>- Returns:
- list of names
-
-