using System;
using System.Diagnostics.CodeAnalysis;
using System.Reactive;
namespace Octokit.Reactive
{
public interface IObservableRepositoryHooksClient
{
///
/// Gets the list of hooks defined for a repository
///
/// See API documentation for more information.
///
IObservable GetAll(string owner, string repositoryName);
///
/// Gets a single hook defined for a repository by id
///
/// See API documentation for more information.
///
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keyworks")]
IObservable Get(string owner, string repositoryName, int hookId);
///
/// Creates a hook for a repository
///
/// See API documentation for more information.
///
IObservable Create(string owner, string repositoryName, NewRepositoryHook hook);
///
/// Edits a hook for a repository
///
/// See API documentation for more information.
///
IObservable Edit(string owner, string repositoryName, int hookId, EditRepositoryHook hook);
///
/// Tests a hook for a repository
///
/// See API documentation for more information.
/// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook
/// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.
///
IObservable Test(string owner, string repositoryName, int hookId);
///
/// This will trigger a ping event to be sent to the hook.
///
/// See API documentation for more information.
///
IObservable Ping(string owner, string repositoryName, int hookId);
///
/// Deletes a hook for a repository
///
///
///
///
/// See API documentation for more information.
///
IObservable Delete(string owner, string repositoryName, int hookId);
}
}