Skip to main content
Version: 5.7.0

GetShieldExpiry

Gets the shield expiry for the given player id. Passing in a null player id will return the shield expiry for the current player. The value returned is the time in UTC millis when the shield will expire.

ServiceOperation
matchMakingGET_SHIELD_EXPIRY

Method Parameters

ParameterDescription
playerIdThe player id or use null to retrieve for the current player

Usage

http://localhost:3000
string playerId = "player";
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.GetShieldExpiry(playerId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"shieldExpiry": 1433259734956
}
}