Exemple #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));
        }
Exemple #2
0
        public override void CallEvent(FirebaseException firebaseException)
        {
            var childAddedEventArgs = new ChildAddedEventArgs(firebaseException);

            @event(childAddedEventArgs);
        }