mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 04:40:54 +00:00
Add status code to ApiResponse
We weren't setting this before.
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user