TaskModel.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace TaskDatabase.Model
  8. {
  9. public class TaskModel
  10. {
  11. public virtual int Tid { get; set; }
  12. [JsonProperty(PropertyName = "id")]
  13. public virtual string Id { get; set; }
  14. [JsonProperty(PropertyName = "name")]
  15. public virtual string Task_name { get; set; }
  16. [JsonProperty(PropertyName = "cmd")]
  17. public virtual string Task_cmd { get; set; }
  18. [JsonProperty(PropertyName = "param")]
  19. public virtual string Task_param { get; set; }
  20. [JsonProperty(PropertyName = "status")]
  21. public virtual int Task_status { get; set; }
  22. [JsonProperty(PropertyName = "resultJson")]
  23. public virtual string Task_result_json { get; set; }
  24. [JsonProperty(PropertyName = "expectedFinishTime")]
  25. public virtual long Task_expected_finish_time { get; set; }
  26. public virtual DateTime Task_add_time { get; set; }
  27. [JsonProperty(PropertyName = "downloadTaskList")]
  28. public virtual ICollection<DownloadTaskModel> DownloadTaskModelList { get; set; }
  29. }
  30. }