class Google::Apis::GamesManagementV1management::Player
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]
1P/3P metadata about the player's experience. Corresponds to the JSON property `experienceInfo` @return [Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource]
Uniquely identifies the type of this resource. Value is always the fixed string `gamesManagement#player`. Corresponds to the JSON property `kind` @return [String]
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]
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]
Profile settings Corresponds to the JSON property `profileSettings` @return [Google::Apis::GamesManagementV1management::ProfileSettings]
The player's title rewarded for their game activities. Corresponds to the JSON property `title` @return [String]
Public Class Methods
# File lib/google/apis/games_management_v1management/classes.rb, line 341 def initialize(**args) update!(**args) end
Public Instance Methods
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