/// <summary> /// Constructor used if an invalid response is returned by the api factory /// </summary> /// <param name="baseApiResponse">Base API Response</param> public BreedListAPIResponse(BaseApiResponse baseApiResponse) : base(baseApiResponse.RawResponse, baseApiResponse.RawResponseBody, baseApiResponse.Status, baseApiResponse.Message) { if (baseApiResponse.Status.GetStatus() != ResponseStatus.Status.CriticallyInvalid) { Status.SetStatus(ResponseStatus.Status.Error); } _breedList = new List <Breed>(); }
/// <summary> /// Constructor used if an invalid response is returned by the api factory /// </summary> /// <param name="baseApiResponse">Base API Response</param> public ImageAPIResponse(BaseApiResponse baseApiResponse) : base(baseApiResponse.RawResponse, baseApiResponse.RawResponseBody, baseApiResponse.Status, baseApiResponse.Message) { if (baseApiResponse.Status.GetStatus() != ResponseStatus.Status.CriticallyInvalid) { Status.SetStatus(ResponseStatus.Status.Error); } _image = new Image(""); }