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 UserStar { public UserStar() { } public UserStar(DateTimeOffset starredAt, User user) { StarredAt = starredAt; User = user; } /// /// The date the star was created. /// public DateTimeOffset StarredAt { get; protected set; } /// /// The user associated with the star. /// public User User { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, User.DebuggerDisplay); } } } }