using System.Collections.Generic; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Pull Request Review API. /// /// /// See the Review API documentation for more information. /// public interface IPullRequestReviewsClient { /// /// Gets reviews for a specified pull request. /// /// https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request /// The owner of the repository /// The name of the repository /// The pull request number Task> GetAll(string owner, string name, int number); /// /// Gets reviews for a specified pull request. /// /// https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request /// The Id of the repository /// The pull request number Task> GetAll(long repositoryId, int number); /// /// Gets reviews for a specified pull request. /// /// https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request /// The owner of the repository /// The name of the repository /// The pull request number /// Options for changing the API response Task> GetAll(string owner, string name, int number, ApiOptions options); /// /// Gets reviews for a specified pull request. /// /// https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request /// The Id of the repository /// The pull request number /// Options for changing the API response Task> GetAll(long repositoryId, int number, ApiOptions options); /// /// Gets a single pull request review by ID. /// /// https://developer.github.com/v3/pulls/reviews/#get-a-single-review /// The owner of the repository /// The name of the repository /// The pull request number /// The pull request review number Task Get(string owner, string name, int number, long reviewId); /// /// Gets a single pull request review by ID. /// /// https://developer.github.com/v3/pulls/reviews/#get-a-single-review /// The Id of the repository /// The pull request number /// The pull request review number Task Get(long repositoryId, int number, long reviewId); /// /// Creates a pull request review. /// /// https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review /// The owner of the repository /// The name of the repository /// The Pull Request number /// The review Task Create(string owner, string name, int number, PullRequestReviewCreate review); /// /// Creates a pull request review. /// /// https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review /// The Id of the repository /// The Pull Request number /// The review Task Create(long repositoryId, int number, PullRequestReviewCreate review); /// /// Deletes a pull request review. /// /// https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review /// The owner of the repository /// The name of the repository /// The pull request number /// The pull request review number Task Delete(string owner, string name, int number, long reviewId); /// /// Deletes a pull request review. /// /// https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review /// The Id of the repository /// The pull request number /// The pull request review number Task Delete(long repositoryId, int number, long reviewId); /// /// Submits a pull request review. /// /// https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review /// The owner of the repository /// The name of the repository /// The pull request number /// The pull request review number /// The message and event being submitted for the review Task Submit(string owner, string name, int number, long reviewId, PullRequestReviewSubmit submitMessage); /// /// Submits a pull request review. /// /// https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review /// The Id of the repository /// The pull request number /// The pull request review number /// The message and event being submitted for the review Task Submit(long repositoryId, int number, long reviewId, PullRequestReviewSubmit submitMessage); /// /// Dismisses a pull request review. /// /// https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review /// The owner of the repository /// The name of the repository /// The pull request number /// The pull request review number /// The message indicating why the review was dismissed Task Dismiss(string owner, string name, int number, long reviewId, PullRequestReviewDismiss dismissMessage); /// /// Dismisses a pull request review. /// /// https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review /// The Id of the repository /// The pull request number /// The pull request review number /// The message indicating why the review was dismissed Task Dismiss(long repositoryId, int number, long reviewId, PullRequestReviewDismiss dismissMessage); /// /// Lists comments for a single review /// /// https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review /// The owner of the repository /// The name of the repository /// The pull request number /// The pull request review number Task> GetAllComments(string owner, string name, int number, long reviewId); /// /// Lists comments for a single review /// /// https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review /// The Id of the repository /// The pull request number /// The pull request review number Task> GetAllComments(long repositoryId, int number, long reviewId); /// /// Lists comments for a single review /// /// https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review /// The owner of the repository /// The name of the repository /// The pull request number /// The pull request review number /// Options for changing the API response Task> GetAllComments(string owner, string name, int number, long reviewId, ApiOptions options); /// /// Lists comments for a single review /// /// https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review /// The Id of the repository /// The pull request number /// The pull request review number /// Options for changing the API response Task> GetAllComments(long repositoryId, int number, long reviewId, ApiOptions options); } }