IApiResponse no longer inherits IResponse

This commit is contained in:
Haacked
2015-01-01 20:37:52 -08:00
parent 09d5c236a4
commit 4c8bab20eb
42 changed files with 383 additions and 397 deletions
@@ -2,7 +2,6 @@
using System.Diagnostics.CodeAnalysis;
using System.Net;
using System.Runtime.Serialization;
using Octokit.Internal;
namespace Octokit
{
@@ -20,7 +19,7 @@ namespace Octokit
/// Constructs an instance of TwoFactorChallengeFailedException
/// </summary>
public TwoFactorChallengeFailedException() :
base(new ApiResponse<object> { StatusCode = HttpStatusCode.Unauthorized })
base(new Response { StatusCode = HttpStatusCode.Unauthorized })
{
}
@@ -29,7 +28,7 @@ namespace Octokit
/// </summary>
/// <param name="innerException">The inner exception</param>
public TwoFactorChallengeFailedException(Exception innerException)
: base(new ApiResponse<object> { StatusCode = HttpStatusCode.Unauthorized }, innerException)
: base(new Response { StatusCode = HttpStatusCode.Unauthorized }, innerException)
{
}