Skip to main content
Version: 5.7.0

FindMatches

Returns all matches that are NOT in a COMPLETE state for which the player is involved.

ServiceOperation
asyncMatchFIND_MATCHES

Usage

http://localhost:3000
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.AsyncMatchService.FindMatches(successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"results": [
{
"gameId": "123456",
"ownerId": "7630f98e-1236-4ead-88ee-27ce63b2db2c",
"matchId": "97c8d087-40d8-45c2-aa2b-6d0d83424ec5",
"version": 1,
"players": [
{
"playerId": "7630f98e-13b6-4ead-88ee-27ce63b2db2c",
"playerName": "UserA-122217922",
"pictureUrl": null,
"summaryFriendData": null
},
{
"playerId": "b28ff14a-364a-40b3-ac4e-d2b23983519c",
"playerName": "UserC-338593317",
"pictureUrl": null,
"summaryFriendData": null
}
],
"status": {
"status": "PENDING",
"currentPlayer": "efab2d0b-90a1-48cf-8678-ae81d7aaed89"
},
"summary": null,
"createdAt": 1442586020180,
"updatedAt": 1442586020188
}
]
}
}