mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
Rename to Octokit to be consistent with other API libs
GitHub is naming all of the libraries Octokit for their respective platforms
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Http
|
||||
{
|
||||
/// <summary>
|
||||
/// Wraps an IConnection and provides useful methods for an endpoint.
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public interface IApiConnection<T>
|
||||
{
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "It's fiiiine. It's fine. Trust us.")]
|
||||
Task<T> Get(Uri endpoint);
|
||||
Task<TOther> GetItem<TOther>(Uri endpoint);
|
||||
Task<string> GetHtml(Uri endpoint);
|
||||
Task<IReadOnlyCollection<T>> GetAll(Uri endpoint);
|
||||
Task<T> Create(Uri endpoint, object data);
|
||||
Task<T> Update(Uri endpoint, object data);
|
||||
Task Delete(Uri endpoint);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user