public class Games.TurnBasedMatches
extends java.lang.Object
| 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(java.lang.String matchId)
Cancel a turn-based match.
|
Games.TurnBasedMatches.Create |
create(TurnBasedMatchCreateRequest content)
Create a turn-based match.
|
Games.TurnBasedMatches.Decline |
decline(java.lang.String matchId)
Decline an invitation to play a turn-based match.
|
Games.TurnBasedMatches.Dismiss |
dismiss(java.lang.String matchId)
Dismiss a turn-based match from the match list.
|
Games.TurnBasedMatches.Finish |
finish(java.lang.String matchId,
TurnBasedMatchResults content)
Finish a turn-based match.
|
Games.TurnBasedMatches.Get |
get(java.lang.String matchId)
Get the data for a turn-based match.
|
Games.TurnBasedMatches.Join |
join(java.lang.String matchId)
Join a turn-based match.
|
Games.TurnBasedMatches.Leave |
leave(java.lang.String matchId)
Leave a turn-based match when it is not the current player's turn, without canceling the match.
|
Games.TurnBasedMatches.LeaveTurn |
leaveTurn(java.lang.String matchId,
java.lang.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(java.lang.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(java.lang.String matchId,
TurnBasedMatchTurn content)
Commit the results of a player turn.
|
public Games.TurnBasedMatches.Cancel cancel(java.lang.String matchId) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.java.io.IOExceptionpublic Games.TurnBasedMatches.Create create(TurnBasedMatchCreateRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the TurnBasedMatchCreateRequestjava.io.IOExceptionpublic Games.TurnBasedMatches.Decline decline(java.lang.String matchId) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.java.io.IOExceptionpublic Games.TurnBasedMatches.Dismiss dismiss(java.lang.String matchId) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.java.io.IOExceptionpublic Games.TurnBasedMatches.Finish finish(java.lang.String matchId, TurnBasedMatchResults content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.content - the TurnBasedMatchResultsjava.io.IOExceptionpublic Games.TurnBasedMatches.Get get(java.lang.String matchId) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.java.io.IOExceptionpublic Games.TurnBasedMatches.Join join(java.lang.String matchId) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.java.io.IOExceptionpublic Games.TurnBasedMatches.Leave leave(java.lang.String matchId) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.java.io.IOExceptionpublic Games.TurnBasedMatches.LeaveTurn leaveTurn(java.lang.String matchId, java.lang.Integer matchVersion) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.matchVersion - The version of the match being updated.java.io.IOExceptionpublic Games.TurnBasedMatches.List list() throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.java.io.IOExceptionpublic Games.TurnBasedMatches.Rematch rematch(java.lang.String matchId) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.java.io.IOExceptionpublic Games.TurnBasedMatches.Sync sync() throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.java.io.IOExceptionpublic Games.TurnBasedMatches.TakeTurn takeTurn(java.lang.String matchId, TurnBasedMatchTurn content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.matchId - The ID of the match.content - the TurnBasedMatchTurnjava.io.IOException