Sha256: 4d8288df6a5c1e3beae452324ccc826d4532fbac718694edb03a36d42dcdf305

Contents?: true

Size: 667 Bytes

Versions: 2

Compression:

Stored size: 667 Bytes

Contents

module TD::Types
  # Represents a data needed to subscribe for push notifications through registerDevice method.
  # To use specific push notification service, you must specify the correct application platform and upload valid
  #   server authentication data at https://my.telegram.org.
  class DeviceToken < Base
    %w[
      firebase_cloud_messaging
      apple_push
      apple_push_vo_ip
      windows_push
      microsoft_push
      microsoft_push_vo_ip
      web_push
      simple_push
      ubuntu_push
      black_berry_push
      tizen_push
    ].each do |type|
      autoload TD::Types.camelize(type), "tdlib/types/device_token/#{type}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-ruby-2.2.0 lib/tdlib/types/device_token.rb
tdlib-ruby-2.1.0 lib/tdlib/types/device_token.rb