Class: Google::Apis::GamesV1::Player
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::Player
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb
Overview
A Player resource.
Defined Under Namespace
Classes: Name
Instance Attribute Summary collapse
-
#avatar_image_url ⇒ String
The base URL for the image that represents the player.
-
#banner_url_landscape ⇒ String
The url to the landscape mode player banner image.
-
#banner_url_portrait ⇒ String
The url to the portrait mode player banner image.
-
#display_name ⇒ String
The name to display for the player.
-
#experience_info ⇒ Google::Apis::GamesV1::PlayerExperienceInfo
1P/3P metadata about the player's experience.
-
#friend_status ⇒ String
The friend status of the given player, relative to the requester.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#name ⇒ Google::Apis::GamesV1::Player::Name
A representation of the individual components of the name.
-
#original_player_id ⇒ String
The player ID that was used for this player the first time they signed into the game in question.
-
#player_id ⇒ String
The ID of the player.
-
#profile_settings ⇒ Google::Apis::GamesV1::ProfileSettings
Profile settings Corresponds to the JSON property
profileSettings
. -
#title ⇒ String
The player's title rewarded for their game activities.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Player
constructor
A new instance of Player.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Player
Returns a new instance of Player.
1713 1714 1715 |
# File 'generated/google/apis/games_v1/classes.rb', line 1713 def initialize(**args) update!(**args) end |
Instance Attribute Details
#avatar_image_url ⇒ String
The base URL for the image that represents the player.
Corresponds to the JSON property avatarImageUrl
1651 1652 1653 |
# File 'generated/google/apis/games_v1/classes.rb', line 1651 def avatar_image_url @avatar_image_url end |
#banner_url_landscape ⇒ String
The url to the landscape mode player banner image.
Corresponds to the JSON property bannerUrlLandscape
1656 1657 1658 |
# File 'generated/google/apis/games_v1/classes.rb', line 1656 def @banner_url_landscape end |
#banner_url_portrait ⇒ String
The url to the portrait mode player banner image.
Corresponds to the JSON property bannerUrlPortrait
1661 1662 1663 |
# File 'generated/google/apis/games_v1/classes.rb', line 1661 def @banner_url_portrait end |
#display_name ⇒ String
The name to display for the player.
Corresponds to the JSON property displayName
1666 1667 1668 |
# File 'generated/google/apis/games_v1/classes.rb', line 1666 def display_name @display_name end |
#experience_info ⇒ Google::Apis::GamesV1::PlayerExperienceInfo
1P/3P metadata about the player's experience.
Corresponds to the JSON property experienceInfo
1671 1672 1673 |
# File 'generated/google/apis/games_v1/classes.rb', line 1671 def experience_info @experience_info end |
#friend_status ⇒ String
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
1677 1678 1679 |
# File 'generated/google/apis/games_v1/classes.rb', line 1677 def friend_status @friend_status end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#player
Corresponds to the JSON property kind
1683 1684 1685 |
# File 'generated/google/apis/games_v1/classes.rb', line 1683 def kind @kind end |
#name ⇒ Google::Apis::GamesV1::Player::Name
A representation of the individual components of the name.
Corresponds to the JSON property name
1688 1689 1690 |
# File 'generated/google/apis/games_v1/classes.rb', line 1688 def name @name end |
#original_player_id ⇒ String
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
1696 1697 1698 |
# File 'generated/google/apis/games_v1/classes.rb', line 1696 def original_player_id @original_player_id end |
#player_id ⇒ String
The ID of the player.
Corresponds to the JSON property playerId
1701 1702 1703 |
# File 'generated/google/apis/games_v1/classes.rb', line 1701 def player_id @player_id end |
#profile_settings ⇒ Google::Apis::GamesV1::ProfileSettings
Profile settings
Corresponds to the JSON property profileSettings
1706 1707 1708 |
# File 'generated/google/apis/games_v1/classes.rb', line 1706 def profile_settings @profile_settings end |
#title ⇒ String
The player's title rewarded for their game activities.
Corresponds to the JSON property title
1711 1712 1713 |
# File 'generated/google/apis/games_v1/classes.rb', line 1711 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 |
# File 'generated/google/apis/games_v1/classes.rb', line 1718 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 |