using System.Collections.Generic;
using System.Net;
namespace Octokit
{
///
/// A response from an API call that includes the deserialized object instance.
///
public interface IApiResponse
{
///
/// Object deserialized from the JSON response body.
///
T Body { get; }
///
/// The original non-deserialized http response.
///
IResponse HttpResponse { get; }
}
///
/// Represents a generic HTTP response
///
public interface IResponse
{
///
/// Raw response body. Typically a string, but when requesting images, it will be a byte array.
///
object Body { get; }
///
/// Information about the API.
///
IReadOnlyDictionary Headers { get; }
///
/// Information about the API response parsed from the response headers.
///
ApiInfo ApiInfo { get; }
///
/// The response status code.
///
HttpStatusCode StatusCode { get; }
///
/// The content type of the response.
///
string ContentType { get; }
}
}