using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Issue Comments API. /// /// /// See the Issue Comments API documentation for more information. /// public interface IIssueCommentsClient { /// /// Gets a single Issue Comment by id. /// /// http://developer.github.com/v3/issues/comments/#get-a-single-comment /// The owner of the repository /// The name of the repository /// The issue comment id [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] Task Get(string owner, string name, long commentId); /// /// Gets a single Issue Comment by id. /// /// http://developer.github.com/v3/issues/comments/#get-a-single-comment /// The Id of the repository /// The issue comment id [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] Task Get(long repositoryId, long commentId); /// /// 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 Task> GetAllForRepository(string owner, string name); /// /// Gets Issue Comments for a repository. /// /// http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository /// The Id of the repository Task> GetAllForRepository(long repositoryId); /// /// 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 /// Options for changing the API response Task> GetAllForRepository(string owner, string name, ApiOptions options); /// /// Gets Issue Comments for a repository. /// /// http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository /// The Id of the repository /// Options for changing the API response Task> GetAllForRepository(long repositoryId, ApiOptions options); /// /// 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 /// The sorting parameters Task> GetAllForRepository(string owner, string name, IssueCommentRequest request); /// /// Gets Issue Comments for a repository. /// /// http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository /// The Id of the repository /// The sorting parameters Task> GetAllForRepository(long repositoryId, IssueCommentRequest request); /// /// 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 /// The sorting parameters /// Options for changing the API response Task> GetAllForRepository(string owner, string name, IssueCommentRequest request, ApiOptions options); /// /// Gets Issue Comments for a repository. /// /// http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository /// The Id of the repository /// The sorting parameters /// Options for changing the API response Task> GetAllForRepository(long repositoryId, IssueCommentRequest request, ApiOptions options); /// /// 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 Task> GetAllForIssue(string owner, string name, int number); /// /// Gets Issue Comments for a specified Issue. /// /// http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue /// The Id of the repository /// The issue number Task> GetAllForIssue(long repositoryId, int number); /// /// 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 /// Options for changing the API response Task> GetAllForIssue(string owner, string name, int number, ApiOptions options); /// /// Gets Issue Comments for a specified Issue. /// /// http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue /// The Id of the repository /// The issue number /// Options for changing the API response Task> GetAllForIssue(long repositoryId, int number, ApiOptions options); /// /// 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 /// The sorting parameters Task> GetAllForIssue(string owner, string name, int number, IssueCommentRequest request); /// /// Gets Issue Comments for a specified Issue. /// /// http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue /// The Id of the repository /// The issue number /// The sorting parameters Task> GetAllForIssue(long repositoryId, int number, IssueCommentRequest request); /// /// 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 /// The sorting parameters /// Options for changing the API response Task> GetAllForIssue(string owner, string name, int number, IssueCommentRequest request, ApiOptions options); /// /// Gets Issue Comments for a specified Issue. /// /// http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue /// The Id of the repository /// The issue number /// The sorting parameters /// Options for changing the API response Task> GetAllForIssue(long repositoryId, int number, IssueCommentRequest request, ApiOptions options); /// /// 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 Task Create(string owner, string name, int number, string newComment); /// /// Creates a new Issue Comment for a specified Issue. /// /// http://developer.github.com/v3/issues/comments/#create-a-comment /// The Id of the repository /// The number of the issue /// The new comment to add to the issue Task Create(long repositoryId, 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 id /// The modified comment Task Update(string owner, string name, long commentId, string commentUpdate); /// /// Updates a specified Issue Comment. /// /// http://developer.github.com/v3/issues/comments/#edit-a-comment /// The Id of the repository /// The comment id /// The modified comment Task Update(long repositoryId, long commentId, string commentUpdate); /// /// Deletes the specified Issue Comment /// /// http://developer.github.com/v3/issues/comments/#delete-a-comment /// The owner of the repository /// The name of the repository /// The comment id Task Delete(string owner, string name, long commentId); /// /// Deletes the specified Issue Comment /// /// http://developer.github.com/v3/issues/comments/#delete-a-comment /// The Id of the repository /// The comment id Task Delete(long repositoryId, long commentId); } }