Skip to main content
Version: 5.7.0

CompleteMatch

Marks the given match as complete.

caution

Only a match whose current status is PENDING (at least one turn has occurred) or COMPLETE can be marked as COMPLETE

ServiceOperation
asyncMatchCOMPLETE

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.CompleteMatch(ownerId, matchId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}