Class: Google::Apis::GamesV1::RecallToken

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

Overview

Recall token data returned from RetrievePlayerTokens RPC

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RecallToken

Returns a new instance of RecallToken.



2488
2489
2490
# File 'lib/google/apis/games_v1/classes.rb', line 2488

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

Instance Attribute Details

#expire_timeString

Optional. Optional expiration time of the token Corresponds to the JSON property expireTime

Returns:

  • (String)


2473
2474
2475
# File 'lib/google/apis/games_v1/classes.rb', line 2473

def expire_time
  @expire_time
end

#multi_player_personaBoolean Also known as: multi_player_persona?

Required. Whether the persona identified by the token is linked to multiple PGS Players Corresponds to the JSON property multiPlayerPersona

Returns:

  • (Boolean)


2479
2480
2481
# File 'lib/google/apis/games_v1/classes.rb', line 2479

def multi_player_persona
  @multi_player_persona
end

#tokenString

Required. Value of the Recall token as it is provided by the client via LinkPersona RPC Corresponds to the JSON property token

Returns:

  • (String)


2486
2487
2488
# File 'lib/google/apis/games_v1/classes.rb', line 2486

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2493
2494
2495
2496
2497
# File 'lib/google/apis/games_v1/classes.rb', line 2493

def update!(**args)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @multi_player_persona = args[:multi_player_persona] if args.key?(:multi_player_persona)
  @token = args[:token] if args.key?(:token)
end