using System; using System.Diagnostics.CodeAnalysis; using System.Reactive; namespace Octokit.Reactive { public interface IObservableGistCommentsClient { /// /// Gets a single comment by gist- and comment id. /// /// http://developer.github.com/v3/gists/comments/#get-a-single-comment /// The id of the gist /// The id of the comment /// IObservable{GistComment}. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] IObservable Get(string gistId, long commentId); /// /// Gets all comments for the gist with the specified id. /// /// http://developer.github.com/v3/gists/comments/#list-comments-on-a-gist /// The id of the gist /// IObservable{GistComment}. IObservable GetAllForGist(string gistId); /// /// Gets all comments for the gist with the specified id. /// /// http://developer.github.com/v3/gists/comments/#list-comments-on-a-gist /// The id of the gist /// Options for changing the API response /// IObservable{GistComment}. IObservable GetAllForGist(string gistId, ApiOptions options); /// /// Creates a comment for the gist with the specified id. /// /// http://developer.github.com/v3/gists/comments/#create-a-comment /// The id of the gist /// The body of the comment /// IObservable{GistComment}. IObservable Create(string gistId, string comment); /// /// Updates the comment with the specified gist- and comment id. /// /// http://developer.github.com/v3/gists/comments/#edit-a-comment /// The id of the gist /// The id of the comment /// The updated body of the comment /// IObservable{GistComment}. IObservable Update(string gistId, long commentId, string comment); /// /// Deletes the comment with the specified gist- and comment id. /// /// http://developer.github.com/v3/gists/comments/#delete-a-comment /// The id of the gist /// The id of the comment /// IObservable{Unit}. IObservable Delete(string gistId, long commentId); } }