added new overloads

This commit is contained in:
aedampir@gmail.com
2016-06-09 16:51:42 +07:00
parent 74feebbffb
commit 1e7804f6a2
4 changed files with 265 additions and 0 deletions

View File

@@ -21,6 +21,16 @@ namespace Octokit.Reactive
/// <returns>A <see cref="IObservable{Repository}"/> of <see cref="Repository"/>s representing forks of specified repository.</returns>
IObservable<Repository> GetAll(string owner, string name);
/// <summary>
/// Gets the list of forks defined for a repository
/// </summary>
/// <remarks>
/// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information.
/// </remarks>
/// <param name="repositoryId">The ID of the repository</param>
/// <returns>A <see cref="IObservable{Repository}"/> of <see cref="Repository"/>s representing forks of specified repository.</returns>
IObservable<Repository> GetAll(int repositoryId);
/// <summary>
/// Gets the list of forks defined for a repository
/// </summary>
@@ -33,6 +43,17 @@ namespace Octokit.Reactive
/// <returns>A <see cref="IObservable{Repository}"/> of <see cref="Repository"/>s representing forks of specified repository.</returns>
IObservable<Repository> GetAll(string owner, string name, ApiOptions options);
/// <summary>
/// Gets the list of forks defined for a repository
/// </summary>
/// <remarks>
/// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information.
/// </remarks>
/// <param name="repositoryId">The ID of the repository</param>
/// <param name="options">Options for changing the API response</param>
/// <returns>A <see cref="IObservable{Repository}"/> of <see cref="Repository"/>s representing forks of specified repository.</returns>
IObservable<Repository> GetAll(int repositoryId, ApiOptions options);
/// <summary>
/// Gets the list of forks defined for a repository
/// </summary>
@@ -45,6 +66,17 @@ namespace Octokit.Reactive
/// <returns>A <see cref="IObservable{Repository}"/> of <see cref="Repository"/>s representing forks of specified repository.</returns>
IObservable<Repository> GetAll(string owner, string name, RepositoryForksListRequest request);
/// <summary>
/// Gets the list of forks defined for a repository
/// </summary>
/// <remarks>
/// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information.
/// </remarks>
/// <param name="repositoryId">The ID of the repository</param>
/// <param name="request">Used to request and filter a list of repository forks</param>
/// <returns>A <see cref="IObservable{Repository}"/> of <see cref="Repository"/>s representing forks of specified repository.</returns>
IObservable<Repository> GetAll(int repositoryId, RepositoryForksListRequest request);
/// <summary>
/// Gets the list of forks defined for a repository
/// </summary>
@@ -58,6 +90,18 @@ namespace Octokit.Reactive
/// <returns>A <see cref="IObservable{Repository}"/> of <see cref="Repository"/>s representing forks of specified repository.</returns>
IObservable<Repository> GetAll(string owner, string name, RepositoryForksListRequest request, ApiOptions options);
/// <summary>
/// Gets the list of forks defined for a repository
/// </summary>
/// <remarks>
/// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information.
/// </remarks>
/// <param name="repositoryId">The ID of the repository</param>
/// <param name="request">Used to request and filter a list of repository forks</param>
/// <param name="options">Options for changing the API response</param>
/// <returns>A <see cref="IObservable{Repository}"/> of <see cref="Repository"/>s representing forks of specified repository.</returns>
IObservable<Repository> GetAll(int repositoryId, RepositoryForksListRequest request, ApiOptions options);
/// <summary>
/// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization.
/// </summary>
@@ -69,5 +113,16 @@ namespace Octokit.Reactive
/// <param name="fork">Used to fork a repository</param>
/// <returns>A <see cref="IObservable{Repository}"/> of <see cref="Repository"/> representing the created fork of specified repository.</returns>
IObservable<Repository> Create(string owner, string name, NewRepositoryFork fork);
/// <summary>
/// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization.
/// </summary>
/// <remarks>
/// See <a href="http://developer.github.com/v3/repos/forks/#create-a-fork">API documentation</a> for more information.
/// </remarks>
/// <param name="repositoryId">The ID of the repository</param>
/// <param name="fork">Used to fork a repository</param>
/// <returns>A <see cref="IObservable{Repository}"/> of <see cref="Repository"/> representing the created fork of specified repository.</returns>
IObservable<Repository> Create(int repositoryId, NewRepositoryFork fork);
}
}