/// <summary> /// Cancel all active tickets the player is a member of in a given queue. /// </summary> public static void CancelAllMatchmakingTicketsForPlayer(CancelAllMatchmakingTicketsForPlayerRequest request, Action <CancelAllMatchmakingTicketsForPlayerResult> resultCallback, Action <PlayFabError> errorCallback, object customData = null, Dictionary <string, string> extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer; PlayFabHttp.MakeApiCall("/Match/CancelAllMatchmakingTicketsForPlayer", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context); }
void CancelMatchmaking() { var r = new CancelAllMatchmakingTicketsForPlayerRequest { Entity = _entityKey, QueueName = SelectedQueue }; PlayFabMultiplayerAPI.CancelAllMatchmakingTicketsForPlayer(r, (result) => Debug.Log("Cancelled matchmaking for player"), (error) => print(error.GenerateErrorReport())); }
/// <summary> /// Cancel all active tickets the player is a member of in a given queue. /// </summary> public void CancelAllMatchmakingTicketsForPlayer(CancelAllMatchmakingTicketsForPlayerRequest request, Action <CancelAllMatchmakingTicketsForPlayerResult> resultCallback, Action <PlayFabError> errorCallback, object customData = null, Dictionary <string, string> extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext; var callSettings = apiSettings ?? PlayFabSettings.staticSettings; if (!context.IsEntityLoggedIn()) { throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn, "Must be logged in to call this method"); } PlayFabHttp.MakeApiCall("/Match/CancelAllMatchmakingTicketsForPlayer", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); }
/// <summary> /// Cancel all active tickets the player is a member of in a given queue. /// </summary> public static void CancelAllMatchmakingTicketsForPlayer(CancelAllMatchmakingTicketsForPlayerRequest request, Action <CancelAllMatchmakingTicketsForPlayerResult> resultCallback, Action <PlayFabError> errorCallback, object customData = null, Dictionary <string, string> extraHeaders = null) { PlayFabHttp.MakeApiCall("/Match/CancelAllMatchmakingTicketsForPlayer", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders); }