Class: TD::Types::DeviceToken::WebPush

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

Overview

A token for web Push API.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#auth_base64urlTD::Types::String

Base64url-encoded authentication secret.

Returns:

  • (TD::Types::String)

    the current value of auth_base64url



8
9
10
# File 'lib/tdlib/types/device_token/web_push.rb', line 8

def auth_base64url
  @auth_base64url
end

#endpointTD::Types::String?

Absolute URL exposed by the push service where the application server can send push messages; may be empty to de-register a device.

Returns:

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

    the current value of endpoint



8
9
10
# File 'lib/tdlib/types/device_token/web_push.rb', line 8

def endpoint
  @endpoint
end

#p256dh_base64urlTD::Types::String

Base64url-encoded P-256 elliptic curve Diffie-Hellman public key.

Returns:

  • (TD::Types::String)

    the current value of p256dh_base64url



8
9
10
# File 'lib/tdlib/types/device_token/web_push.rb', line 8

def p256dh_base64url
  @p256dh_base64url
end