using System;
using System.Diagnostics.CodeAnalysis;
namespace Octokit.Reactive
{
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);
///
/// 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 owner of the repository
/// The name of the repository
///
IObservable GetAll(string owner, string name);
///
/// 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 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 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);
///
/// 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);
}
}