Class: Google::Apis::GamesV1::RecallToken
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::RecallToken
- 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
-
#expire_time ⇒ String
Optional.
-
#multi_player_persona ⇒ Boolean
(also: #multi_player_persona?)
Required.
-
#token ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RecallToken
constructor
A new instance of RecallToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RecallToken
Returns a new instance of RecallToken.
2545 2546 2547 |
# File 'lib/google/apis/games_v1/classes.rb', line 2545 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expire_time ⇒ String
Optional. Optional expiration time of the token
Corresponds to the JSON property expireTime
2530 2531 2532 |
# File 'lib/google/apis/games_v1/classes.rb', line 2530 def expire_time @expire_time end |
#multi_player_persona ⇒ Boolean 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
2536 2537 2538 |
# File 'lib/google/apis/games_v1/classes.rb', line 2536 def multi_player_persona @multi_player_persona end |
#token ⇒ String
Required. Value of the Recall token as it is provided by the client via
LinkPersona RPC
Corresponds to the JSON property token
2543 2544 2545 |
# File 'lib/google/apis/games_v1/classes.rb', line 2543 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2550 2551 2552 2553 2554 |
# File 'lib/google/apis/games_v1/classes.rb', line 2550 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 |