using System;
using System.Diagnostics.CodeAnalysis;
namespace Octokit.Reactive
{
///
/// A client for GitHub's Repository Commits API.
///
///
/// See the Repository Commits API documentation for more information.
///
public interface IObservableRepositoryCommitsClient
{
///
/// Compare two references in a repository
///
/// The owner of the repository
/// The name of the repository
/// The reference to use as the base commit
/// The reference to use as the head commit
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "base")]
IObservable Compare(string owner, string name, string @base, string head);
///
/// Compare two references in a repository
///
/// The Id of the repository
/// The reference to use as the base commit
/// The reference to use as the head commit
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "base")]
IObservable Compare(int repositoryId, string @base, string head);
///
/// Gets all commits for a given repository
///
/// The owner of the repository
/// The name of the repository
/// The reference for the commit
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
IObservable Get(string owner, string name, string reference);
///
/// Gets all commits for a given repository
///
/// The Id of the repository
/// The reference for the commit
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
IObservable Get(int repositoryId, string reference);
///
/// Gets all commits for a given repository
///
/// The owner of the repository
/// The name of the repository
IObservable GetAll(string owner, string name);
///
/// Gets all commits for a given repository
///
/// The Id of the repository
IObservable GetAll(int repositoryId);
///
/// Gets all commits for a given repository
///
/// The owner of the repository
/// The name of the repository
/// Options for changing the API response
IObservable GetAll(string owner, string name, ApiOptions options);
///
/// Gets all commits for a given repository
///
/// The Id of the repository
/// Options for changing the API response
IObservable GetAll(int repositoryId, ApiOptions options);
///
/// Gets all commits for a given repository
///
/// The owner of the repository
/// The name of the repository
/// Used to filter list of commits returned
IObservable GetAll(string owner, string name, CommitRequest request);
///
/// Gets all commits for a given repository
///
/// The Id of the repository
/// Used to filter list of commits returned
IObservable GetAll(int repositoryId, CommitRequest request);
///
/// Gets all commits for a given repository
///
/// The owner of the repository
/// The name of the repository
/// Used to filter list of commits returned
/// Options for changing the API response
IObservable GetAll(string owner, string name, CommitRequest request, ApiOptions options);
///
/// Gets all commits for a given repository
///
/// The Id of the repository
/// Used to filter list of commits returned
/// Options for changing the API response
IObservable GetAll(int repositoryId, CommitRequest request, ApiOptions options);
///
/// Get the SHA-1 of a commit reference
///
/// The owner of the repository
/// The name of the repository
/// The repository reference
IObservable GetSha1(string owner, string name, string reference);
///
/// Get the SHA-1 of a commit reference
///
/// The Id of the repository
/// The repository reference
IObservable GetSha1(int repositoryId, string reference);
}
}