using System; using System.Diagnostics; using System.Globalization; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class ThreadSubscription { public ThreadSubscription() { } public ThreadSubscription(bool subscribed, bool ignored, string reason, DateTimeOffset createdAt, string url, string threadUrl) { Subscribed = subscribed; Ignored = ignored; Reason = reason; CreatedAt = createdAt; Url = url; ThreadUrl = threadUrl; } /// /// Determines if notifications should be received from this repository. /// public bool Subscribed { get; protected set; } /// /// Determines if all notifications should be blocked from this repository. /// public bool Ignored { get; protected set; } /// /// Url of the label /// public string Reason { get; protected set; } /// /// The for when this was created. /// public DateTimeOffset CreatedAt { get; protected set; } /// /// The API URL for this . /// public string Url { get; protected set; } /// /// The API URL for this thread. /// public string ThreadUrl { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Subscribed: {0}", Subscribed); } } } }