LoadMatchesResponse

public final class LoadMatchesResponse extends Object

Response object containing the data requested in a loadMatchesByStatus(GoogleApiClient, int, int[]) call.

Public Method Summary

void
close()
This method was deprecated. See release() for the correct method.
TurnBasedMatchBuffer
getCompletedMatches()
Get the completed matches returned from this request.
InvitationBuffer
getInvitations()
Get the invitations returned from this request.
TurnBasedMatchBuffer
getMyTurnMatches()
Get the "my turn" matches returned from this request.
TurnBasedMatchBuffer
getTheirTurnMatches()
Get the "their turn" matches returned from this request.
boolean
hasData()
Helper method to return whether or not this response contains any data.
void
release()
Release all the buffers stored in this response.

Inherited Method Summary

Public Methods

public void close ()

This method was deprecated.
See release() for the correct method.

Close all the buffers stored in this response. Note that using one of these buffers after calling this method will result in an error.

public TurnBasedMatchBuffer getCompletedMatches ()

Get the completed matches returned from this request. Note that if the original request did not include MATCH_TURN_STATUS_COMPLETE, this method will return null.

Returns
  • The matches returned from this request, or null if completed matches were not originally requested.

public InvitationBuffer getInvitations ()

Get the invitations returned from this request. Note that if the original request did not include MATCH_TURN_STATUS_INVITED, this method will return null.

Returns
  • The invitations returned from this request, or null if invitations were not originally requested.

public TurnBasedMatchBuffer getMyTurnMatches ()

Get the "my turn" matches returned from this request. Note that if the original request did not include MATCH_TURN_STATUS_MY_TURN, this method will return null.

Returns
  • The matches returned from this request, or null if "my turn" matches were not originally requested.

public TurnBasedMatchBuffer getTheirTurnMatches ()

Get the "their turn" matches returned from this request. Note that if the original request did not include MATCH_TURN_STATUS_THEIR_TURN, this method will return null.

Returns
  • The matches returned from this request, or null if "their turn" matches were not originally requested.

public boolean hasData ()

Helper method to return whether or not this response contains any data.

Returns
  • whether or not this response contains any non-empty buffers.

public void release ()

Release all the buffers stored in this response. Note that using one of these buffers after calling this method will result in an error.