Package com.vk.api.sdk.queries.secure
Class SecureSendSMSNotificationQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<T,R>
-
- com.vk.api.sdk.client.AbstractSecureQueryBuilder<SecureSendSMSNotificationQuery,OkResponse>
-
- com.vk.api.sdk.queries.secure.SecureSendSMSNotificationQuery
-
public class SecureSendSMSNotificationQuery extends AbstractSecureQueryBuilder<SecureSendSMSNotificationQuery,OkResponse>
Query for Secure.sendSMSNotification method
-
-
Constructor Summary
Constructors Constructor Description SecureSendSMSNotificationQuery(VkApiClient client, ServiceActor actor, int userId, 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 SecureSendSMSNotificationQuerygetThis()Get reference to this objectprotected SecureSendSMSNotificationQuerymessage(java.lang.String value)'SMS' text to be sent in 'UTF-8' encoding.protected SecureSendSMSNotificationQueryuserId(int value)ID of the user to whom SMS notification is sent.-
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
-
SecureSendSMSNotificationQuery
public SecureSendSMSNotificationQuery(VkApiClient client, ServiceActor actor, int userId, 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 tokenuserId- value of "user id" parameter. Minimum is 1.message- value of "message" parameter.
-
-
Method Detail
-
userId
protected SecureSendSMSNotificationQuery userId(int value)
ID of the user to whom SMS notification is sent. The user shall allow the application to send him/her notifications (, +1).- Parameters:
value- value of "user id" parameter. Minimum is 1.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
message
protected SecureSendSMSNotificationQuery message(java.lang.String value)
'SMS' text to be sent in 'UTF-8' encoding. Only Latin letters and numbers are allowed. Maximum size is '160' characters.- Parameters:
value- value of "message" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected SecureSendSMSNotificationQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<SecureSendSMSNotificationQuery,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<SecureSendSMSNotificationQuery,OkResponse>- Returns:
- list of names
-
-