Sha256: e509335202857230fdce046ed3c1ea540793e9c7ff4e6562e006798bf7b9855b

Contents?: true

Size: 1.93 KB

Versions: 1

Compression:

Stored size: 1.93 KB

Contents

# frozen_string_literal: true
require 'vk/api/methods'

module Vk
  module API
    class Account < Vk::Schema::Namespace
      module Methods
        # Subscribes an iOS/Android/Windows Phone-based device to receive push notifications
        class RegisterDevice < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'account.registerDevice'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [String] :token Device token used to send notifications. (for mpns, the token shall be URL for sending of notifications)
          #   @option arguments [String] :device_model String name of device model.
          #   @option arguments [Integer] :device_year Device year.
          #   @option arguments [String] :device_id Unique device ID.
          #   @option arguments [String] :system_version String version of device operating system.
          #   @option arguments [String] :settings Push settings in a .
          #   @return [Account::Methods::RegisterDevice]

          # @!group Arguments

          # @return [String] Device token used to send notifications. (for mpns, the token shall be URL for sending of notifications)
          attribute :token, API::Types::Coercible::String.optional
          # @return [String] String name of device model.
          attribute :device_model, API::Types::Coercible::String.optional
          # @return [Integer] Device year.
          attribute :device_year, API::Types::Coercible::Int.optional
          # @return [String] Unique device ID.
          attribute :device_id, API::Types::Coercible::String.optional
          # @return [String] String version of device operating system.
          attribute :system_version, API::Types::Coercible::String.optional
          # @return [String] Push settings in a .
          attribute :settings, API::Types::Coercible::String.optional
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/account/methods/register_device.rb