using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Enables or disables automatic creation of CheckSuite events upon pushes to the repository /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class CheckSuitePreferenceAutoTrigger { public CheckSuitePreferenceAutoTrigger() { } /// /// Enables or disables automatic creation of CheckSuite events upon pushes to the repository /// /// The Id of the GitHub App (required) /// Set to true to enable automatic creation of CheckSuite events upon pushes to the repository, or false to disable them (required) public CheckSuitePreferenceAutoTrigger(long appId, bool setting) { AppId = appId; Setting = setting; } /// /// The Id of the GitHub App /// public long AppId { get; protected set; } /// /// Set to true to enable automatic creation of CheckSuite events upon pushes to the repository, or false to disable them /// public bool Setting { get; protected set; } internal string DebuggerDisplay => string.Format(CultureInfo.InvariantCulture, "{0}: {1}", AppId, Setting); } }