summaryrefslogtreecommitdiff
path: root/CommandLineWrapper/JsonResults/Implements/ShareListResult.cs
blob: 4736b81ce5852709b4c3ac58a6a460a4952157b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using CommandLineWrapper;
using CommandLineWrapper.JsonResults;

public class ShareListResultGetter : JsonResultGetter<ShareListResult>
{
    protected override Task<JVCSCommandInvoker.InvokeResult> ExecCommand(JVCSWorkspace workspace)
        => workspace.ShareList();
}

public struct ShareListResult
{
    public List<ShareItem> ShareList { get; set; }
}

public struct ShareItem
{
    public string ShareId { get; set; }
    public string Sharer { get; set; }
    public string Description { get; set; }
    public int FileCount { get; set; }
}