Class: Vk::API::Account::Methods::SetSilenceMode
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Account::Methods::SetSilenceMode
- Defined in:
- lib/vk/api/account/methods/set_silence_mode.rb
Overview
Mutes push notifications for the set period of time.
Arguments collapse
-
#device_id ⇒ String
Unique device ID.
-
#peer_id ⇒ Integer
Destination ID.; "For user:; 'User ID', e.g.
-
#sound ⇒ Integer
'1' — to enable sound in this dialog, '0' — to disable sound.
-
#time ⇒ Integer
Time in seconds for what notifications should be disabled.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Account::Methods::SetSilenceMode
|
# File 'lib/vk/api/account/methods/set_silence_mode.rb', line 15
|
Instance Method Details
#device_id ⇒ String
Returns Unique device ID.
26 |
# File 'lib/vk/api/account/methods/set_silence_mode.rb', line 26 attribute :device_id, API::Types::Coercible::String.optional.default(nil) |
#peer_id ⇒ Integer
Returns Destination ID.; "For user:; 'User ID', e.g. '12345'.; ; For chat:; '2000000000' + 'Chat ID', e.g. '2000000001'.; ; For community:; '- Community ID', e.g. '-12345'.; ".
30 |
# File 'lib/vk/api/account/methods/set_silence_mode.rb', line 30 attribute :peer_id, API::Types::Coercible::Int.optional.default(nil) |