using Octokit.Internal; namespace Octokit { public class PullRequestReviewCommentCreate : RequestParameters { private readonly string _body; private readonly string _commitId; private readonly string _path; private readonly int _position; /// /// The text of the comment. /// public string Body { get { return _body; } } /// /// The SHA of the commit to comment on. /// public string CommitId { get { return _commitId; } } /// /// The relative path of the file to comment on. /// public string Path { get { return _path; } } /// /// The line index in the diff to comment on. /// public int Position { get { return _position; } } /// /// 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; } } }