class Google::Apis::GamesManagementV1management::Player

This is a JSON template for 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]

This is a JSON template for 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]

last_played_with[RW]

This is a JSON template for metadata about a player playing a game with the currently authenticated user. Corresponds to the JSON property `lastPlayedWith` @return [Google::Apis::GamesManagementV1management::GamesPlayedResource]

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]

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 generated/google/apis/games_management_v1management/classes.rb, line 372
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_management_v1management/classes.rb, line 377
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)
  @last_played_with = args[:last_played_with] if args.key?(:last_played_with)
  @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)
  @title = args[:title] if args.key?(:title)
end