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
+9 -2
View File
@@ -1,14 +1,21 @@
using System;
using System.Collections.Generic;
using System.Net;
namespace Octokit.Http
{
public interface IResponse<T>
public interface IResponse<T> : IResponse
{
new T BodyAsObject { get; set; }
}
public interface IResponse
{
object BodyAsObject { get; set; }
string Body { get; set; }
T BodyAsObject { get; set; }
Dictionary<string, string> Headers { get; }
Uri ResponseUri { get; set; }
ApiInfo ApiInfo { get; set; }
HttpStatusCode StatusCode { get; set; }
}
}