Class: Google::Apis::GamesV1::PushToken

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

This is a JSON template for a push token resource.

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) ⇒ PushToken

Returns a new instance of PushToken.



2724
2725
2726
# File 'generated/google/apis/games_v1/classes.rb', line 2724

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

Instance Attribute Details

#client_revisionString

The revision of the client SDK used by your application, in the same format that's used by revisions.check. Used to send backward compatible messages. Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are:

  • IOS - Push token is for iOS Corresponds to the JSON property clientRevision

Returns:

  • (String)


2706
2707
2708
# File 'generated/google/apis/games_v1/classes.rb', line 2706

def client_revision
  @client_revision
end

#idGoogle::Apis::GamesV1::PushTokenId

This is a JSON template for a push token ID resource. Corresponds to the JSON property id



2711
2712
2713
# File 'generated/google/apis/games_v1/classes.rb', line 2711

def id
  @id
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#pushToken. Corresponds to the JSON property kind

Returns:

  • (String)


2717
2718
2719
# File 'generated/google/apis/games_v1/classes.rb', line 2717

def kind
  @kind
end

#languageString

The preferred language for notifications that are sent using this token. Corresponds to the JSON property language

Returns:

  • (String)


2722
2723
2724
# File 'generated/google/apis/games_v1/classes.rb', line 2722

def language
  @language
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2729
2730
2731
2732
2733
2734
# File 'generated/google/apis/games_v1/classes.rb', line 2729

def update!(**args)
  @client_revision = args[:client_revision] if args.key?(:client_revision)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @language = args[:language] if args.key?(:language)
end