using System; namespace Octokit.Reactive { /// /// A client for GitHub's Git Repository Status API. /// /// /// See the Repository Statuses API documentation for more information. /// public interface IObservableCommitStatusClient { /// /// Retrieves commit statuses for the specified reference. A reference can be a commit SHA, a branch name, or /// a tag name. /// /// Only users with pull access can see this. /// The owner of the repository /// The name of the repository /// The reference (SHA, branch name, or tag name) to list commits for IObservable GetAll(string owner, string name, string reference); /// /// Retrieves commit statuses for the specified reference. A reference can be a commit SHA, a branch name, or /// a tag name. /// /// Only users with pull access can see this. /// The Id of the repository /// The reference (SHA, branch name, or tag name) to list commits for IObservable GetAll(int repositoryId, string reference); /// /// Retrieves commit statuses for the specified reference. A reference can be a commit SHA, a branch name, or /// a tag name. /// /// Only users with pull access can see this. /// The owner of the repository /// The name of the repository /// The reference (SHA, branch name, or tag name) to list commits for /// Options for changing the API response IObservable GetAll(string owner, string name, string reference, ApiOptions options); /// /// Retrieves commit statuses for the specified reference. A reference can be a commit SHA, a branch name, or /// a tag name. /// /// Only users with pull access can see this. /// The Id of the repository /// The reference (SHA, branch name, or tag name) to list commits for /// Options for changing the API response IObservable GetAll(int repositoryId, string reference, ApiOptions options); /// /// Retrieves a combined view of statuses for the specified reference. A reference can be a commit SHA, a branch name, or /// a tag name. /// /// Only users with pull access can see this. /// The owner of the repository /// The name of the repository /// The reference (SHA, branch name, or tag name) to list commits for IObservable GetCombined(string owner, string name, string reference); /// /// Retrieves a combined view of statuses for the specified reference. A reference can be a commit SHA, a branch name, or /// a tag name. /// /// Only users with pull access can see this. /// The Id of the repository /// The reference (SHA, branch name, or tag name) to list commits for IObservable GetCombined(int repositoryId, string reference); /// /// Creates a commit status for the specified ref. /// /// The owner of the repository /// The name of the repository /// The reference (SHA, branch name, or tag name) to list commits for /// The commit status to create IObservable Create(string owner, string name, string reference, NewCommitStatus newCommitStatus); /// /// Creates a commit status for the specified ref. /// /// The Id of the repository /// The reference (SHA, branch name, or tag name) to list commits for /// The commit status to create IObservable Create(int repositoryId, string reference, NewCommitStatus newCommitStatus); } }