summaryrefslogtreecommitdiff
path: root/CommandLineWrapper/JsonResults/Implements/ShareListResult.cs
diff options
context:
space:
mode:
Diffstat (limited to 'CommandLineWrapper/JsonResults/Implements/ShareListResult.cs')
-rw-r--r--CommandLineWrapper/JsonResults/Implements/ShareListResult.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/CommandLineWrapper/JsonResults/Implements/ShareListResult.cs b/CommandLineWrapper/JsonResults/Implements/ShareListResult.cs
new file mode 100644
index 0000000..4736b81
--- /dev/null
+++ b/CommandLineWrapper/JsonResults/Implements/ShareListResult.cs
@@ -0,0 +1,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; }
+}