summaryrefslogtreecommitdiff
path: root/CommandLineWrapper/JsonResults/Implements/SheetListResult.cs
blob: eb1068d11fe43159b1e3f8c16da99c5d97c44d04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace CommandLineWrapper.JsonResults.Implements;

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; }
}