using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
///
/// Used to create a reply to a pull request review comment.
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class PullRequestReviewCommentReplyCreate : RequestParameters
{
///
/// Creates a comment that is replying to another comment.
///
/// The text of the comment
/// The comment Id to reply to
public PullRequestReviewCommentReplyCreate(string body, int inReplyTo)
{
Ensure.ArgumentNotNullOrEmptyString(body, nameof(body));
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; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "InReplyTo: {0}, Body: {1}", InReplyTo, Body); }
}
}
}