Esempio n. 1
0
 public UgoiraDownloadJob(string Title, string Uri, StorageFile File, PixivCS.Objects.UgoiraMetadata res) : base(Title, Uri, File)
 {
     this.res = res;
     if (string.IsNullOrEmpty(Uri))
     {
         _ = SetStatus(DownloadJobStatus.Failed);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 添加动画下载任务
 /// </summary>
 /// <param name="title">下载任务标题</param>
 /// <param name="zipurl">下载地址</param>
 /// <param name="file">目标文件</param>
 /// <param name="res"></param>
 public static void NewUgoiraJob(string title, string zipurl, StorageFile file, PixivCS.Objects.UgoiraMetadata res) => AddJob(new UgoiraDownloadJob(title, zipurl, file, res));