Skip to main content
Version: 5.7.0

FindPlayersWithAttributes

Finds matchmaking enabled players with additional attributes

ServiceOperation
matchMakingFIND_PLAYERS

Method Parameters

ParameterDescription
rangeDeltaHow close an opponents rating must be to yours
numMatchesThe maximum number of matches to return
jsonAttributesAttributes match criteria

Usage

http://localhost:3000
int rangeDelta = 10;
int numMatches = 1;
string jsonAttributes = "{\"key\":\"value\"}";
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.FindPlayersWithAttributes(rangeDelta, numMatches, jsonAttributes, 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
}
]
}
}