using System; using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Describes a new milestone to create via the method. /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewMilestone { /// /// Initializes a new instance of the class. /// /// The title. public NewMilestone(string title) { Ensure.ArgumentNotNull(title, nameof(title)); Title = title; State = ItemState.Open; } /// /// Title of the milestone (required) /// public string Title { get; private set; } /// /// Whether the milestone is open or closed. The default is . /// public ItemState State { get; set; } /// /// Optional description for the milestone. /// public string Description { get; set; } /// /// An optional date when the milestone is due. /// public DateTimeOffset? DueOn { get; set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Title {0} State: {1}", Title, State); } } } }