using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace Octokit.Reactive { public interface IObservableRepositoriesClient { /// /// Creates a new repository for the current user. /// /// A instance describing the new repository to create /// An instance for the created repository IObservable Create(NewRepository newRepository); /// /// Retrieves the for the specified owner and name. /// /// The owner of the repository. /// The name of the repository. /// A [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] IObservable Get(string owner, string name); /// /// Retrieves every that belongs to the current user. /// /// /// The default page size on GitHub.com is 30. /// /// Thrown if the client is not authenticated. /// A of . [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Makes a network request")] IObservable> GetAllForCurrent(); /// /// Retrieves every that belongs to the specified user. /// /// /// The default page size on GitHub.com is 30. /// /// A of . [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Makes a network request")] IObservable> GetAllForUser(string login); /// /// Retrieves every that belongs to the specified organization. /// /// /// The default page size on GitHub.com is 30. /// /// A of . [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Makes a network request")] IObservable> GetAllForOrg(string organization); /// /// Returns the HTML rendered README. /// /// The owner of the repository. /// The name of the repository. /// IObservable GetReadme(string owner, string name); } }