mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 11:05:56 +00:00
IApiResponse no longer inherits IResponse
This commit is contained in:
@@ -55,7 +55,7 @@ namespace Octokit
|
||||
Ensure.ArgumentNotNull(uri, "uri");
|
||||
|
||||
var response = await Connection.Get<T>(uri, parameters, null).ConfigureAwait(false);
|
||||
return response.BodyAsObject;
|
||||
return response.Body;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -73,7 +73,7 @@ namespace Octokit
|
||||
Ensure.ArgumentNotNull(accepts, "accepts");
|
||||
|
||||
var response = await Connection.Get<T>(uri, parameters, accepts).ConfigureAwait(false);
|
||||
return response.BodyAsObject;
|
||||
return response.Body;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -183,7 +183,7 @@ namespace Octokit
|
||||
data,
|
||||
accepts,
|
||||
contentType).ConfigureAwait(false);
|
||||
return response.BodyAsObject;
|
||||
return response.Body;
|
||||
}
|
||||
|
||||
public async Task<T> Post<T>(Uri uri, object data, string accepts, string contentType, TimeSpan timeout)
|
||||
@@ -197,7 +197,7 @@ namespace Octokit
|
||||
accepts,
|
||||
contentType,
|
||||
timeout).ConfigureAwait(false);
|
||||
return response.BodyAsObject;
|
||||
return response.Body;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -227,7 +227,7 @@ namespace Octokit
|
||||
|
||||
var response = await Connection.Put<T>(uri, data).ConfigureAwait(false);
|
||||
|
||||
return response.BodyAsObject;
|
||||
return response.Body;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -247,7 +247,7 @@ namespace Octokit
|
||||
|
||||
var response = await Connection.Put<T>(uri, data, twoFactorAuthenticationCode).ConfigureAwait(false);
|
||||
|
||||
return response.BodyAsObject;
|
||||
return response.Body;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -277,7 +277,7 @@ namespace Octokit
|
||||
|
||||
var response = await Connection.Patch<T>(uri, data).ConfigureAwait(false);
|
||||
|
||||
return response.BodyAsObject;
|
||||
return response.Body;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -297,7 +297,7 @@ namespace Octokit
|
||||
|
||||
var response = await Connection.Patch<T>(uri, data, accepts).ConfigureAwait(false);
|
||||
|
||||
return response.BodyAsObject;
|
||||
return response.Body;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -350,7 +350,7 @@ namespace Octokit
|
||||
|
||||
if (response.StatusCode == HttpStatusCode.OK)
|
||||
{
|
||||
return response.BodyAsObject;
|
||||
return response.Body;
|
||||
}
|
||||
throw new ApiException("Queued Operations expect status codes of Accepted or OK.",response.StatusCode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user