diff --git a/Octokit.Reactive/Clients/IObservableIssueCommentsClient.cs b/Octokit.Reactive/Clients/IObservableIssueCommentsClient.cs new file mode 100644 index 00000000..ae1797b0 --- /dev/null +++ b/Octokit.Reactive/Clients/IObservableIssueCommentsClient.cs @@ -0,0 +1,63 @@ + + +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); + } +} diff --git a/Octokit.Reactive/Octokit.Reactive.csproj b/Octokit.Reactive/Octokit.Reactive.csproj index e52fe16b..3f4aa361 100644 --- a/Octokit.Reactive/Octokit.Reactive.csproj +++ b/Octokit.Reactive/Octokit.Reactive.csproj @@ -80,6 +80,7 @@ +