Skip to main content
Version: 5.7.0

FindPlayersUsingFilter

Finds matchmaking enabled players using a cloud code filter.

ServiceOperation
matchMakingFIND_PLAYERS_USING_FILTER

Method Parameters

ParameterDescription
rangeDeltaHow close an opponents rating must be to yours
numMatchesThe maximum number of matches to return
jsonExtraParmsParameters to be passed to the filter

Usage

http://localhost:3000
int rangeDelta = 10;
int numMatches = 1;
string jsonExtraParams = "{\"parm1\":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.MatchMakingService.FindPlayersUsingFilter(rangeDelta, numMatches, jsonExtraParams, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"matchesFound": [
{
"pictureUrl": null,
"playerName": "UserC-1239941736",
"playerId": "c2b88d3f-2s32-43a6-9a71-0f0157e46505",
"playerRating": 0,
"summaryFriendData": null
},
{
"pictureUrl": null,
"playerName": "UserA-914307852",
"playerId": "96afefc7-02b2-4148-8d36-c62855d917b6",
"playerRating": 0,
"summaryFriendData": null
}
]
}
}