diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-13 06:24:07 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-13 06:24:07 +0800 |
| commit | 7d59c15b0efd2aa5a27aef356a265f850a2e7e2f (patch) | |
| tree | 16f30ff5a7d5d871f0358f792988f369cc532b45 /CommandLineWrapper/JsonResults/Implements/SheetListResult.cs | |
| parent | b202287c51438d64f769dd72c579664493ba9109 (diff) | |
Add JSON result getters for command outputs
Diffstat (limited to 'CommandLineWrapper/JsonResults/Implements/SheetListResult.cs')
| -rw-r--r-- | CommandLineWrapper/JsonResults/Implements/SheetListResult.cs | 26 |
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; } +} |
