summaryrefslogtreecommitdiff
path: root/CommandLineWrapper/JsonResults/Implements/AccountListResult.cs
blob: 600b8394dc95d7e5347f500f5fc03bee34575c9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using CommandLineWrapper;
using CommandLineWrapper.JsonResults;

public class AccountListResultGetter : JsonResultGetter<AccountListResult>
{
    protected override Task<JVCSCommandInvoker.InvokeResult> ExecCommand(JVCSWorkspace workspace)
        => workspace.AccountList();
}

public struct AccountListResult
{
    public Dictionary<string, AccountItem> Result { get; set; }
}

public struct AccountItem
{
    public bool HasPrivateKey { get; set; }
}