class Google::Apis::GamesManagementV1management::Player

A Player resource.

Attributes

avatar_image_url[RW]

The base URL for the image that represents the player. Corresponds to the JSON property `avatarImageUrl` @return [String]

banner_url_landscape[RW]

The url to the landscape mode player banner image. Corresponds to the JSON property `bannerUrlLandscape` @return [String]

banner_url_portrait[RW]

The url to the portrait mode player banner image. Corresponds to the JSON property `bannerUrlPortrait` @return [String]

display_name[RW]

The name to display for the player. Corresponds to the JSON property `displayName` @return [String]

experience_info[RW]

1P/3P metadata about the player's experience. Corresponds to the JSON property `experienceInfo` @return [Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string `gamesManagement#player`. Corresponds to the JSON property `kind` @return [String]

name[RW]

An object representation of the individual components of the player's name. For some players, these fields may not be present. Corresponds to the JSON property `name` @return [Google::Apis::GamesManagementV1management::Player::Name]

original_player_id[RW]

The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. Corresponds to the JSON property `originalPlayerId` @return [String]

player_id[RW]

The ID of the player. Corresponds to the JSON property `playerId` @return [String]

profile_settings[RW]

Profile settings Corresponds to the JSON property `profileSettings` @return [Google::Apis::GamesManagementV1management::ProfileSettings]

title[RW]

The player's title rewarded for their game activities. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/games_management_v1management/classes.rb, line 341
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/games_management_v1management/classes.rb, line 346
def update!(**args)
  @avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url)
  @banner_url_landscape = args[:banner_url_landscape] if args.key?(:banner_url_landscape)
  @banner_url_portrait = args[:banner_url_portrait] if args.key?(:banner_url_portrait)
  @display_name = args[:display_name] if args.key?(:display_name)
  @experience_info = args[:experience_info] if args.key?(:experience_info)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @original_player_id = args[:original_player_id] if args.key?(:original_player_id)
  @player_id = args[:player_id] if args.key?(:player_id)
  @profile_settings = args[:profile_settings] if args.key?(:profile_settings)
  @title = args[:title] if args.key?(:title)
end