Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public override void CallEvent(FirebaseException firebaseException)
        {
            var childAddedEventArgs = new ChildAddedEventArgs(firebaseException);

            @event(childAddedEventArgs);
        }