Implement IObservableAssigneesClient

This commit is contained in:
Keith Dahlby
2013-10-30 22:14:05 -05:00
parent f41a081792
commit 3fb3e8966c
3 changed files with 56 additions and 6 deletions

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace Octokit.Reactive
{
public interface IObservableAssigneesClient
{
/// <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>
IObservable<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>
IObservable<bool> CheckAssignee(string owner, string name, string assignee);
}
}