using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
///
/// A historical version of a
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class GistHistory
{
public GistHistory() { }
public GistHistory(string url, string version, User user, GistChangeStatus changeStatus, DateTimeOffset committedAt)
{
Url = url;
Version = version;
User = user;
ChangeStatus = changeStatus;
CommittedAt = committedAt;
}
///
/// The url that can be used by the API to retrieve this version of the .
///
public string Url { get; protected set; }
///
/// A git sha representing the version.
///
public string Version { get; protected set; }
///
/// The who create this version.
///
public User User { get; protected set; }
///
/// A that represents the level of change for this .
///
public GistChangeStatus ChangeStatus { get; protected set; }
///
/// The the version was created.
///
public DateTimeOffset CommittedAt { get; protected set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "User: {0}, Url: {1}, Version: {2}, ChangeStatus: {3}", User.DebuggerDisplay, Url, Version, ChangeStatus); }
}
}
}