summaryrefslogtreecommitdiff
path: root/CommandLineWrapper/JsonResults/Implements/SheetListResult.cs
diff options
context:
space:
mode:
Diffstat (limited to 'CommandLineWrapper/JsonResults/Implements/SheetListResult.cs')
-rw-r--r--CommandLineWrapper/JsonResults/Implements/SheetListResult.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/CommandLineWrapper/JsonResults/Implements/SheetListResult.cs b/CommandLineWrapper/JsonResults/Implements/SheetListResult.cs
new file mode 100644
index 0000000..1fa9f0b
--- /dev/null
+++ b/CommandLineWrapper/JsonResults/Implements/SheetListResult.cs
@@ -0,0 +1,26 @@
+using CommandLineWrapper;
+using CommandLineWrapper.JsonResults;
+
+public class SheetListResultGetter : JsonResultGetter<SheetListResult>
+{
+ protected override Task<JVCSCommandInvoker.InvokeResult> ExecCommand(JVCSWorkspace workspace)
+ => workspace.SheetList();
+}
+
+public struct SheetListResult
+{
+ public SheetListJsonResult Result { get; set; }
+}
+
+public struct SheetListJsonResult
+{
+ public List<SheetItem> MySheets { get; set; }
+ public List<SheetItem> ReferenceSheets { get; set; }
+ public List<SheetItem> OtherSheets { get; set; }
+}
+
+public struct SheetItem
+{
+ public string Name { get; set; }
+ public string Holder { get; set; }
+}