Ejemplo n.º 1
0
        /// <summary>
        /// Cancel a matchmaking ticket.
        /// </summary>
        public static void CancelMatchmakingTicket(CancelMatchmakingTicketRequest request, Action <CancelMatchmakingTicketResult> resultCallback, Action <PlayFabError> errorCallback, object customData = null, Dictionary <string, string> extraHeaders = null)
        {
            var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;


            PlayFabHttp.MakeApiCall("/Match/CancelMatchmakingTicket", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context);
        }
Ejemplo n.º 2
0
    public void CancelMatchmaking()
    {
        leaveBtn.SetActive(false);
        var request = new CancelMatchmakingTicketRequest
        {
            TicketId  = ticketId,
            QueueName = PlayfabUtils.MATCHMAKING_NAME
        };

        PlayFabMultiplayerAPI.CancelMatchmakingTicket(request, OnTicketCancelled, OnError);
    }
        /// <summary>
        /// Cancel a matchmaking ticket.
        /// </summary>
        public void CancelMatchmakingTicket(CancelMatchmakingTicketRequest request, Action <CancelMatchmakingTicketResult> 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/CancelMatchmakingTicket", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Cancel a matchmaking ticket.
 /// </summary>
 public static void CancelMatchmakingTicket(CancelMatchmakingTicketRequest request, Action <CancelMatchmakingTicketResult> resultCallback, Action <PlayFabError> errorCallback, object customData = null, Dictionary <string, string> extraHeaders = null)
 {
     PlayFabHttp.MakeApiCall("/Match/CancelMatchmakingTicket", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders);
 }