using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class GistComment
{
public GistComment() { }
public GistComment(int id, string url, string body, User user, DateTimeOffset createdAt, DateTimeOffset? updatedAt)
{
Id = id;
Url = url;
Body = body;
User = user;
CreatedAt = createdAt;
UpdatedAt = updatedAt;
}
///
/// The gist comment id.
///
public int Id { get; protected set; }
///
/// The URL for this gist comment.
///
public string Url { get; protected set; }
///
/// The body of this gist comment.
/// t
public string Body { get; protected set; }
///
/// The user that created this gist comment.
///
public User User { get; protected set; }
///
/// The date this comment was created.
///
public DateTimeOffset CreatedAt { get; protected set; }
///
/// The date this comment was last updated.
///
public DateTimeOffset? UpdatedAt { get; protected set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Id: {0} CreatedAt: {1}", Id, CreatedAt);
}
}
}
}