using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Repository Comments API. /// /// /// See the Repository Comments API documentation for more information. /// public interface IRepositoryCommentsClient { /// /// 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")] Task Get(string owner, string name, int number); /// /// 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")] Task Get(int repositoryId, int number); /// /// 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 Task> 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 Task> GetAllForRepository(int 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 Task> 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 Task> GetAllForRepository(int 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 Task> 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 Task> GetAllForCommit(int 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 Task> 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 Task> GetAllForCommit(int 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 Task 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 Task Create(int 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 number /// The modified comment Task Update(string owner, string name, int number, 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 number /// The modified comment Task Update(int repositoryId, int number, 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 Task Delete(string owner, string name, int number); /// /// Deletes the specified Commit Comment /// /// http://developer.github.com/v3/repos/comments/#delete-a-commit-comment /// The ID of the repository /// The comment id Task Delete(int repositoryId, int number); } }