blob: 1a3d11e4a04e1ec5138f71e67de5d206c83309d9 (
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
26
27
28
29
30
31
32
|
namespace CommandLineWrapper.JsonResults.Implements;
public class InfoResultGetter : JsonResultGetter<InfoResult>
{
private string _mappingName;
public InfoResultGetter(string mappingName)
=> _mappingName = mappingName;
public void ChangeMappingName(string mappingName)
=> _mappingName = mappingName;
protected override Task<JVCSCommandInvoker.InvokeResult> ExecCommand(JVCSWorkspace workspace)
=> workspace.Info(_mappingName);
}
public struct InfoResult
{
public string Mapping { get; set; }
public string InRef { get; set; }
public string Vfid { get; set; }
public List<InfoHistory> Histories { get; set; }
}
public struct InfoHistory
{
public string Version { get; set; }
public string VersionCreator { get; set; }
public string VersionDescription { get; set; }
public bool IsCurrentVersion { get; set; }
public bool IsRefVersion { get; set; }
}
|