|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Linq; |
| 4 | +using System.Text; |
| 5 | +using System.Text.Json.Serialization; |
| 6 | +using System.Threading.Tasks; |
| 7 | + |
| 8 | +namespace ZXBSInstaller.Log.Neg |
| 9 | +{ |
| 10 | + /// <summary> |
| 11 | + /// External tool definition for installer and updater |
| 12 | + /// </summary> |
| 13 | + public class ExternalTool |
| 14 | + { |
| 15 | + /// <summary> |
| 16 | + /// Internal unique identifier |
| 17 | + /// </summary> |
| 18 | + public string Id { get; set; } |
| 19 | + /// <summary> |
| 20 | + /// The tools is visible/enabled |
| 21 | + /// </summary> |
| 22 | + public bool Enabled { get; set; } |
| 23 | + /// <summary> |
| 24 | + /// Display name of the tool |
| 25 | + /// </summary> |
| 26 | + public string Name { get; set; } |
| 27 | + /// <summary> |
| 28 | + /// Author of the tool |
| 29 | + /// </summary> |
| 30 | + public string Author { get; set; } |
| 31 | + /// <summary> |
| 32 | + /// Description of the tool |
| 33 | + /// </summary> |
| 34 | + public string Description { get; set; } |
| 35 | + /// <summary> |
| 36 | + /// Operating systems supported by the tool |
| 37 | + /// </summary> |
| 38 | + public OperatingSystems[] SupportedOperatingSystems { get; set; } |
| 39 | + /// <summary> |
| 40 | + /// Site of the tool |
| 41 | + /// </summary> |
| 42 | + public string SiteUrl { get; set; } |
| 43 | + /// <summary> |
| 44 | + /// Licence type of the tool |
| 45 | + /// </summary> |
| 46 | + public string LicenseType { get; set; } |
| 47 | + /// <summary> |
| 48 | + /// Lucence URL of the tool |
| 49 | + /// </summary> |
| 50 | + public string LicenceUrl { get; set; } |
| 51 | + /// <summary> |
| 52 | + /// Url with the versions info |
| 53 | + /// </summary> |
| 54 | + public string VersionsUrl { get; set; } |
| 55 | + /// <summary> |
| 56 | + /// Local path where the tool will be installed without file name |
| 57 | + /// </summary> |
| 58 | + public string LocalPath { get; set; } |
| 59 | + /// <summary> |
| 60 | + /// Local path where the tool will be installed with file name |
| 61 | + /// </summary> |
| 62 | + public string FullLocalPath { get; set; } |
| 63 | + /// <summary> |
| 64 | + /// If this is true, the tool will be updated from ZXBSInstaller |
| 65 | + /// </summary> |
| 66 | + public bool DirectUpdate { get; set; } |
| 67 | + /// <summary> |
| 68 | + /// Order in the list |
| 69 | + /// </summary> |
| 70 | + public int Order { get; set; } |
| 71 | + /// <summary> |
| 72 | + /// Recommended |
| 73 | + /// </summary> |
| 74 | + public bool Recommended { get; set; } |
| 75 | + |
| 76 | + /// <summary> |
| 77 | + /// Versions of the tool |
| 78 | + /// </summary> |
| 79 | + [JsonIgnore] |
| 80 | + public ExternalTools_Version[] Versions { get; set; } |
| 81 | + /// <summary> |
| 82 | + /// Version installed on local computer |
| 83 | + /// </summary> |
| 84 | + [JsonIgnore] |
| 85 | + public ExternalTools_Version InstalledVersion { get; set; } |
| 86 | + /// <summary> |
| 87 | + /// Latest available version |
| 88 | + /// </summary> |
| 89 | + [JsonIgnore] |
| 90 | + public ExternalTools_Version LatestVersion { get; set; } |
| 91 | + /// <summary> |
| 92 | + /// Need to update |
| 93 | + /// </summary> |
| 94 | + [JsonIgnore] |
| 95 | + public bool UpdateNeeded { get; set; } |
| 96 | + |
| 97 | + /// <summary> |
| 98 | + /// Is selected for install |
| 99 | + /// </summary> |
| 100 | + [JsonIgnore] |
| 101 | + public bool IsSelected { get; set; } |
| 102 | + |
| 103 | + } |
| 104 | +} |
0 commit comments