class Google::Apis::GamesV1::Player
This is a JSON template for a Player resource.
Attributes
The base URL for the image that represents the player. Corresponds to the JSON property `avatarImageUrl` @return [String]
The name to display for the player. Corresponds to the JSON property `displayName` @return [String]
This is a JSON template for 1P/3P metadata about the player's experience. Corresponds to the JSON property `experienceInfo` @return [Google::Apis::GamesV1::PlayerExperienceInfo]
Uniquely identifies the type of this resource. Value is always the fixed string games#player. Corresponds to the JSON property `kind` @return [String]
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::GamesV1::Played]
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::GamesV1::Player::Name]
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]
The ID of the player. Corresponds to the JSON property `playerId` @return [String]
The player's title rewarded for their game activities. Corresponds to the JSON property `title` @return [String]
Public Class Methods
# File generated/google/apis/games_v1/classes.rb, line 2046 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/games_v1/classes.rb, line 2051 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