Class NotificationsSendMessageQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<NotificationsSendMessageQuery,java.util.List<SendMessageResponse>>
-
- com.vk.api.sdk.queries.notifications.NotificationsSendMessageQuery
-
public class NotificationsSendMessageQuery extends AbstractQueryBuilder<NotificationsSendMessageQuery,java.util.List<SendMessageResponse>>
Query for Notifications.sendMessage method
-
-
Constructor Summary
Constructors Constructor Description NotificationsSendMessageQuery(VkApiClient client, ServiceActor actor, java.lang.String message, java.lang.Integer... userIds)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersNotificationsSendMessageQuery(VkApiClient client, ServiceActor actor, java.lang.String message, java.util.List<java.lang.Integer> userIds)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 namesNotificationsSendMessageQueryfragment(java.lang.String value)Set fragmentprotected NotificationsSendMessageQuerygetThis()Get reference to this objectNotificationsSendMessageQuerygroupId(java.lang.Integer value)Set group idprotected NotificationsSendMessageQuerymessage(java.lang.String value)Set messageNotificationsSendMessageQueryrandomId(java.lang.Integer value)Set random idNotificationsSendMessageQuerysendingMode(SendMessageSendingMode value)Type of sending (delivering) notifications: 'immediately' — push and bell notifications will be delivered as soon as possible, 'delayed' — push and bell notifications will be delivered in the most comfortable time for the user, 'delayed_push' — only push notifications will be delivered in the most comfortable time, while the bell notifications will be delivered as soon as possibleprotected NotificationsSendMessageQueryuserIds(java.lang.Integer... value)user_ids Set user idsprotected NotificationsSendMessageQueryuserIds(java.util.List<java.lang.Integer> value)Set user ids-
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
-
NotificationsSendMessageQuery
public NotificationsSendMessageQuery(VkApiClient client, ServiceActor actor, java.lang.String message, java.lang.Integer... userIds)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenmessage- value of "message" parameter.userIds- value of "user ids" parameter.
-
NotificationsSendMessageQuery
public NotificationsSendMessageQuery(VkApiClient client, ServiceActor actor, java.lang.String message, java.util.List<java.lang.Integer> userIds)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenmessage- value of "message" parameter.userIds- value of "user ids" parameter.
-
-
Method Detail
-
message
protected NotificationsSendMessageQuery message(java.lang.String value)
Set message- Parameters:
value- value of "message" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
fragment
public NotificationsSendMessageQuery fragment(java.lang.String value)
Set fragment- Parameters:
value- value of "fragment" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
groupId
public NotificationsSendMessageQuery groupId(java.lang.Integer value)
Set group id- Parameters:
value- value of "group id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
randomId
public NotificationsSendMessageQuery randomId(java.lang.Integer value)
Set random id- Parameters:
value- value of "random id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
sendingMode
public NotificationsSendMessageQuery sendingMode(SendMessageSendingMode value)
Type of sending (delivering) notifications: 'immediately' — push and bell notifications will be delivered as soon as possible, 'delayed' — push and bell notifications will be delivered in the most comfortable time for the user, 'delayed_push' — only push notifications will be delivered in the most comfortable time, while the bell notifications will be delivered as soon as possible- Parameters:
value- value of "sending mode" parameter. By default immediately.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
userIds
protected NotificationsSendMessageQuery userIds(java.lang.Integer... value)
user_ids Set user ids- Parameters:
value- value of "user ids" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
userIds
protected NotificationsSendMessageQuery userIds(java.util.List<java.lang.Integer> value)
Set user ids- Parameters:
value- value of "user ids" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected NotificationsSendMessageQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<NotificationsSendMessageQuery,java.util.List<SendMessageResponse>>- 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<NotificationsSendMessageQuery,java.util.List<SendMessageResponse>>- Returns:
- list of names
-
-