mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
Implement AssigneesClient
Implement client to list and check available assignees for a repository
This commit is contained in:
24
Octokit.Reactive/IAssigneesClient.cs
Normal file
24
Octokit.Reactive/IAssigneesClient.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user