Beispiel #1
0
        private void OnComplete(operations.UserPost operation, HttpResponse response)
        {
            this.operation = operation;
            Action <operations.UserPost, 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();
            }
        }
Beispiel #2
0
 private void OnFail(operations.UserPost operation, HttpResponse response)
 {
     responseData = null;
     Status       = ApiBehaviorStatus.FAILURE;
 }
Beispiel #3
0
        public models.User responseData;        // User dict of the user updated

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