using System;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
///
/// Represents additional information about a star (such as creation time)
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class RepositoryStar
{
public RepositoryStar() { }
public RepositoryStar(DateTimeOffset starredAt, Repository repo)
{
StarredAt = starredAt;
Repo = repo;
}
///
/// The date the star was created.
///
public DateTimeOffset StarredAt { get; protected set; }
///
/// The repository associated with the star.
///
public Repository Repo { get; protected set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, Repo.DebuggerDisplay);
}
}
}
}