Add ApiOption overloads to methods on I(Observable)OrganizationsClient (#1324)

This commit is contained in:
Alexander Efremov
2016-06-01 21:12:33 +07:00
committed by Brendan Forster
parent 921511f8d2
commit a29752d363
9 changed files with 468 additions and 26 deletions
@@ -32,6 +32,15 @@ namespace Octokit.Reactive
Justification = "Method makes a network request")]
IObservable<Organization> GetAllForCurrent();
/// <summary>
/// Returns all the organizations for the current user.
/// </summary>
/// <param name="options">Options for changing the API response</param>
/// <returns></returns>
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate",
Justification = "Method makes a network request")]
IObservable<Organization> GetAllForCurrent(ApiOptions options);
/// <summary>
/// Returns all the organizations for the specified user
/// </summary>
@@ -39,6 +48,14 @@ namespace Octokit.Reactive
/// <returns></returns>
IObservable<Organization> GetAll(string user);
/// <summary>
/// Returns all the organizations for the specified user
/// </summary>
/// <param name="user">The login for the user</param>
/// <param name="options">Options for changing the API response</param>
/// <returns></returns>
IObservable<Organization> GetAll(string user, ApiOptions options);
/// <summary>
/// Update the specified organization with data from <see cref="OrganizationUpdate"/>.
/// </summary>