DownLoadEntity.cs 710 B

123456789101112131415161718192021222324
  1. using CommunityToolkit.Mvvm.ComponentModel;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace ivf_tl_Entity.Entity.DownLoad
  8. {
  9. public class DownLoadEntity : ObservableObject
  10. {
  11. public string DownLoadUrl { get; set; }
  12. public string NewFileFullName { get; set; }
  13. public string FileName { get; set; }
  14. public string Body { get; set; } = null;
  15. private int _state;
  16. /// <summary>
  17. /// 0等待、-1失败,1下载成功,2下载失败
  18. /// </summary>
  19. public int state { get => _state; set => SetProperty(ref _state, value); }
  20. }
  21. }