Skip to main content
Version: 5.7.0

AbandonMatch

Marks the given match as abandoned and sets the matchState to EXPIRED.

caution

Only a match whose current status is NOT_STARTED, PENDING or EXPIRED can be abandoned (status set to EXPIRED)

ServiceOperation
asyncMatchABANDON

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