-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExternalTool.cs
More file actions
115 lines (112 loc) · 3.57 KB
/
ExternalTool.cs
File metadata and controls
115 lines (112 loc) · 3.57 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace ZXBSInstaller.Log.Neg
{
/// <summary>
/// External tool definition for installer and updater
/// </summary>
public class ExternalTool
{
/// <summary>
/// Internal unique identifier
/// </summary>
public string Id { get; set; }
/// <summary>
/// The tools is visible/enabled
/// </summary>
public bool Enabled { get; set; }
/// <summary>
/// Display name of the tool
/// </summary>
public string Name { get; set; }
/// <summary>
/// Author of the tool
/// </summary>
public string Author { get; set; }
/// <summary>
/// Description of the tool
/// </summary>
public string Description { get; set; }
/// <summary>
/// Operating systems supported by the tool
/// </summary>
public OperatingSystems[] SupportedOperatingSystems { get; set; }
/// <summary>
/// Site of the tool
/// </summary>
public string SiteUrl { get; set; }
/// <summary>
/// Licence type of the tool
/// </summary>
public string LicenseType { get; set; }
/// <summary>
/// Lucence URL of the tool
/// </summary>
public string LicenceUrl { get; set; }
/// <summary>
/// Url with the versions info
/// </summary>
public string VersionsUrl { get; set; }
/// <summary>
/// If exists Local path where the tool will be installed without file name
/// </summary>
public string LocalPath { get; set; }
/// <summary>
/// Local path where the tool will be installed with file name
/// </summary>
public string FullLocalPath { get; set; }
/// <summary>
/// If this is true, the tool will be updated from ZXBSInstaller
/// </summary>
public bool DirectUpdate { get; set; }
/// <summary>
/// If true, tool will be downloaded as a zip file and unzipped in the local path, otherwise it will be downloaded as is
/// </summary>
public bool Unzip { get; set; }
/// <summary>
/// True, creates a version.txt file in the installation folder
/// </summary>
public bool CreateVerFile { get; set; }
/// <summary>
/// Order in the list
/// </summary>
public int Order { get; set; }
/// <summary>
/// Recommended
/// </summary>
public bool Recommended { get; set; }
/// <summary>
/// Tools group
/// </summary>
public string Group { get; set; }
/// <summary>
/// Versions of the tool
/// </summary>
[JsonIgnore]
public ExternalTools_Version[] Versions { get; set; }
/// <summary>
/// Version installed on local computer
/// </summary>
[JsonIgnore]
public ExternalTools_Version InstalledVersion { get; set; }
/// <summary>
/// Latest available version
/// </summary>
[JsonIgnore]
public ExternalTools_Version LatestVersion { get; set; }
/// <summary>
/// Need to update
/// </summary>
[JsonIgnore]
public bool UpdateNeeded { get; set; }
/// <summary>
/// Is selected for install
/// </summary>
[JsonIgnore]
public bool IsSelected { get; set; }
}
}