using System;
using System.Diagnostics.CodeAnalysis;
namespace Octokit.Reactive
{
///
/// A client for GitHub's Git Commits API.
///
///
/// See the Git Commits API documentation for more information.
///
public interface IObservableCommitsClient
{
///
/// Gets a commit for a given repository by sha reference
///
///
/// http://developer.github.com/v3/git/commits/#get-a-commit
///
/// The owner of the repository
/// The name of the repository
/// Tha sha reference of the commit
///
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
IObservable Get(string owner, string name, string reference);
///
/// Gets a commit for a given repository by sha reference
///
///
/// http://developer.github.com/v3/git/commits/#get-a-commit
///
/// The ID of the repository
/// Tha sha reference of the commit
///
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
IObservable Get(int repositoryId, string reference);
///
/// Create a commit for a given repository
///
///
/// http://developer.github.com/v3/git/commits/#create-a-commit
///
/// The owner of the repository
/// The name of the repository
/// The commit to create
///
IObservable Create(string owner, string name, NewCommit commit);
///
/// Create a commit for a given repository
///
///
/// http://developer.github.com/v3/git/commits/#create-a-commit
///
/// The ID of the repository
/// The commit to create
///
IObservable Create(int repositoryId, NewCommit commit);
}
}