Skip to main content
Version: 6.0.0

UpdateMatchSummaryData

Allows the current player (only) to update Summary data without having to submit a whole turn.

ServiceOperation
asyncMatchUPDATE_SUMMARY

Method Parameters​

ParameterDescription
ownerIdMatch owner identifier
matchIdMatch identifier
versionGame state version to ensure turns are submitted once and in order
jsonSummaryJSON object provided by the caller that other players will see as a summary of the game when listing their games

Usage​

http://localhost:3000
string ownerId = "internalPlayerId";
string matchId = "matchId";
int version = 1;
string jsonSummary = "{\"Address\":\"North America\"}";
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.UpdateMatchSummaryData(ownerId, matchId, version, jsonSummary, successCallback, failureCallback);
JSON Response
{
"data": {
"gameId": "145677",
"ownerId": "2bd723c6-c2ec-4946-a1a8-02b7a38540ad",
"matchId": "1aac24b2-7976-4fd7-b7c6-44d7ae6d26a4",
"version": 2,
"players": [
{
"playerId": "2bd723c6-c2ec-4946-a1a8-02b7a38540ad",
"playerName": "UserA",
"pictureUrl": null,
"summaryFriendData": null
},
{
"playerId": "11c2dd4d-9ed1-416d-bd04-5228c1efafac",
"playerName": "UserB",
"pictureUrl": null,
"summaryFriendData": null
}
],
"status": {
"status": "PENDING",
"currentPlayer": "11c2dd4d-9ed1-416d-bd04-5228c1efafac"
},
"summary": {
"resources": 2564
},
"createdAt": 1442507219609,
"updatedAt": 1442507550372
},
"status": 200
}