diff --git a/Octokit/Models/Request/PullRequestReviewCommentCreate.cs b/Octokit/Models/Request/PullRequestReviewCommentCreate.cs index b3f96441..2a877a6f 100644 --- a/Octokit/Models/Request/PullRequestReviewCommentCreate.cs +++ b/Octokit/Models/Request/PullRequestReviewCommentCreate.cs @@ -4,31 +4,6 @@ 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 /// @@ -42,10 +17,32 @@ namespace Octokit Ensure.ArgumentNotNullOrEmptyString(commitId, "commitId"); Ensure.ArgumentNotNullOrEmptyString(path, "path"); - _body = body; - _commitId = commitId; - _path = path; - _position = position; + 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; } + + } } diff --git a/Octokit/Models/Request/PullRequestReviewCommentEdit.cs b/Octokit/Models/Request/PullRequestReviewCommentEdit.cs index d257ebf1..933cafce 100644 --- a/Octokit/Models/Request/PullRequestReviewCommentEdit.cs +++ b/Octokit/Models/Request/PullRequestReviewCommentEdit.cs @@ -3,13 +3,6 @@ namespace Octokit { public class PullRequestReviewCommentEdit : RequestParameters { - private readonly string _body; - - /// - /// The text of the comment. - /// - public string Body { get { return _body; }} - /// /// Creates an edit to a comment /// @@ -18,7 +11,12 @@ namespace Octokit { Ensure.ArgumentNotNullOrEmptyString(body, "body"); - _body = body; + Body = body; } + + /// + /// The text of the comment. + /// + public string Body { get; private set; } } } diff --git a/Octokit/Models/Request/PullRequestReviewCommentReplyCreate.cs b/Octokit/Models/Request/PullRequestReviewCommentReplyCreate.cs index 90822c01..342b5571 100644 --- a/Octokit/Models/Request/PullRequestReviewCommentReplyCreate.cs +++ b/Octokit/Models/Request/PullRequestReviewCommentReplyCreate.cs @@ -4,19 +4,6 @@ namespace Octokit { public class PullRequestReviewCommentReplyCreate : RequestParameters { - private readonly string _body; - private readonly int _inReplyTo; - - /// - /// The text of the comment. - /// - public string Body { get { return _body; } } - - /// - /// The comment Id to reply to. - /// - public int InReplyTo { get { return _inReplyTo; } } - /// /// Creates a comment that is replying to another comment. /// @@ -26,8 +13,18 @@ namespace Octokit { Ensure.ArgumentNotNullOrEmptyString(body, "body"); - _body = body; - _inReplyTo = inReplyTo; + Body = body; + InReplyTo = inReplyTo; } + + /// + /// The text of the comment. + /// + public string Body { get; private set; } + + /// + /// The comment Id to reply to. + /// + public int InReplyTo { get; private set; } } }