Add reactive overloads for ApiOptions in Assignees API.

This commit is contained in:
Devesh Khandelwal
2016-03-14 11:25:29 +05:30
parent 3618236be3
commit 829ba2c560
4 changed files with 113 additions and 0 deletions

View File

@@ -31,6 +31,21 @@ namespace Octokit.Reactive
return _connection.GetAndFlattenAllPages<User>(ApiUrls.Assignees(owner, name));
}
/// <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>
public IObservable<User> GetAllForRepository(string owner, string name, ApiOptions options)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(name, "name");
Ensure.ArgumentNotNull(options, "options");
return _connection.GetAndFlattenAllPages<User>(ApiUrls.Assignees(owner, name), options);
}
/// <summary>
/// Checks to see if a user is an assignee for a repository.
/// </summary>