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
+19
View File
@@ -43,6 +43,16 @@ namespace Octokit
Justification = "Method makes a network request")]
Task<IReadOnlyList<Organization>> GetAllForCurrent();
/// <summary>
/// Returns all <see cref="Organization" />s for the current user.
/// </summary>
/// <param name="options">Options for changing the API response</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns>A list of the current user's <see cref="Organization"/>s.</returns>
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate",
Justification = "Method makes a network request")]
Task<IReadOnlyList<Organization>> GetAllForCurrent(ApiOptions options);
/// <summary>
/// Returns all <see cref="Organization" />s for the specified user.
/// </summary>
@@ -50,6 +60,15 @@ namespace Octokit
/// <returns>A list of the specified user's <see cref="Organization"/>s.</returns>
Task<IReadOnlyList<Organization>> GetAll(string user);
/// <summary>
/// Returns all <see cref="Organization" />s for the specified user.
/// </summary>
/// <param name="user">The login of the user</param>
/// <param name="options">Options for changing the API response</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns>A list of the specified user's <see cref="Organization"/>s.</returns>
Task<IReadOnlyList<Organization>> GetAll(string user, ApiOptions options);
/// <summary>
/// Update the specified organization with data from <see cref="OrganizationUpdate"/>.
/// </summary>