added new overloads

This commit is contained in:
Alexander Efremov
2016-06-12 12:21:17 +07:00
parent 0aca4f8863
commit 931ba5ac9b
4 changed files with 128 additions and 0 deletions
@@ -18,6 +18,13 @@ namespace Octokit.Reactive
/// <returns>A <see cref="IObservable{User}"/> of <see cref="User"/> representing assignees of specified repository.</returns>
IObservable<User> GetAllForRepository(string owner, string name);
/// <summary>
/// Gets all the available assignees (owner + collaborators) to which issues may be assigned.
/// </summary>
/// <param name="repositoryId">The ID of the repository</param>
/// <returns>A <see cref="IObservable{User}"/> of <see cref="User"/> representing assignees of specified repository.</returns>
IObservable<User> GetAllForRepository(int repositoryId);
/// <summary>
/// Gets all the available assignees (owner + collaborators) to which issues may be assigned.
/// </summary>
@@ -27,6 +34,14 @@ namespace Octokit.Reactive
/// <returns>A <see cref="IObservable{User}"/> of <see cref="User"/> representing assignees of specified repository.</returns>
IObservable<User> GetAllForRepository(string owner, string name, ApiOptions options);
/// <summary>
/// Gets all the available assignees (owner + collaborators) to which issues may be assigned.
/// </summary>
/// <param name="repositoryId">The ID of the repository</param>
/// <param name="options">The options to change API's behaviour.</param>
/// <returns>A <see cref="IObservable{User}"/> of <see cref="User"/> representing assignees of specified repository.</returns>
IObservable<User> GetAllForRepository(int repositoryId, ApiOptions options);
/// <summary>
/// Checks to see if a user is an assignee for a repository.
/// </summary>
@@ -35,5 +50,13 @@ namespace Octokit.Reactive
/// <param name="assignee">Username of the prospective assignee</param>
/// <returns>A <see cref="IObservable{Bool}"/> of <see cref="bool"/> representing is a user is an assignee for a repository.</returns>
IObservable<bool> CheckAssignee(string owner, string name, string assignee);
/// <summary>
/// Checks to see if a user is an assignee for a repository.
/// </summary>
/// <param name="repositoryId">The ID of the repository</param>
/// <param name="assignee">Username of the prospective assignee</param>
/// <returns>A <see cref="IObservable{Bool}"/> of <see cref="bool"/> representing is a user is an assignee for a repository.</returns>
IObservable<bool> CheckAssignee(int repositoryId, string assignee);
}
}