Exemple #1
0
        private bool ResponseIsErrorResponse(HttpResponseMessage responseMessage, Stream responseStream, PVOutputBaseResponse result)
        {
            PVOutputApiError apiError = ProcessHttpErrorResults(responseMessage, responseStream);

            if (apiError != null)
            {
                result.IsSuccess = false;
                result.Error     = apiError;
                return(true);
            }
            return(false);
        }
Exemple #2
0
 /// <summary>
 /// Compares the response to <paramref name="other"/> for base equivalence.
 /// Api rate information is disgarded when comparing.
 /// <strong>Please note that the Value is not compared.</strong>
 /// </summary>
 /// <param name="other">Other response to compare.</param>
 /// <returns>True if both responses are equivalent.</returns>
 public override bool IsEquivalentTo(PVOutputBaseResponse other)
 => base.IsEquivalentTo(other) && HasValue == ((PVOutputResponse <TResponseContentType>)other).HasValue;