Class: Vk::API::Account::Methods::RegisterDevice
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Account::Methods::RegisterDevice
- Defined in:
- lib/vk/api/account/methods/register_device.rb
Overview
Subscribes an iOS/Android/Windows Phone-based device to receive push notifications
Arguments collapse
-
#device_id ⇒ String
Unique device ID.
-
#device_model ⇒ String
String name of device model.
-
#device_year ⇒ Integer
Device year.
-
#settings ⇒ String
Push settings in a .
-
#system_version ⇒ String
String version of device operating system.
-
#token ⇒ String
Device token used to send notifications.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Account::Methods::RegisterDevice
|
# File 'lib/vk/api/account/methods/register_device.rb', line 15
|
Instance Method Details
#device_id ⇒ String
Returns Unique device ID.
34 |
# File 'lib/vk/api/account/methods/register_device.rb', line 34 attribute :device_id, API::Types::Coercible::String |
#device_model ⇒ String
Returns String name of device model.
30 |
# File 'lib/vk/api/account/methods/register_device.rb', line 30 attribute :device_model, API::Types::Coercible::String.optional.default(nil) |
#device_year ⇒ Integer
Returns Device year.
32 |
# File 'lib/vk/api/account/methods/register_device.rb', line 32 attribute :device_year, API::Types::Coercible::Int.optional.default(nil) |
#settings ⇒ String
Returns Push settings in a .
38 |
# File 'lib/vk/api/account/methods/register_device.rb', line 38 attribute :settings, API::Types::Coercible::String.optional.default(nil) |