Summary: Methods | Inherited Methods | [Expand All]
public final class

# LoadMatchesResponse

extends Object

java.lang.Object
↳ | com.google.android.gms.games.multiplayer.turnbased.LoadMatchesResponse

## Class Overview

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

## Summary

Public Methods
void | close() This method is 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.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Methods

#### public void close ()

This method is 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.