using System;
using System.Diagnostics.CodeAnalysis;
using System.Reactive;
namespace Octokit.Reactive
{
public interface IObservableIssueCommentsClient
{
///
/// Gets a single Issue Comment by id.
///
/// http://developer.github.com/v3/issues/comments/#get-a-single-comment
/// The owner of the repository
/// The name of the repository
/// The issue comment id
/// The s for the specified Issue Comment.
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
IObservable Get(string owner, string name, int id);
///
/// Gets Issue Comments for a repository.
///
/// http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository
/// The owner of the repository
/// The name of the repository
/// The list of s for the specified Repository.
IObservable GetAllForRepository(string owner, string name);
///
/// Gets Issue Comments for a specified Issue.
///
/// http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue
/// The owner of the repository
/// The name of the repository
/// The issue number
/// The list of s for the specified Issue.
IObservable GetAllForIssue(string owner, string name, int number);
///
/// Creates a new Issue Comment for a specified Issue.
///
/// http://developer.github.com/v3/issues/comments/#create-a-comment
/// The owner of the repository
/// The name of the repository
/// The number of the issue
/// The text of the new comment
/// The that was just created.
IObservable Create(string owner, string name, int number, string newComment);
///
/// Updates a specified Issue Comment.
///
/// http://developer.github.com/v3/issues/comments/#edit-a-comment
/// The owner of the repository
/// The name of the repository
/// The comment id
/// The modified comment
/// The that was just updated.
IObservable Update(string owner, string name, int id, string commentUpdate);
///
/// Deletes the specified Issue Comment
///
/// http://developer.github.com/v3/issues/comments/#delete-a-comment
/// The owner of the repository
/// The name of the repository
/// The comment id
///
IObservable Delete(string owner, string name, int id);
}
}