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.



2545
2546
2547
# File 'lib/google/apis/games_v1/classes.rb', line 2545

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)


2530
2531
2532
# File 'lib/google/apis/games_v1/classes.rb', line 2530

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)


2536
2537
2538
# File 'lib/google/apis/games_v1/classes.rb', line 2536

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)


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