Class: TD::Types::DeviceToken::FirebaseCloudMessaging

Inherits:
TD::Types::DeviceToken show all
Defined in:
lib/tdlib/types/device_token/firebase_cloud_messaging.rb

Overview

A token for Firebase Cloud Messaging.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#encryptBoolean

True, if push notifications should be additionally encrypted.

Returns:

  • (Boolean)

    the current value of encrypt



6
7
8
# File 'lib/tdlib/types/device_token/firebase_cloud_messaging.rb', line 6

def encrypt
  @encrypt
end

#tokenTD::Types::String?

Device registration token; may be empty to de-register a device.

Returns:

  • (TD::Types::String, nil)

    the current value of token



6
7
8
# File 'lib/tdlib/types/device_token/firebase_cloud_messaging.rb', line 6

def token
  @token
end