private bool Equals(JSendResponse <T> other) { return(Status == other.Status && object.Equals(Error, other.Error) && object.Equals(HttpResponse, other.HttpResponse) && EqualityComparer <T> .Default.Equals(GetDataOrDefault(), other.GetDataOrDefault()) && HasData.Equals(other.HasData)); }
public ResponseParsedContext(HttpRequestMessage httpRequest, HttpResponseMessage httpResponse, JSendResponse <TResponse> jsendResponse) { if (httpRequest == null) { throw new ArgumentNullException(nameof(httpRequest)); } if (httpResponse == null) { throw new ArgumentNullException(nameof(httpResponse)); } if (jsendResponse == null) { throw new ArgumentNullException(nameof(jsendResponse)); } HttpRequest = httpRequest; HttpResponse = httpResponse; JSendResponse = jsendResponse; }