From 7d59c15b0efd2aa5a27aef356a265f850a2e7e2f Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 13 Jan 2026 06:24:07 +0800 Subject: Add JSON result getters for command outputs --- .../JsonResults/Implements/AccountListResult.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 CommandLineWrapper/JsonResults/Implements/AccountListResult.cs (limited to 'CommandLineWrapper/JsonResults/Implements/AccountListResult.cs') diff --git a/CommandLineWrapper/JsonResults/Implements/AccountListResult.cs b/CommandLineWrapper/JsonResults/Implements/AccountListResult.cs new file mode 100644 index 0000000..600b839 --- /dev/null +++ b/CommandLineWrapper/JsonResults/Implements/AccountListResult.cs @@ -0,0 +1,18 @@ +using CommandLineWrapper; +using CommandLineWrapper.JsonResults; + +public class AccountListResultGetter : JsonResultGetter +{ + protected override Task ExecCommand(JVCSWorkspace workspace) + => workspace.AccountList(); +} + +public struct AccountListResult +{ + public Dictionary Result { get; set; } +} + +public struct AccountItem +{ + public bool HasPrivateKey { get; set; } +} -- cgit