Files
octokit.net/Octokit/Models/Response/GistComment.cs
Victor 6c43183837 fix: comment id model update to long instead of int
* #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>
2024-06-10 08:12:08 -05:00

67 lines
1.7 KiB
C#

using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class GistComment
{
public GistComment() { }
public GistComment(long id, string nodeId, string url, string body, User user, DateTimeOffset createdAt, DateTimeOffset? updatedAt)
{
Id = id;
NodeId = nodeId;
Url = url;
Body = body;
User = user;
CreatedAt = createdAt;
UpdatedAt = updatedAt;
}
/// <summary>
/// The gist 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 gist comment.
/// </summary>
public string Url { get; private set; }
/// <summary>
/// The body of this gist comment.
/// </summary>t
public string Body { get; private set; }
/// <summary>
/// The user that created this gist comment.
/// </summary>
public User User { get; private set; }
/// <summary>
/// The date this comment was created.
/// </summary>
public DateTimeOffset CreatedAt { get; private set; }
/// <summary>
/// The date this comment was last updated.
/// </summary>
public DateTimeOffset? UpdatedAt { get; private set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Id: {0} CreatedAt: {1}", Id, CreatedAt);
}
}
}
}