Flatten the observables for repositories

This commit is contained in:
Haacked
2013-10-15 21:00:48 -07:00
parent 1a028ac580
commit 04958410ea
15 changed files with 389 additions and 27 deletions
@@ -49,7 +49,7 @@ namespace Octokit.Reactive
/// <returns>A <see cref="IReadOnlyPagedCollection{Repository}"/> of <see cref="Repository"/>.</returns>
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate",
Justification = "Makes a network request")]
IObservable<IReadOnlyList<Repository>> GetAllForCurrent();
IObservable<Repository> GetAllForCurrent();
/// <summary>
/// Retrieves every <see cref="Repository"/> that belongs to the specified user.
@@ -60,7 +60,7 @@ namespace Octokit.Reactive
/// <returns>A <see cref="IReadOnlyPagedCollection{Repository}"/> of <see cref="Repository"/>.</returns>
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate",
Justification = "Makes a network request")]
IObservable<IReadOnlyList<Repository>> GetAllForUser(string login);
IObservable<Repository> GetAllForUser(string login);
/// <summary>
/// Retrieves every <see cref="Repository"/> that belongs to the specified organization.
@@ -71,7 +71,7 @@ namespace Octokit.Reactive
/// <returns>A <see cref="IReadOnlyPagedCollection{Repository}"/> of <see cref="Repository"/>.</returns>
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate",
Justification = "Makes a network request")]
IObservable<IReadOnlyList<Repository>> GetAllForOrg(string organization);
IObservable<Repository> GetAllForOrg(string organization);
/// <summary>
/// Returns the HTML rendered README.