Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 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;
 }