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