Esempio n. 1
0
        private void OnComplete(operations.UserLogoutPost operation, HttpResponse response)
        {
            this.operation = operation;
            Action <operations.UserLogoutPost, HttpResponse> LocalCallback = Callback;

            OnCompletion(operation, response, BenChristensonApiMonitor.Instance); // this will free up the behavior to accept another call
            count -= 1;
            LocalCallback(operation, response);                                   // this is the project's custom OnComplete
            if (DestroyOnComplete)
            {
                this.Destroy();
            }
        }
Esempio n. 2
0
 private void OnFail(operations.UserLogoutPost operation, HttpResponse response)
 {
     responseData = null;
     Status       = ApiBehaviorStatus.FAILURE;
 }
Esempio n. 3
0
        public string responseData;                     // str of a message saying success

        private void OnSuccess(operations.UserLogoutPost operation, HttpResponse response)
        {
            responseData = operation.responseData;
            Status       = ApiBehaviorStatus.SUCCESS;
        }