class Google::Apis::GamesV1::PushToken

This is a JSON template for a push token resource.

Attributes

client_revision[RW]

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]:. Possible values of PLATFORM_TYPE are:

  • IOS - Push token is for iOS

Corresponds to the JSON property `clientRevision` @return [String]

id[RW]

This is a JSON template for a push token ID resource. Corresponds to the JSON property `id` @return [Google::Apis::GamesV1::PushTokenId]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string games#pushToken. Corresponds to the JSON property `kind` @return [String]

language[RW]

The preferred language for notifications that are sent using this token. Corresponds to the JSON property `language` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 2678
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 2683
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