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.
2488 2489 2490 |
# File 'lib/google/apis/games_v1/classes.rb', line 2488 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
2473 2474 2475 |
# File 'lib/google/apis/games_v1/classes.rb', line 2473 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
2479 2480 2481 |
# File 'lib/google/apis/games_v1/classes.rb', line 2479 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
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 |