using System; using System.Diagnostics.CodeAnalysis; namespace Octokit.Reactive.Clients { public interface IObservableIssueCommentsClient { /// /// Gets a single Issue Comment by number. /// /// http://developer.github.com/v3/issues/comments/#get-a-single-comment /// The owner of the repository /// The name of the repository /// The issue number /// [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] IObservable Get(string owner, string name, int number); /// /// 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 /// IObservable> GetForRepository(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 /// IObservable> GetForIssue(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 new comment to add to the issue /// 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 number /// The modified comment /// IObservable Update(string owner, string name, int number, string commentUpdate); } }