Add Id field to Label model (#1946)

This commit is contained in:
Nikita Potapenko
2019-02-24 13:29:03 +02:00
committed by Ryan Gribble
parent 3147ddd694
commit 0cbc716b84
+7 -1
View File
@@ -8,8 +8,9 @@ namespace Octokit
{
public Label() { }
public Label(string url, string name, string nodeId, string color, string description, bool @default)
public Label(long id, string url, string name, string nodeId, string color, string description, bool @default)
{
Id = id;
Url = url;
Name = name;
NodeId = nodeId;
@@ -18,6 +19,11 @@ namespace Octokit
Default = @default;
}
/// <summary>
/// Id of the label
/// </summary>
public long Id { get; protected set; }
/// <summary>
/// Url of the label
/// </summary>