mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 02:45:32 +00:00
Implementing the rest of the Notifications API
This commit is contained in:
committed by
Brendan Forster
parent
45e48e26f7
commit
f45fc8e3ff
@@ -257,6 +257,25 @@ namespace Octokit
|
||||
return Run<T>(request,cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an asynchronous HTTP PATCH request.
|
||||
/// </summary>
|
||||
/// <param name="uri">URI endpoint to send request to</param>
|
||||
/// <returns><seealso cref="IResponse"/> representing the received HTTP response</returns>
|
||||
public async Task<HttpStatusCode> Patch(Uri uri)
|
||||
{
|
||||
Ensure.ArgumentNotNull(uri, "uri");
|
||||
|
||||
var request = new Request
|
||||
{
|
||||
Method = HttpVerb.Patch,
|
||||
BaseAddress = BaseAddress,
|
||||
Endpoint = uri
|
||||
};
|
||||
var response = await Run<object>(request, CancellationToken.None);
|
||||
return response.StatusCode;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an asynchronous HTTP PUT request that expects an empty response.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user