diff --git a/Octokit/Models/Response/Deployment.cs b/Octokit/Models/Response/Deployment.cs index 23d91e4c98..4d4e5be667 100644 --- a/Octokit/Models/Response/Deployment.cs +++ b/Octokit/Models/Response/Deployment.cs @@ -13,9 +13,10 @@ public class Deployment { public Deployment() { } - public Deployment(int id, string sha, string url, User creator, IReadOnlyDictionary payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, bool transientEnvironment, bool productionEnvironment, string nodeId) + public Deployment(int id, string nodeId, string sha, string url, User creator, IReadOnlyDictionary payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, bool transientEnvironment, bool productionEnvironment) { Id = id; + NodeId = nodeId; Sha = sha; Url = url; Creator = creator; @@ -26,7 +27,6 @@ public Deployment(int id, string sha, string url, User creator, IReadOnlyDiction StatusesUrl = statusesUrl; TransientEnvironment = transientEnvironment; ProductionEnvironment = productionEnvironment; - NodeId = nodeId; } /// @@ -34,6 +34,11 @@ public Deployment(int id, string sha, string url, User creator, IReadOnlyDiction /// public int Id { get; protected set; } + /// + /// GraphQL Node Id + /// + public string NodeId { get; protected set; } + /// /// /// @@ -84,11 +89,6 @@ public Deployment(int id, string sha, string url, User creator, IReadOnlyDiction /// public bool ProductionEnvironment { get; protected set; } - /// - /// GraphQL Node Id - /// - public string NodeId { get; protected set; } - internal string DebuggerDisplay { get diff --git a/Octokit/Models/Response/DeploymentStatus.cs b/Octokit/Models/Response/DeploymentStatus.cs index 83896a455e..a7bef3ca05 100644 --- a/Octokit/Models/Response/DeploymentStatus.cs +++ b/Octokit/Models/Response/DeploymentStatus.cs @@ -11,9 +11,10 @@ public class DeploymentStatus { public DeploymentStatus() { } - public DeploymentStatus(int id, string url, DeploymentState state, User creator, IReadOnlyDictionary payload, string targetUrl, string logUrl, string environmentUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string nodeId) + public DeploymentStatus(int id, string nodeId, string url, DeploymentState state, User creator, IReadOnlyDictionary payload, string targetUrl, string logUrl, string environmentUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description) { Id = id; + NodeId = nodeId; Url = url; State = state; Creator = creator; @@ -24,7 +25,6 @@ public DeploymentStatus(int id, string url, DeploymentState state, User creator, CreatedAt = createdAt; UpdatedAt = updatedAt; Description = description; - NodeId = nodeId; } /// @@ -32,6 +32,11 @@ public DeploymentStatus(int id, string url, DeploymentState state, User creator, /// public int Id { get; protected set; } + /// + /// GraphQL Node Id + /// + public string NodeId { get; protected set; } + /// /// The API URL for this deployment status. /// @@ -86,11 +91,6 @@ public DeploymentStatus(int id, string url, DeploymentState state, User creator, /// public string Description { get; protected set; } - /// - /// GraphQL Node Id - /// - public string NodeId { get; protected set; } - internal string DebuggerDisplay { get diff --git a/Octokit/Models/Response/Gist.cs b/Octokit/Models/Response/Gist.cs index 1c50a50c00..0851d53a95 100644 --- a/Octokit/Models/Response/Gist.cs +++ b/Octokit/Models/Response/Gist.cs @@ -42,6 +42,11 @@ public Gist(string url, string id, string description, bool @public, User owner, /// public string Id { get; protected set; } + /// + /// GraphQL Node Id + /// + public string NodeId { get; protected set; } + /// /// A description of the . ///