migrate to Pilz.AppVersion

This commit is contained in:
Pilzinsel64
2024-08-30 11:48:03 +02:00
parent a941845826
commit a21c25b91d
3 changed files with 2 additions and 163 deletions

View File

@@ -2,7 +2,7 @@
namespace Pilz.Updating.Client;
public class UpdateClient(string updateUrl, AppVersion currentVersion, Channels minimumChannel)
public class UpdateClient(string updateUrl, AppVersion currentVersion, AppChannel minimumChannel)
{
// E v e n t s
@@ -17,7 +17,7 @@ public class UpdateClient(string updateUrl, AppVersion currentVersion, Channels
public HttpClient WebClient { get; private set; } = new();
public string UpdateUrl { get; private set; } = updateUrl;
public AppVersion CurrentVersion { get; private set; } = currentVersion;
public Channels MinimumChannel { get; private set; } = (Channels)Math.Max((int)minimumChannel, (int)currentVersion.Channel);
public AppChannel MinimumChannel { get; private set; } = (AppChannel)Math.Max((int)minimumChannel, (int)currentVersion.Channel);
public UpdateInfo? UpdateInfo { get; private set; }
public UpdatePackageInfo? UpdatePackageInfo { get; private set; }
public string? HostApplicationPath { get; set; }