Class: Google::Apis::GamesV1::PushToken
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::PushToken
 
- 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
- 
  
    
      #client_revision  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The revision of the client SDK used by your application, in the same format that's used by revisions.check. 
- 
  
    
      #id  ⇒ Google::Apis::GamesV1::PushTokenId 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for a push token ID resource. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #language  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The preferred language for notifications that are sent using this token. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PushToken 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PushToken. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PushToken
Returns a new instance of PushToken
| 2712 2713 2714 | # File 'generated/google/apis/games_v1/classes.rb', line 2712 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#client_revision ⇒ String
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
| 2694 2695 2696 | # File 'generated/google/apis/games_v1/classes.rb', line 2694 def client_revision @client_revision end | 
#id ⇒ Google::Apis::GamesV1::PushTokenId
This is a JSON template for a push token ID resource.
Corresponds to the JSON property id
| 2699 2700 2701 | # File 'generated/google/apis/games_v1/classes.rb', line 2699 def id @id end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#pushToken.
Corresponds to the JSON property kind
| 2705 2706 2707 | # File 'generated/google/apis/games_v1/classes.rb', line 2705 def kind @kind end | 
#language ⇒ String
The preferred language for notifications that are sent using this token.
Corresponds to the JSON property language
| 2710 2711 2712 | # File 'generated/google/apis/games_v1/classes.rb', line 2710 def language @language end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2717 2718 2719 2720 2721 2722 | # File 'generated/google/apis/games_v1/classes.rb', line 2717 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 |