using System; using System.Diagnostics; using System.Globalization; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class CommitComment { public CommitComment() { } public CommitComment(long id, string nodeId, string url, string htmlUrl, string body, string path, int position, int? line, string commitId, User user, DateTimeOffset createdAt, DateTimeOffset? updatedAt, ReactionSummary reactions) { Id = id; NodeId = nodeId; Url = url; HtmlUrl = htmlUrl; Body = body; Path = path; Position = position; Line = line; CommitId = commitId; User = user; CreatedAt = createdAt; UpdatedAt = updatedAt; Reactions = reactions; } /// /// The issue comment Id. /// public long Id { get; private set; } /// /// GraphQL Node Id /// public string NodeId { get; private set; } /// /// The URL for this repository comment. /// public string Url { get; private set; } /// /// The html URL for this repository comment. /// public string HtmlUrl { get; private set; } /// /// Details about the repository comment. /// public string Body { get; private set; } /// /// Relative path of the file that was commented on. /// public string Path { get; private set; } /// /// Line index in the diff that was commented on. /// public int? Position { get; private set; } /// /// The line number in the file that was commented on. /// public int? Line { get; private set; } /// /// The commit /// public string CommitId { get; private set; } /// /// The user that created the repository comment. /// public User User { get; private set; } /// /// The date the repository comment was created. /// public DateTimeOffset CreatedAt { get; private set; } /// /// The date the repository comment was last updated. /// public DateTimeOffset? UpdatedAt { get; private set; } /// /// The reaction summary for this comment. /// public ReactionSummary Reactions { get; private set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Id: {0}, Commit Id: {1}, CreatedAt: {2}", Id, CommitId, CreatedAt); } } } }