mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
* #2927: comment id model update to long instead of int * #2927: code review fixes (1) * #2927: code review fixes (2) * #2927: comment id model update to long instead of int: unit tests fix * #2927: code review fixes * Fixed most names of parameters --------- Co-authored-by: Victor Vorobyev <victor@myrtle-sa.com> Co-authored-by: Brian C. Arnold <brian.arnold@spiderrock.net>
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
/// <summary>
|
|
/// Used to create a reply to a pull request review comment.
|
|
/// </summary>
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class PullRequestReviewCommentReplyCreate : RequestParameters
|
|
{
|
|
/// <summary>
|
|
/// Creates a comment that is replying to another comment.
|
|
/// </summary>
|
|
/// <param name="body">The text of the comment</param>
|
|
/// <param name="inReplyTo">The comment Id to reply to</param>
|
|
public PullRequestReviewCommentReplyCreate(string body, long inReplyTo)
|
|
{
|
|
Ensure.ArgumentNotNullOrEmptyString(body, nameof(body));
|
|
|
|
Body = body;
|
|
InReplyTo = inReplyTo;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The text of the comment.
|
|
/// </summary>
|
|
public string Body { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The comment Id to reply to.
|
|
/// </summary>
|
|
public long InReplyTo { get; private set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get { return string.Format(CultureInfo.InvariantCulture, "InReplyTo: {0}, Body: {1}", InReplyTo, Body); }
|
|
}
|
|
}
|
|
}
|