Add status code to ApiResponse

We weren't setting this before.
This commit is contained in:
Haacked
2013-09-27 16:36:34 -07:00
parent 2a79109780
commit 0a5acdb0cb
5 changed files with 53 additions and 17 deletions
+8
View File
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Net;
namespace Octokit.Http
{
@@ -10,10 +11,17 @@ namespace Octokit.Http
Headers = new Dictionary<string, string>();
}
object IResponse.BodyAsObject
{
get { return BodyAsObject; }
set { BodyAsObject = (T)value; }
}
public string Body { get; set; }
public T BodyAsObject { get; set; }
public Dictionary<string, string> Headers { get; private set; }
public Uri ResponseUri { get; set; }
public ApiInfo ApiInfo { get; set; }
public HttpStatusCode StatusCode { get; set; }
}
}