using System.Diagnostics; using Octokit.Internal; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class PullRequestReviewCommentCreate : RequestParameters { /// /// Creates a comment /// /// The text of the comment /// The SHA of the commit to comment on /// The relative path of the file to comment on /// The line index in the diff to comment on public PullRequestReviewCommentCreate(string body, string commitId, string path, int position) { Ensure.ArgumentNotNullOrEmptyString(body, "body"); Ensure.ArgumentNotNullOrEmptyString(commitId, "commitId"); Ensure.ArgumentNotNullOrEmptyString(path, "path"); Body = body; CommitId = commitId; Path = path; Position = position; } /// /// The text of the comment. /// public string Body { get; private set; } /// /// The SHA of the commit to comment on. /// public string CommitId { get; private set; } /// /// The relative path of the file to comment on. /// public string Path { get; private set; } /// /// The line index in the diff to comment on. /// public int Position { get; private set; } } }