Class NotificationsGetQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<NotificationsGetQuery,GetResponse>
-
- com.vk.api.sdk.queries.notifications.NotificationsGetQuery
-
public class NotificationsGetQuery extends AbstractQueryBuilder<NotificationsGetQuery,GetResponse>
Query for Notifications.get method
-
-
Constructor Summary
Constructors Constructor Description NotificationsGetQuery(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 NotificationsGetQuerycount(java.lang.Integer value)Number of notifications to return.NotificationsGetQueryendTime(java.lang.Integer value)Latest timestamp (in Unix time) of a notification to return.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesNotificationsGetQueryfilters(java.lang.String... value)filters Type of notifications to return: 'wall' — wall posts, 'mentions' — mentions in wall posts, comments, or topics, 'comments' — comments to wall posts, photos, and videos, 'likes' — likes, 'reposted' — wall posts that are copied from the current user's wall, 'followers' — new followers, 'friends' — accepted friend requestsNotificationsGetQueryfilters(java.util.List<java.lang.String> value)Type of notifications to return: 'wall' — wall posts, 'mentions' — mentions in wall posts, comments, or topics, 'comments' — comments to wall posts, photos, and videos, 'likes' — likes, 'reposted' — wall posts that are copied from the current user's wall, 'followers' — new followers, 'friends' — accepted friend requestsprotected NotificationsGetQuerygetThis()Get reference to this objectNotificationsGetQuerystartFrom(java.lang.String value)Set start fromNotificationsGetQuerystartTime(java.lang.Integer value)Earliest timestamp (in Unix time) of a notification to return.-
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
-
NotificationsGetQuery
public NotificationsGetQuery(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
-
count
public NotificationsGetQuery count(java.lang.Integer value)
Number of notifications to return.- Parameters:
value- value of "count" parameter. Maximum is 100. Minimum is 1. By default 30.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
startFrom
public NotificationsGetQuery startFrom(java.lang.String value)
Set start from- Parameters:
value- value of "start from" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
startTime
public NotificationsGetQuery startTime(java.lang.Integer value)
Earliest timestamp (in Unix time) of a notification to return. By default, 24 hours ago.- Parameters:
value- value of "start time" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
endTime
public NotificationsGetQuery endTime(java.lang.Integer value)
Latest timestamp (in Unix time) of a notification to return. By default, the current time.- Parameters:
value- value of "end time" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
filters
public NotificationsGetQuery filters(java.lang.String... value)
filters Type of notifications to return: 'wall' — wall posts, 'mentions' — mentions in wall posts, comments, or topics, 'comments' — comments to wall posts, photos, and videos, 'likes' — likes, 'reposted' — wall posts that are copied from the current user's wall, 'followers' — new followers, 'friends' — accepted friend requests- Parameters:
value- value of "filters" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
filters
public NotificationsGetQuery filters(java.util.List<java.lang.String> value)
Type of notifications to return: 'wall' — wall posts, 'mentions' — mentions in wall posts, comments, or topics, 'comments' — comments to wall posts, photos, and videos, 'likes' — likes, 'reposted' — wall posts that are copied from the current user's wall, 'followers' — new followers, 'friends' — accepted friend requests- Parameters:
value- value of "filters" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected NotificationsGetQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<NotificationsGetQuery,GetResponse>- 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<NotificationsGetQuery,GetResponse>- Returns:
- list of names
-
-