public class Games extends AbstractGoogleJsonClient
The API for Google Play Game Services.
For more information about this service, see the API Documentation
This service uses GamesRequestInitializer to initialize global parameters via its
Games.Builder.
| Modifier and Type | Class and Description |
|---|---|
class |
Games.AchievementDefinitions
The "achievementDefinitions" collection of methods.
|
class |
Games.Achievements
The "achievements" collection of methods.
|
class |
Games.Applications
The "applications" collection of methods.
|
static class |
Games.Builder
Builder for
Games. |
class |
Games.Events
The "events" collection of methods.
|
class |
Games.Leaderboards
The "leaderboards" collection of methods.
|
class |
Games.Metagame
The "metagame" collection of methods.
|
class |
Games.Players
The "players" collection of methods.
|
class |
Games.Pushtokens
The "pushtokens" collection of methods.
|
class |
Games.QuestMilestones
The "questMilestones" collection of methods.
|
class |
Games.Quests
The "quests" collection of methods.
|
class |
Games.Revisions
The "revisions" collection of methods.
|
class |
Games.Rooms
The "rooms" collection of methods.
|
class |
Games.Scores
The "scores" collection of methods.
|
class |
Games.Snapshots
The "snapshots" collection of methods.
|
class |
Games.TurnBasedMatches
The "turnBasedMatches" collection of methods.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BASE_URL
The default encoded base URL of the service.
|
static String |
DEFAULT_ROOT_URL
The default encoded root URL of the service.
|
static String |
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
|
| Constructor and Description |
|---|
Games(HttpTransport transport,
JsonFactory jsonFactory,
HttpRequestInitializer httpRequestInitializer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Games.AchievementDefinitions |
achievementDefinitions()
An accessor for creating requests from the AchievementDefinitions collection.
|
Games.Achievements |
achievements()
An accessor for creating requests from the Achievements collection.
|
Games.Applications |
applications()
An accessor for creating requests from the Applications collection.
|
Games.Events |
events()
An accessor for creating requests from the Events collection.
|
protected void |
initialize(AbstractGoogleClientRequest<?> httpClientRequest) |
Games.Leaderboards |
leaderboards()
An accessor for creating requests from the Leaderboards collection.
|
Games.Metagame |
metagame()
An accessor for creating requests from the Metagame collection.
|
Games.Players |
players()
An accessor for creating requests from the Players collection.
|
Games.Pushtokens |
pushtokens()
An accessor for creating requests from the Pushtokens collection.
|
Games.QuestMilestones |
questMilestones()
An accessor for creating requests from the QuestMilestones collection.
|
Games.Quests |
quests()
An accessor for creating requests from the Quests collection.
|
Games.Revisions |
revisions()
An accessor for creating requests from the Revisions collection.
|
Games.Rooms |
rooms()
An accessor for creating requests from the Rooms collection.
|
Games.Scores |
scores()
An accessor for creating requests from the Scores collection.
|
Games.Snapshots |
snapshots()
An accessor for creating requests from the Snapshots collection.
|
Games.TurnBasedMatches |
turnBasedMatches()
An accessor for creating requests from the TurnBasedMatches collection.
|
getJsonFactory, getObjectParserbatch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks, getSuppressRequiredParameterCheckspublic static final String DEFAULT_ROOT_URL
public static final String DEFAULT_SERVICE_PATH
public static final String DEFAULT_BASE_URL
public Games(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer httpRequestInitializer)
Use Games.Builder if you need to specify any of the optional parameters.
transport - HTTP transport, which should normally be:
com.google.api.client.extensions.appengine.http.UrlFetchTransportnewCompatibleTransport from
com.google.api.client.extensions.android.http.AndroidHttpGoogleNetHttpTransport
jsonFactory - JSON factory, which may be:
com.google.api.client.json.jackson2.JacksonFactorycom.google.api.client.json.gson.GsonFactorycom.google.api.client.extensions.android.json.AndroidJsonFactoryhttpRequestInitializer - HTTP request initializer or null for noneprotected void initialize(AbstractGoogleClientRequest<?> httpClientRequest) throws IOException
initialize in class AbstractGoogleClientIOExceptionpublic Games.AchievementDefinitions achievementDefinitions()
The typical use is:
Games games = new Games(...);Games.AchievementDefinitions.List request = games.achievementDefinitions().list(parameters ...)
public Games.Achievements achievements()
The typical use is:
Games games = new Games(...);Games.Achievements.List request = games.achievements().list(parameters ...)
public Games.Applications applications()
The typical use is:
Games games = new Games(...);Games.Applications.List request = games.applications().list(parameters ...)
public Games.Events events()
The typical use is:
Games games = new Games(...);Games.Events.List request = games.events().list(parameters ...)
public Games.Leaderboards leaderboards()
The typical use is:
Games games = new Games(...);Games.Leaderboards.List request = games.leaderboards().list(parameters ...)
public Games.Metagame metagame()
The typical use is:
Games games = new Games(...);Games.Metagame.List request = games.metagame().list(parameters ...)
public Games.Players players()
The typical use is:
Games games = new Games(...);Games.Players.List request = games.players().list(parameters ...)
public Games.Pushtokens pushtokens()
The typical use is:
Games games = new Games(...);Games.Pushtokens.List request = games.pushtokens().list(parameters ...)
public Games.QuestMilestones questMilestones()
The typical use is:
Games games = new Games(...);Games.QuestMilestones.List request = games.questMilestones().list(parameters ...)
public Games.Quests quests()
The typical use is:
Games games = new Games(...);Games.Quests.List request = games.quests().list(parameters ...)
public Games.Revisions revisions()
The typical use is:
Games games = new Games(...);Games.Revisions.List request = games.revisions().list(parameters ...)
public Games.Rooms rooms()
The typical use is:
Games games = new Games(...);Games.Rooms.List request = games.rooms().list(parameters ...)
public Games.Scores scores()
The typical use is:
Games games = new Games(...);Games.Scores.List request = games.scores().list(parameters ...)
public Games.Snapshots snapshots()
The typical use is:
Games games = new Games(...);Games.Snapshots.List request = games.snapshots().list(parameters ...)
public Games.TurnBasedMatches turnBasedMatches()
The typical use is:
Games games = new Games(...);Games.TurnBasedMatches.List request = games.turnBasedMatches().list(parameters ...)