Beispiel #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="error">An error</param>
 public FHResponse(FHException error)
 {
     this.rawResponse = null;
     this.statusCode = 0;
     this.error = error;
 }
Beispiel #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="statusCode">The http status code</param>
 /// <param name="rawResponse">The http response body</param>
 /// <param name="error">An error</param>
 public FHResponse(HttpStatusCode statusCode, string rawResponse, FHException error)
 {
     this.statusCode = statusCode;
     this.rawResponse = rawResponse;
     this.error = error;
 }
Beispiel #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="rawResponse">The http response body</param>
 /// <param name="error">An error</param>
 public FHResponse(string rawResponse, FHException error)
 {
     this.rawResponse = rawResponse;
     this.error = error;
 }
Beispiel #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="statusCode">Http status code</param>
 /// <param name="rawResponse">the response body</param>
 public FHResponse(HttpStatusCode statusCode, string rawResponse)
 {
     this.statusCode = statusCode;
     this.rawResponse = rawResponse;
     this.error = null;
 }