public DownloadInfo(string fileName, string urlFormat, string xpUrlFormat, double size, string sha1, DownloadFormat format) { FileName = fileName; if (PlatformSupport.WindowsXp.Validate()) { Url = string.Format(xpUrlFormat, fileName); } else { Url = string.Format(urlFormat, fileName); } Size = size; Sha1 = sha1; Format = format; }
public DownloadInfo(string fileName, string urlFormat, double size, string sha1, DownloadFormat format) { FileName = fileName; Url = string.Format(urlFormat, fileName); Size = size; Sha1 = sha1; Format = format; }
public DownloadInfo(string fileName, List <DownloadMirror> mirrors, double size, string sha1, DownloadFormat format) { FileName = fileName; Urls = mirrors.Where(x => x.IsSupported).Select(x => x.Url(fileName)).ToList(); Size = size; Sha1 = sha1; Format = format; }