Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse

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

Overview

Response message for SignInWithGameCenter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse

Returns a new instance of GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse.



2472
2473
2474
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2472

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

Instance Attribute Details

#display_nameString

Display name of the authenticated user. Corresponds to the JSON property displayName

Returns:

  • (String)


2423
2424
2425
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2423

def display_name
  @display_name
end

#expires_inFixnum

The number of seconds until the ID token expires. Corresponds to the JSON property expiresIn

Returns:

  • (Fixnum)


2428
2429
2430
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2428

def expires_in
  @expires_in
end

#game_player_idString

The user's Game Center game player ID. A unique identifier for a player of the game. https://developer.apple.com/documentation/gamekit/gkplayer/3113960- gameplayerid Corresponds to the JSON property gamePlayerId

Returns:

  • (String)


2435
2436
2437
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2435

def game_player_id
  @game_player_id
end

#id_tokenString

An Identity Platform ID token for the authenticated user. Corresponds to the JSON property idToken

Returns:

  • (String)


2440
2441
2442
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2440

def id_token
  @id_token
end

#is_new_userBoolean Also known as: is_new_user?

Whether the logged in user was created by this request. Corresponds to the JSON property isNewUser

Returns:

  • (Boolean)


2445
2446
2447
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2445

def is_new_user
  @is_new_user
end

#local_idString

The ID of the authenticated user. Always present in the response. Corresponds to the JSON property localId

Returns:

  • (String)


2451
2452
2453
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2451

def local_id
  @local_id
end

#player_idString

The user's Game Center player ID. Pass playerID along with gamePlayerID and teamPlayerID to initiate the migration of a user's Game Center player ID to gamePlayerID. Corresponds to the JSON property playerId

Returns:

  • (String)


2458
2459
2460
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2458

def player_id
  @player_id
end

#refresh_tokenString

An Identity Platform refresh token for the authenticated user. Corresponds to the JSON property refreshToken

Returns:

  • (String)


2463
2464
2465
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2463

def refresh_token
  @refresh_token
end

#team_player_idString

The user's Game Center team player ID. A unique identifier for a player of all the games that you distribute using your developer account. https://developer. apple.com/documentation/gamekit/gkplayer/3174857-teamplayerid Corresponds to the JSON property teamPlayerId

Returns:

  • (String)


2470
2471
2472
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2470

def team_player_id
  @team_player_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2477

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @expires_in = args[:expires_in] if args.key?(:expires_in)
  @game_player_id = args[:game_player_id] if args.key?(:game_player_id)
  @id_token = args[:id_token] if args.key?(:id_token)
  @is_new_user = args[:is_new_user] if args.key?(:is_new_user)
  @local_id = args[:local_id] if args.key?(:local_id)
  @player_id = args[:player_id] if args.key?(:player_id)
  @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
  @team_player_id = args[:team_player_id] if args.key?(:team_player_id)
end