public final class Player extends 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.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Player() |
| Modifier and Type | Method and Description |
|---|---|
Player |
clone() |
String |
getAvatarImageUrl()
The base URL for the image that represents the player.
|
String |
getDisplayName()
The name to display for the player.
|
PlayerExperienceInfo |
getExperienceInfo()
An object to represent Play Game experience information for the player.
|
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.
|
String |
getPlayerId()
The ID of the player.
|
String |
getTitle()
The player's title rewarded for their game activities.
|
Player |
set(String fieldName,
Object value) |
Player |
setAvatarImageUrl(String avatarImageUrl)
The base URL for the image that represents the player.
|
Player |
setDisplayName(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(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 |
setPlayerId(String playerId)
The ID of the player.
|
Player |
setTitle(String title)
The player's title rewarded for their game activities.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getAvatarImageUrl()
null for nonepublic Player setAvatarImageUrl(String avatarImageUrl)
avatarImageUrl - avatarImageUrl or null for nonepublic String getDisplayName()
null for nonepublic Player setDisplayName(String displayName)
displayName - displayName or null for nonepublic PlayerExperienceInfo getExperienceInfo()
null for nonepublic Player setExperienceInfo(PlayerExperienceInfo experienceInfo)
experienceInfo - experienceInfo or null for nonepublic String getKind()
null for nonepublic Player setKind(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 String getPlayerId()
null for nonepublic Player setPlayerId(String playerId)
playerId - playerId or null for nonepublic String getTitle()
null for nonepublic Player setTitle(String title)
title - title or null for nonepublic Player set(String fieldName, Object value)
set in class GenericJsonpublic Player clone()
clone in class GenericJson