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.



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

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)


2699
2700
2701
# File 'generated/google/apis/games_v1/classes.rb', line 2699

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



2704
2705
2706
# File 'generated/google/apis/games_v1/classes.rb', line 2704

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)


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

def kind
  @kind
end

#languageString

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

Returns:

  • (String)


2715
2716
2717
# File 'generated/google/apis/games_v1/classes.rb', line 2715

def language
  @language
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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