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>
103 lines
3.0 KiB
C#
103 lines
3.0 KiB
C#
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;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The issue comment Id.
|
|
/// </summary>
|
|
public long Id { get; private set; }
|
|
|
|
/// <summary>
|
|
/// GraphQL Node Id
|
|
/// </summary>
|
|
public string NodeId { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The URL for this repository comment.
|
|
/// </summary>
|
|
public string Url { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The html URL for this repository comment.
|
|
/// </summary>
|
|
public string HtmlUrl { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Details about the repository comment.
|
|
/// </summary>
|
|
public string Body { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Relative path of the file that was commented on.
|
|
/// </summary>
|
|
public string Path { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Line index in the diff that was commented on.
|
|
/// </summary>
|
|
public int? Position { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The line number in the file that was commented on.
|
|
/// </summary>
|
|
public int? Line { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The commit
|
|
/// </summary>
|
|
public string CommitId { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The user that created the repository comment.
|
|
/// </summary>
|
|
public User User { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The date the repository comment was created.
|
|
/// </summary>
|
|
public DateTimeOffset CreatedAt { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The date the repository comment was last updated.
|
|
/// </summary>
|
|
public DateTimeOffset? UpdatedAt { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The reaction summary for this comment.
|
|
/// </summary>
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
}
|