Implement AssigneesClient

Implement client to list and check available assignees for a repository
This commit is contained in:
Haacked
2013-10-22 17:24:35 -07:00
parent 70b94187b3
commit e1d618dcaa
18 changed files with 309 additions and 10 deletions

View File

@@ -0,0 +1,24 @@
using System.Threading.Tasks;
namespace Octokit
{
public interface IAssigneesClient
{
/// <summary>
/// Gets all the available assignees (owner + collaborators) to which issues may be assigned.
/// </summary>
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <returns></returns>
Task<IReadOnlyList<User>> GetForRepository(string owner, string name);
/// <summary>
/// Checks to see if a user is an assignee for a repository.
/// </summary>
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="assignee">Username of the prospective assignee</param>
/// <returns></returns>
Task<bool> CheckAssignee(string owner, string name, string assignee);
}
}

View File

@@ -93,6 +93,7 @@
<Compile Include="Clients\ObservableRepositoriesClient.cs" />
<Compile Include="Clients\ObservableSshKeysClient.cs" />
<Compile Include="Clients\ObservableUsersClient.cs" />
<Compile Include="IAssigneesClient.cs" />
<Compile Include="IObservableNotificationsClient.cs" />
<Compile Include="Helpers\AuthorizationExtensions.cs" />
<Compile Include="Helpers\ConnectionExtensions.cs" />