Added SelfUpdate

This commit is contained in:
2024-07-13 22:33:09 +03:00
parent 349c669284
commit 6599428043
8 changed files with 157 additions and 95 deletions

View File

@@ -5,19 +5,15 @@ namespace DiscordBotCore.Updater.Application
{
public class Update
{
public readonly static Update None = new Update(AppVersion.CurrentAppVersion, AppVersion.CurrentAppVersion, string.Empty, string.Empty);
public AppVersion UpdateVersion { get; private set; }
public AppVersion NewVersion { get; private set; }
public AppVersion CurrentVersion { get; private set; }
public string UpdateUrl { get; private set; }
public string UpdateNotes { get; private set; }
public Update(AppVersion currentVersion, AppVersion updateVersion, string updateUrl, string updateNotes)
public Update(AppVersion currentVersion, AppVersion updateVersion, string updateUrl)
{
UpdateVersion = updateVersion;
NewVersion = updateVersion;
CurrentVersion = currentVersion;
UpdateUrl = updateUrl;
UpdateNotes = updateNotes;
}
}
}