mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
Add ApiOption overloads to methods on I(Observable)OrganizationsClient (#1324)
This commit is contained in:
committed by
Brendan Forster
parent
921511f8d2
commit
a29752d363
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user