using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Used to watch a repository (subscribe to repository's notifications). Called by the /// method. /// /// /// API: https://developer.github.com/v3/activity/watching/#set-a-repository-subscription /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewSubscription { /// /// Determines if notifications should be received from this repository. /// /// /// If you would like to watch a repository, set subscribed to true. If you would like to ignore notifications /// made within a repository, set ignored to true. If you would like to stop watching a repository, delete the /// repository’s subscription completely using the method. /// public bool Subscribed { get; set; } /// /// Determines if all notifications should be blocked from this repository. /// public bool Ignored { get; set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Subscribed: {0} Ignored: {1}", Subscribed, Ignored); } } } }