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:
Haacked
2013-01-29 14:00:27 -08:00
parent 4370788c34
commit 997e955f38
124 changed files with 225 additions and 226 deletions
+24
View File
@@ -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);
}
}