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 Management API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/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.
|
GamesPlayerExperienceInfoResource |
getExperienceInfo()
An object to represent Play Game experience information for the player.
|
java.lang.String |
getFriendStatus()
The friend status of the given player, relative to the requester.
|
java.lang.String |
getKind()
Uniquely identifies the type of this resource.
|
GamesPlayedResource |
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.
|
java.lang.String |
getPlayerStattus() |
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(GamesPlayerExperienceInfoResource experienceInfo)
An object to represent Play Game experience information for the player.
|
Player |
setFriendStatus(java.lang.String friendStatus)
The friend status of the given player, relative to the requester.
|
Player |
setKind(java.lang.String kind)
Uniquely identifies the type of this resource.
|
Player |
setLastPlayedWith(GamesPlayedResource 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 |
setPlayerStattus(java.lang.String playerStattus) |
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, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public 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 GamesPlayerExperienceInfoResource getExperienceInfo()
null
for nonepublic Player setExperienceInfo(GamesPlayerExperienceInfoResource experienceInfo)
experienceInfo
- experienceInfo or null
for nonepublic java.lang.String getFriendStatus()
null
for nonepublic Player setFriendStatus(java.lang.String friendStatus)
friendStatus
- friendStatus or null
for nonepublic java.lang.String getKind()
null
for nonepublic Player setKind(java.lang.String kind)
kind
- kind or null
for nonepublic GamesPlayedResource getLastPlayedWith()
null
for nonepublic Player setLastPlayedWith(GamesPlayedResource 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 java.lang.String getPlayerStattus()
null
for nonepublic Player setPlayerStattus(java.lang.String playerStattus)
playerStattus
- playerStattus 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.GenericJson
public Player clone()
clone
in class com.google.api.client.json.GenericJson