mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-31 02:05:39 +00:00
Added remaining methods on interface
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
public interface IReferencesClient
|
||||
{
|
||||
Task<Reference> Get(string owner, string name, string reference);
|
||||
|
||||
Task<IReadOnlyList<Reference>> GetAll(string owner, string name, string subNamespace = null);
|
||||
|
||||
Task<Reference> Create(string owner, string name, NewReference reference);
|
||||
|
||||
Task<Reference> Update(string owner, string name, string reference, string sha, bool force = false);
|
||||
|
||||
Task Delete(string owner, string name, string reference);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
@@ -17,5 +18,25 @@ namespace Octokit
|
||||
|
||||
return ApiConnection.Get<Reference>(ApiUrls.Reference(owner, name, reference));
|
||||
}
|
||||
|
||||
public Task<IReadOnlyList<Reference>> GetAll(string owner, string name, string subNamespace = null)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public Task<Reference> Create(string owner, string name, NewReference reference)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public Task<Reference> Update(string owner, string name, string reference, string sha, bool force = false)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public Task Delete(string owner, string name, string reference)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Octokit
|
||||
{
|
||||
public class NewReference
|
||||
{
|
||||
public string Ref { get; set; }
|
||||
public string Sha { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -84,6 +84,7 @@
|
||||
<Compile Include="Models\Request\NewCommit.cs" />
|
||||
<Compile Include="Models\Request\NewCommitStatus.cs" />
|
||||
<Compile Include="Models\Request\NewMilestone.cs" />
|
||||
<Compile Include="Models\Request\NewReference.cs" />
|
||||
<Compile Include="Models\Request\NewTag.cs" />
|
||||
<Compile Include="Models\Request\NewTree.cs" />
|
||||
<Compile Include="Models\Request\NewTreeItem.cs" />
|
||||
|
||||
@@ -163,6 +163,7 @@
|
||||
<Compile Include="Models\Request\NewCommitStatus.cs" />
|
||||
<Compile Include="Models\Request\NewIssue.cs" />
|
||||
<Compile Include="Models\Request\NewMilestone.cs" />
|
||||
<Compile Include="Models\Request\NewReference.cs" />
|
||||
<Compile Include="Models\Request\NewRepository.cs" />
|
||||
<Compile Include="Models\Request\NewTag.cs" />
|
||||
<Compile Include="Models\Request\NewTree.cs" />
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
<Compile Include="Clients\IGistsClient.cs" />
|
||||
<Compile Include="Clients\IReferencesClient.cs" />
|
||||
<Compile Include="Clients\ReferencesClient.cs" />
|
||||
<Compile Include="Models\Request\NewReference.cs" />
|
||||
<Compile Include="Models\Response\BlobReference.cs" />
|
||||
<Compile Include="Clients\IBlobsClient.cs" />
|
||||
<Compile Include="Models\Request\NewBlob.cs" />
|
||||
|
||||
Reference in New Issue
Block a user