private void OnComplete(operations.UserGet operation, HttpResponse response) { this.operation = operation; Action <operations.UserGet, 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(); } }
private void OnFail(operations.UserGet operation, HttpResponse response) { responseData = null; Status = ApiBehaviorStatus.FAILURE; }
public models.User responseData; // User dict of the current user private void OnSuccess(operations.UserGet operation, HttpResponse response) { responseData = operation.responseData; Status = ApiBehaviorStatus.SUCCESS; }