Skip to main content
Version: 5.7.0

ReadMatch

Returns the current state of the given match.

ServiceOperation
asyncMatchREAD_MATCH

Method Parameters

ParameterDescription
ownerIdMatch owner identifier
matchIdMatch identifier

Usage

http://localhost:3000
string ownerId = "internalPlayerId";
string matchId = "matchId";
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.ReadMatch(ownerId, matchId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"gameId": "11004",
"ownerId": "35e8698f-b14d-48ae-a37c-4b2962308b8d",
"matchId": "cfa752d6-d408-4671-9603-b22bf55d5379",
"version": 1,
"players": [{
"playerId": "35e8698f-b14d-48ae-a37c-4b2962308b8d",
"playerName": "",
"pictureUrl": null,
"summaryFriendData": null
}, {
"playerId": "e84c16ea-bd62-4307-83f9-d32f8ac18bca",
"playerName": "",
"pictureUrl": null,
"summaryFriendData": null
}],
"status": {
"status": "PENDING",
"currentPlayer": "e84c16ea-bd62-4307-83f9-d32f8ac18bca"
},
"summary": null,
"statistics": {},
"matchState": {
"testKey": "testValue"
},
"createdAt": 1472293357985,
"updatedAt": 1472293357996
}
}