2021-12-17 23:18:20 +03:00
|
|
|
|
namespace NAPS2.Dependencies;
|
2021-12-17 22:59:54 +03:00
|
|
|
|
|
|
|
|
|
public class DownloadInfo
|
2016-05-25 00:55:37 +03:00
|
|
|
|
{
|
2021-12-17 22:59:54 +03:00
|
|
|
|
public DownloadInfo(string fileName, List<DownloadMirror> mirrors, double size, string sha1, DownloadFormat format)
|
2016-05-25 00:55:37 +03:00
|
|
|
|
{
|
2021-12-17 22:59:54 +03:00
|
|
|
|
FileName = fileName;
|
2022-11-12 21:34:58 +03:00
|
|
|
|
Urls = mirrors.Select(x => x.Url(fileName)).ToList();
|
2021-12-17 22:59:54 +03:00
|
|
|
|
Size = size;
|
|
|
|
|
Sha1 = sha1;
|
|
|
|
|
Format = format;
|
|
|
|
|
}
|
2016-05-25 00:55:37 +03:00
|
|
|
|
|
2021-12-17 22:59:54 +03:00
|
|
|
|
public string FileName { get; }
|
2016-05-25 00:55:37 +03:00
|
|
|
|
|
2021-12-17 22:59:54 +03:00
|
|
|
|
public List<string> Urls { get; }
|
2016-05-25 00:55:37 +03:00
|
|
|
|
|
2021-12-17 22:59:54 +03:00
|
|
|
|
public DownloadFormat Format { get; }
|
2016-05-25 00:55:37 +03:00
|
|
|
|
|
2021-12-17 22:59:54 +03:00
|
|
|
|
public double Size { get; }
|
2016-05-25 00:55:37 +03:00
|
|
|
|
|
2021-12-17 22:59:54 +03:00
|
|
|
|
public string Sha1 { get; }
|
|
|
|
|
}
|