Skip to main content
Version: 5.7.0

ReadMatchHistory

Returns the match history of the given match.

ServiceOperation
asyncMatchREAD_MATCH_HISTORY

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.ReadMatchHistory(ownerId, matchId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"gameId": "14577",
"ownerId": "2bd32bc6-c2ec-4916-a1a8-02b7a38540ad",
"matchId": "1aac24b2-7976-4fd7-b7c6-44d32e6d26a4",
"turns": [
{
"playerId": "2bd32bc6-c2ec-4916-a1a8-02b7a38540ad",
"matchState": {
"color": "red"
},
"createdAt": 1442507319697
},
{
"playerId": "11c9324d-9ed1-416d-b124-5228c1efafac",
"matchState": {},
"createdAt": 1442507703667
}
]
}
}