Skip to main content
Version: 5.7.0

StartMatch

Starts a match.

ServiceOperation
onewayMatchSTART_MATCH

Method Parameters

ParameterDescription
playerIdThe player to start a match with
rangeDeltaThe player rating range delta required for the match to start. If otherPlayerId has too high or low of a rating compared to the current player and range delta, a MATCH_RANGE_ERROR (40334) will be returned

Usage

http://localhost:3000
string playerId = "player";
int rangeDelta = 10;
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.OnewayMatchService.StartMatch(playerId, rangeDelta, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"playbackStreamId": "860e3009-c7e7-4fd1-8c5c-cc932fd4ec4a",
"initiatingPlayerId": "b67b2d73-1e8c-42e9-9be5-9c1879a48555",
"targetPlayerId": "0da5ad24-2341-42f8-acb5-57aa2dd4ae94",
"status": "STARTED",
"summary": {},
"initialSharedData": {
"entities": [],
"statistics": {}
},
"events": [],
"expiryTime": 1472743059453,
"createdAt": 1472742459459,
"updatedAt": 1472742459459
}
}