| Modifier and Type | Class and Description |
|---|---|
class |
Games.TurnBasedMatches.Cancel |
class |
Games.TurnBasedMatches.Create |
class |
Games.TurnBasedMatches.Decline |
class |
Games.TurnBasedMatches.Dismiss |
class |
Games.TurnBasedMatches.Finish |
class |
Games.TurnBasedMatches.Get |
class |
Games.TurnBasedMatches.Join |
class |
Games.TurnBasedMatches.Leave |
class |
Games.TurnBasedMatches.LeaveTurn |
class |
Games.TurnBasedMatches.List |
class |
Games.TurnBasedMatches.Rematch |
class |
Games.TurnBasedMatches.Sync |
class |
Games.TurnBasedMatches.TakeTurn |
| Constructor and Description |
|---|
Games.TurnBasedMatches() |
| Modifier and Type | Method and Description |
|---|---|
Games.TurnBasedMatches.Cancel |
cancel(String matchId)
Cancel a turn-based match.
|
Games.TurnBasedMatches.Create |
create(TurnBasedMatchCreateRequest content)
Create a turn-based match.
|
Games.TurnBasedMatches.Decline |
decline(String matchId)
Decline an invitation to play a turn-based match.
|
Games.TurnBasedMatches.Dismiss |
dismiss(String matchId)
Dismiss a turn-based match from the match list.
|
Games.TurnBasedMatches.Finish |
finish(String matchId,
TurnBasedMatchResults content)
Finish a turn-based match.
|
Games.TurnBasedMatches.Get |
get(String matchId)
Get the data for a turn-based match.
|
Games.TurnBasedMatches.Join |
join(String matchId)
Join a turn-based match.
|
Games.TurnBasedMatches.Leave |
leave(String matchId)
Leave a turn-based match when it is not the current player's turn, without canceling the match.
|
Games.TurnBasedMatches.LeaveTurn |
leaveTurn(String matchId,
Integer matchVersion)
Leave a turn-based match during the current player's turn, without canceling the match.
|
Games.TurnBasedMatches.List |
list()
Returns turn-based matches the player is or was involved in.
|
Games.TurnBasedMatches.Rematch |
rematch(String matchId)
Create a rematch of a match that was previously completed, with the same participants.
|
Games.TurnBasedMatches.Sync |
sync()
Returns turn-based matches the player is or was involved in that changed since the last sync
call, with the least recent changes coming first.
|
Games.TurnBasedMatches.TakeTurn |
takeTurn(String matchId,
TurnBasedMatchTurn content)
Commit the results of a player turn.
|
public Games.TurnBasedMatches.Cancel cancel(String matchId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.IOExceptionpublic Games.TurnBasedMatches.Create create(TurnBasedMatchCreateRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the TurnBasedMatchCreateRequestIOExceptionpublic Games.TurnBasedMatches.Decline decline(String matchId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.IOExceptionpublic Games.TurnBasedMatches.Dismiss dismiss(String matchId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.IOExceptionpublic Games.TurnBasedMatches.Finish finish(String matchId, TurnBasedMatchResults content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.content - the TurnBasedMatchResultsIOExceptionpublic Games.TurnBasedMatches.Get get(String matchId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.IOExceptionpublic Games.TurnBasedMatches.Join join(String matchId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.IOExceptionpublic Games.TurnBasedMatches.Leave leave(String matchId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.IOExceptionpublic Games.TurnBasedMatches.LeaveTurn leaveTurn(String matchId, Integer matchVersion) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.matchVersion - The version of the match being updated.IOExceptionpublic Games.TurnBasedMatches.List list() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.IOExceptionpublic Games.TurnBasedMatches.Rematch rematch(String matchId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.IOExceptionpublic Games.TurnBasedMatches.Sync sync() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.IOExceptionpublic Games.TurnBasedMatches.TakeTurn takeTurn(String matchId, TurnBasedMatchTurn content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.content - the TurnBasedMatchTurnIOException