2023-09-21 10:53:01 -04:00
|
|
|
|
using SPTInstaller.Interfaces;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace SPTInstaller.Models.Mirrors.Downloaders;
|
2024-05-01 10:31:55 -04:00
|
|
|
|
|
2023-09-21 10:53:01 -04:00
|
|
|
|
public abstract class MirrorDownloaderBase : IMirrorDownloader
|
|
|
|
|
{
|
2024-04-27 14:51:54 -04:00
|
|
|
|
public PatchInfoMirror MirrorInfo { get; private set; }
|
2023-09-21 10:53:01 -04:00
|
|
|
|
public abstract Task<FileInfo?> Download(IProgress<double> progress);
|
2024-05-01 10:31:55 -04:00
|
|
|
|
|
2024-04-27 14:51:54 -04:00
|
|
|
|
public MirrorDownloaderBase(PatchInfoMirror mirrorInfo)
|
2023-09-21 10:53:01 -04:00
|
|
|
|
{
|
|
|
|
|
MirrorInfo = mirrorInfo;
|
|
|
|
|
}
|
2024-05-01 10:31:55 -04:00
|
|
|
|
}
|