123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- using System.Collections.Generic;
-
- namespace Common.Model
- {
-
-
-
-
-
- public class DownloadInfoModel
- {
-
-
-
- private int _taskCount = 1;
-
-
-
-
- public int taskCount
- {
- get => _taskCount;
- set => _taskCount = value;
- }
-
-
-
- public string tempFileName { get; set; }
-
-
-
-
- private bool _isNewTask = true;
-
-
-
-
-
- public bool isNewTask
- {
- get => _isNewTask;
- set => _isNewTask = value;
- }
-
-
-
- private bool _isReStart = false;
-
-
-
-
- public bool isReStart
- {
- get => _isReStart;
- set => _isReStart = value;
- }
-
-
-
- public long count { get; set; }
-
-
-
- public string saveDir { get; set; }
-
-
-
- private string _method = "get";
-
-
-
-
- public string method
- {
- get => _method;
- set => _method = value;
- }
-
-
-
- public string fileName { get; set; }
-
- public List<string> _downloadUrlList;
-
-
-
-
-
- public List<string> downloadUrlList
- {
- get => _downloadUrlList;
-
- set
- {
- List<string> UTF8ValueList = new List<string>();
- foreach (string val in value)
- {
- string path = val.Substring(0, val.LastIndexOf("/") + 1);
- string name = val.Substring(val.LastIndexOf("/") + 1);
- string UTF8Name = System.Web.HttpUtility.UrlEncode(name);
- string UTF8Url = path + UTF8Name;
- UTF8ValueList.Add(UTF8Url);
- _downloadUrlList = UTF8ValueList;
- }
- ;
- }
- }
-
-
-
-
-
- private bool _IsSupportMultiThreading = false;
-
-
-
-
-
- public bool IsSupportMultiThreading
- {
- get => _IsSupportMultiThreading;
- set => _IsSupportMultiThreading = value;
- }
-
-
-
- public List<TaskInfoModel> TaskInfoList { get; set; }
-
-
-
- public string saveFileName { get; set; }
- }
-
-
-
-
- public class TaskInfoModel
- {
-
-
-
- public string method { get; set; }
- public string downloadUrl { get; set; }
- public string filePath { get; set; }
-
-
-
- public long fromIndex { get; set; }
-
-
-
- public long toIndex { get; set; }
-
-
-
- public long count => toIndex - fromIndex + 1;
- }
-
-
-
-
- public class BookDecompressionModel
- {
-
-
-
- public string BookFileName { get; set; }
-
-
-
-
- public object UcBookCover { get; set; }
- }
- }
|