Class: Google::Apis::GamesV1::PushTokenId::Ios

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb

Overview

A push token ID for iOS devices.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Ios

Returns a new instance of Ios.



2772
2773
2774
# File 'generated/google/apis/games_v1/classes.rb', line 2772

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#apns_device_tokenString

Device token supplied by an iOS system call to register for remote notifications. Encode this field as web-safe base64. Corresponds to the JSON property apns_device_token NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2764
2765
2766
# File 'generated/google/apis/games_v1/classes.rb', line 2764

def apns_device_token
  @apns_device_token
end

#apns_environmentString

Indicates whether this token should be used for the production or sandbox APNS server. Corresponds to the JSON property apns_environment

Returns:

  • (String)


2770
2771
2772
# File 'generated/google/apis/games_v1/classes.rb', line 2770

def apns_environment
  @apns_environment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2777
2778
2779
2780
# File 'generated/google/apis/games_v1/classes.rb', line 2777

def update!(**args)
  @apns_device_token = args[:apns_device_token] if args.key?(:apns_device_token)
  @apns_environment = args[:apns_environment] if args.key?(:apns_environment)
end