public virtual Result CreateResult(HttpResponseMessage httpResponseMessage, IContext context) { if (httpResponseMessage.IsSuccessStatusCode) { return(new Result(Reference)); } FirebaseException exception = FirebaseException.ForHttpStatusCode(httpResponseMessage.StatusCode); return(new Result(exception)); }
public override void CallEvent(FirebaseException firebaseException) { var childAddedEventArgs = new ChildAddedEventArgs(firebaseException); @event(childAddedEventArgs); }