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