class Google::Apis::GamesV1::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::GamesV1::PlayerExperienceInfo]

friend_status[RW]

The friend status of the given player, relative to the requester. This is unset if the player is not sharing their friends list with the game. Corresponds to the JSON property `friendStatus` @return [String]

kind[RW]

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

name[RW]

A representation of the individual components of the name. Corresponds to the JSON property `name` @return [Google::Apis::GamesV1::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::GamesV1::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_v1/classes.rb, line 1683
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_v1/classes.rb, line 1688
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)
  @friend_status = args[:friend_status] if args.key?(:friend_status)
  @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