Files
octokit.net/Octokit/Models/Response/Label.cs
2019-02-24 21:29:03 +10:00

63 lines
1.6 KiB
C#

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;
}
/// <summary>
/// Id of the label
/// </summary>
public long Id { get; protected set; }
/// <summary>
/// Url of the label
/// </summary>
public string Url { get; protected set; }
/// <summary>
/// Name of the label
/// </summary>
public string Name { get; protected set; }
/// <summary>
/// GraphQL Node Id
/// </summary>
public string NodeId { get; protected set; }
/// <summary>
/// Color of the label
/// </summary>
public string Color { get; protected set; }
/// <summary>
/// Description of the label
/// </summary>
public string Description { get; protected set; }
/// <summary>
/// Is default label
/// </summary>
public bool Default { get; protected set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Name: {0} Color: {1}", Name, Color); }
}
}
}