using System.Diagnostics; using System.Globalization; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class Label { public Label() { } public Label(long id, string url, string name, string nodeId, string color, string description, bool @default) { Id = id; Url = url; Name = name; NodeId = nodeId; Color = color; Description = description; Default = @default; } /// /// Id of the label /// public long Id { get; protected set; } /// /// Url of the label /// public string Url { get; protected set; } /// /// Name of the label /// public string Name { get; protected set; } /// /// GraphQL Node Id /// public string NodeId { get; protected set; } /// /// Color of the label /// public string Color { get; protected set; } /// /// Description of the label /// public string Description { get; protected set; } /// /// Is default label /// public bool Default { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Name: {0} Color: {1}", Name, Color); } } } }