public final class Player
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Play Game Services API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
| Modifier and Type | Class and Description |
|---|---|
static class |
Player.Name
An object representation of the individual components of the player's name.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Player() |
| Modifier and Type | Method and Description |
|---|---|
Player |
clone() |
java.lang.String |
getAvatarImageUrl()
The base URL for the image that represents the player.
|
java.lang.String |
getBannerUrlLandscape()
The url to the landscape mode player banner image.
|
java.lang.String |
getBannerUrlPortrait()
The url to the portrait mode player banner image.
|
java.lang.String |
getDisplayName()
The name to display for the player.
|
PlayerExperienceInfo |
getExperienceInfo()
An object to represent Play Game experience information for the player.
|
java.lang.String |
getKind()
Uniquely identifies the type of this resource.
|
Played |
getLastPlayedWith()
Details about the last time this player played a multiplayer game with the currently
authenticated player.
|
Player.Name |
getName()
An object representation of the individual components of the player's name.
|
java.lang.String |
getOriginalPlayerId()
The player ID that was used for this player the first time they signed into the game in
question.
|
java.lang.String |
getPlayerId()
The ID of the player.
|
ProfileSettings |
getProfileSettings()
The player's profile settings.
|
java.lang.String |
getTitle()
The player's title rewarded for their game activities.
|
Player |
set(java.lang.String fieldName,
java.lang.Object value) |
Player |
setAvatarImageUrl(java.lang.String avatarImageUrl)
The base URL for the image that represents the player.
|
Player |
setBannerUrlLandscape(java.lang.String bannerUrlLandscape)
The url to the landscape mode player banner image.
|
Player |
setBannerUrlPortrait(java.lang.String bannerUrlPortrait)
The url to the portrait mode player banner image.
|
Player |
setDisplayName(java.lang.String displayName)
The name to display for the player.
|
Player |
setExperienceInfo(PlayerExperienceInfo experienceInfo)
An object to represent Play Game experience information for the player.
|
Player |
setKind(java.lang.String kind)
Uniquely identifies the type of this resource.
|
Player |
setLastPlayedWith(Played lastPlayedWith)
Details about the last time this player played a multiplayer game with the currently
authenticated player.
|
Player |
setName(Player.Name name)
An object representation of the individual components of the player's name.
|
Player |
setOriginalPlayerId(java.lang.String originalPlayerId)
The player ID that was used for this player the first time they signed into the game in
question.
|
Player |
setPlayerId(java.lang.String playerId)
The ID of the player.
|
Player |
setProfileSettings(ProfileSettings profileSettings)
The player's profile settings.
|
Player |
setTitle(java.lang.String title)
The player's title rewarded for their game activities.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getAvatarImageUrl()
null for nonepublic Player setAvatarImageUrl(java.lang.String avatarImageUrl)
avatarImageUrl - avatarImageUrl or null for nonepublic java.lang.String getBannerUrlLandscape()
null for nonepublic Player setBannerUrlLandscape(java.lang.String bannerUrlLandscape)
bannerUrlLandscape - bannerUrlLandscape or null for nonepublic java.lang.String getBannerUrlPortrait()
null for nonepublic Player setBannerUrlPortrait(java.lang.String bannerUrlPortrait)
bannerUrlPortrait - bannerUrlPortrait or null for nonepublic java.lang.String getDisplayName()
null for nonepublic Player setDisplayName(java.lang.String displayName)
displayName - displayName or null for nonepublic PlayerExperienceInfo getExperienceInfo()
null for nonepublic Player setExperienceInfo(PlayerExperienceInfo experienceInfo)
experienceInfo - experienceInfo or null for nonepublic java.lang.String getKind()
null for nonepublic Player setKind(java.lang.String kind)
kind - kind or null for nonepublic Played getLastPlayedWith()
null for nonepublic Player setLastPlayedWith(Played lastPlayedWith)
lastPlayedWith - lastPlayedWith or null for nonepublic Player.Name getName()
null for nonepublic Player setName(Player.Name name)
name - name or null for nonepublic java.lang.String getOriginalPlayerId()
null for nonepublic Player setOriginalPlayerId(java.lang.String originalPlayerId)
originalPlayerId - originalPlayerId or null for nonepublic java.lang.String getPlayerId()
null for nonepublic Player setPlayerId(java.lang.String playerId)
playerId - playerId or null for nonepublic ProfileSettings getProfileSettings()
null for nonepublic Player setProfileSettings(ProfileSettings profileSettings)
profileSettings - profileSettings or null for nonepublic java.lang.String getTitle()
null for nonepublic Player setTitle(java.lang.String title)
title - title or null for nonepublic Player set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Player clone()
clone in class com.google.api.client.json.GenericJson