mirror of
https://github.com/SamueleLorefice/ComfySharp
synced 2026-01-15 03:35:48 +00:00
Adds constructors where needed
This commit is contained in:
@@ -89,6 +89,18 @@ public class Node {
|
|||||||
public string Category { get; set; }
|
public string Category { get; set; }
|
||||||
[DataMember(Name = "output_node")]
|
[DataMember(Name = "output_node")]
|
||||||
public bool IsOutputNode { get; set; }
|
public bool IsOutputNode { get; set; }
|
||||||
|
|
||||||
|
public Node() {
|
||||||
|
Name = "";
|
||||||
|
Input = new();
|
||||||
|
Outputs = new();
|
||||||
|
OutputIsList = new();
|
||||||
|
OutputNames = new();
|
||||||
|
DisplayName = "";
|
||||||
|
Description = "";
|
||||||
|
Category = "";
|
||||||
|
IsOutputNode = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[DataContract]
|
[DataContract]
|
||||||
@@ -100,8 +112,11 @@ public struct Input {
|
|||||||
[DataMember]
|
[DataMember]
|
||||||
public List<InputField> Hidden { get; set; }
|
public List<InputField> Hidden { get; set; }
|
||||||
|
|
||||||
|
public Input() {
|
||||||
|
Required = new();
|
||||||
|
Optional = new();
|
||||||
|
Hidden = new();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct InputField {
|
public struct InputField {
|
||||||
|
|||||||
Reference in New Issue
Block a user