using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Describes a new commit comment to create via the method. /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewCommitComment { /// /// Initializes a new instance of the class. /// /// The body of the comment. public NewCommitComment(string body) { Ensure.ArgumentNotNull(body, "body"); Body = body; } /// /// The contents of the comment (required) /// public string Body { get; private set; } /// /// Relative path of the file to comment on /// public string Path { get; set; } /// /// Line index in the diff to comment on /// public int? Position { get; set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Path: {0}, Body: {1}", Path, Body); } } } }