Added checking for updates
This commit is contained in:
parent
cc15863e81
commit
5ec6525257
19 changed files with 1231 additions and 100 deletions
19
Services/ISettingsService.cs
Normal file
19
Services/ISettingsService.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
namespace MossyUpdater.Services
|
||||
{
|
||||
public interface ISettingsService
|
||||
{
|
||||
Task<AppSettings> LoadSettingsAsync();
|
||||
Task SaveSettingsAsync(AppSettings settings);
|
||||
}
|
||||
|
||||
public class AppSettings
|
||||
{
|
||||
public string LastUsedFolder { get; set; } = string.Empty;
|
||||
public string DefaultUrl { get; set; } = "https://git.snakedesert.se/SawatoMosswartsEnjoyersClub/MosswartMassacre/raw/branch/spawn-detection/MosswartMassacre/bin/Release/MosswartMassacre.dll";
|
||||
public string DefaultFilename { get; set; } = "MosswartMassacre.dll";
|
||||
public double WindowWidth { get; set; } = 550;
|
||||
public double WindowHeight { get; set; } = 450;
|
||||
public bool CheckForUpdatesOnStartup { get; set; } = true;
|
||||
public int DownloadTimeoutMinutes { get; set; } = 10;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue