using System; using System.Diagnostics.CodeAnalysis; using System.Reactive; namespace Octokit.Reactive { /// /// A client for GitHub's Repository Comments API. /// /// /// See the Repository Comments API documentation for more information. /// public interface IObservableRepositoryCommentsClient { /// /// Gets a single Repository Comment by number. /// /// http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment /// The owner of the repository /// The name of the repository /// The comment id [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] IObservable Get(string owner, string name, long commentId); /// /// Gets a single Repository Comment by number. /// /// http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment /// The Id of the repository /// The comment id [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] IObservable Get(long repositoryId, long commentId); /// /// Gets Commit Comments for a repository. /// /// http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository /// The owner of the repository /// The name of the repository IObservable GetAllForRepository(string owner, string name); /// /// Gets Commit Comments for a repository. /// /// http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository /// The Id of the repository IObservable GetAllForRepository(long repositoryId); /// /// Gets Commit Comments for a repository. /// /// http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository /// The owner of the repository /// The name of the repository /// Options to change the API response IObservable GetAllForRepository(string owner, string name, ApiOptions options); /// /// Gets Commit Comments for a repository. /// /// http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository /// The Id of the repository /// Options to change the API response IObservable GetAllForRepository(long repositoryId, ApiOptions options); /// /// Gets Commit Comments for a specified Commit. /// /// http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit /// The owner of the repository /// The name of the repository /// The sha of the commit IObservable GetAllForCommit(string owner, string name, string sha); /// /// Gets Commit Comments for a specified Commit. /// /// http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit /// The Id of the repository /// The sha of the commit IObservable GetAllForCommit(long repositoryId, string sha); /// /// Gets Commit Comments for a specified Commit. /// /// http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit /// The owner of the repository /// The name of the repository /// The sha of the commit /// Options to change the API response IObservable GetAllForCommit(string owner, string name, string sha, ApiOptions options); /// /// Gets Commit Comments for a specified Commit. /// /// http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit /// The Id of the repository /// The sha of the commit /// Options to change the API response IObservable GetAllForCommit(long repositoryId, string sha, ApiOptions options); /// /// Creates a new Commit Comment for a specified Commit. /// /// http://developer.github.com/v3/repos/comments/#create-a-commit-comment /// The owner of the repository /// The name of the repository /// The sha reference of commit /// The new comment to add to the commit IObservable Create(string owner, string name, string sha, NewCommitComment newCommitComment); /// /// Creates a new Commit Comment for a specified Commit. /// /// http://developer.github.com/v3/repos/comments/#create-a-commit-comment /// The Id of the repository /// The sha reference of commit /// The new comment to add to the commit IObservable Create(long repositoryId, string sha, NewCommitComment newCommitComment); /// /// Updates a specified Commit Comment. /// /// http://developer.github.com/v3/repos/comments/#update-a-commit-comment /// The owner of the repository /// The name of the repository /// The comment id /// The modified comment IObservable Update(string owner, string name, long commentId, string commentUpdate); /// /// Updates a specified Commit Comment. /// /// http://developer.github.com/v3/repos/comments/#update-a-commit-comment /// The Id of the repository /// The comment id /// The modified comment IObservable Update(long repositoryId, long commentId, string commentUpdate); /// /// Deletes the specified Commit Comment /// /// http://developer.github.com/v3/repos/comments/#delete-a-commit-comment /// The owner of the repository /// The name of the repository /// The comment id IObservable Delete(string owner, string name, long commentId); /// /// Deletes the specified Commit Comment /// /// http://developer.github.com/v3/repos/comments/#delete-a-commit-comment /// The Id of the repository /// The comment id IObservable Delete(long repositoryId, long commentId); } }