Package com.vk.api.sdk.queries.secure
Class SecureSendNotificationQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<T,R>
-
- com.vk.api.sdk.client.AbstractSecureQueryBuilder<SecureSendNotificationQuery,java.util.List<java.lang.Integer>>
-
- com.vk.api.sdk.queries.secure.SecureSendNotificationQuery
-
public class SecureSendNotificationQuery extends AbstractSecureQueryBuilder<SecureSendNotificationQuery,java.util.List<java.lang.Integer>>
Query for Secure.sendNotification method
-
-
Constructor Summary
Constructors Constructor Description SecureSendNotificationQuery(VkApiClient client, ServiceActor actor, java.lang.String message)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 SecureSendNotificationQuerygetThis()Get reference to this objectprotected SecureSendNotificationQuerymessage(java.lang.String value)Notification text which should be sent in 'UTF-8' encoding ('254' characters maximum).SecureSendNotificationQueryuserId(java.lang.Integer value)Set user idSecureSendNotificationQueryuserIds(java.lang.Integer... value)user_ids Set user idsSecureSendNotificationQueryuserIds(java.util.List<java.lang.Integer> value)Set user ids-
Methods inherited from class com.vk.api.sdk.client.AbstractSecureQueryBuilder
clientSecret
-
Methods inherited from class com.vk.api.sdk.client.AbstractQueryBuilder
accessToken, build, captchaKey, captchaSid, 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
-
SecureSendNotificationQuery
public SecureSendNotificationQuery(VkApiClient client, ServiceActor actor, java.lang.String message)
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.
-
-
Method Detail
-
userId
public SecureSendNotificationQuery userId(java.lang.Integer value)
Set user id- Parameters:
value- value of "user id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
message
protected SecureSendNotificationQuery message(java.lang.String value)
Notification text which should be sent in 'UTF-8' encoding ('254' characters maximum).- Parameters:
value- value of "message" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
userIds
public SecureSendNotificationQuery 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
public SecureSendNotificationQuery 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 SecureSendNotificationQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<SecureSendNotificationQuery,java.util.List<java.lang.Integer>>- 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<SecureSendNotificationQuery,java.util.List<java.lang.Integer>>- Returns:
- list of names
-
-