Package com.vk.api.sdk.queries.account
Class AccountSetSilenceModeQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<AccountSetSilenceModeQuery,OkResponse>
-
- com.vk.api.sdk.queries.account.AccountSetSilenceModeQuery
-
public class AccountSetSilenceModeQuery extends AbstractQueryBuilder<AccountSetSilenceModeQuery,OkResponse>
Query for Account.setSilenceMode method
-
-
Constructor Summary
Constructors Constructor Description AccountSetSilenceModeQuery(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 AccountSetSilenceModeQuerydeviceId(java.lang.String value)Unique device ID.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected AccountSetSilenceModeQuerygetThis()Get reference to this objectAccountSetSilenceModeQuerypeerId(java.lang.Integer value)Destination ID.AccountSetSilenceModeQuerysound(java.lang.Integer value)'1' — to enable sound in this dialog, '0' — to disable sound.AccountSetSilenceModeQuerytime(java.lang.Integer value)Time in seconds for what notifications should be disabled.-
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
-
AccountSetSilenceModeQuery
public AccountSetSilenceModeQuery(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
-
deviceId
public AccountSetSilenceModeQuery deviceId(java.lang.String value)
Unique device ID.- Parameters:
value- value of "device id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
time
public AccountSetSilenceModeQuery time(java.lang.Integer value)
Time in seconds for what notifications should be disabled. '-1' to disable forever.- Parameters:
value- value of "time" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
peerId
public AccountSetSilenceModeQuery peerId(java.lang.Integer value)
Destination ID. "For user: 'User ID', e.g. '12345'. For chat: '2000000000' + 'Chat ID', e.g. '2000000001'. For community: '- Community ID', e.g. '-12345'. "- Parameters:
value- value of "peer id" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
sound
public AccountSetSilenceModeQuery sound(java.lang.Integer value)
'1' — to enable sound in this dialog, '0' — to disable sound. Only if 'peer_id' contains user or community ID.- Parameters:
value- value of "sound" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected AccountSetSilenceModeQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<AccountSetSilenceModeQuery,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<AccountSetSilenceModeQuery,OkResponse>- Returns:
- list of names
-
-