ResponseTask.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using System.Web;
  6. using EsoftWebApi.Entities;
  7. using Task = EsoftWebApi.Entities.Task;
  8. namespace EsoftWebApi.Models
  9. {
  10. public class ResponseTask
  11. {
  12. public ResponseTask(Task task)
  13. {
  14. ID = task.ID;
  15. ExecutorID = task.ExecutorID;
  16. Title = task.Title;
  17. Description = task.Description;
  18. CreatedDateTime = task.CreateDateTime;
  19. Deadline = task.Deadline;
  20. Difficulty = task.Difficulty;
  21. Time = task.Time;
  22. Status = task.Status;
  23. WorkType = task.WorkType;
  24. CompleredDateTime = task.CompletedDateTime;
  25. IsDeleted = task.IsDeleted;
  26. }
  27. public int ID { get; set; }
  28. public int ExecutorID { get; set; }
  29. public string Title { get; set; }
  30. public string Description { get; set; }
  31. public System.DateTime CreatedDateTime { get; set;}
  32. public System.DateTime Deadline { get; set; }
  33. public double Difficulty { get; set; }
  34. public int Time { get; set; }
  35. public string Status { get; set; }
  36. public string WorkType { get; set; }
  37. public Nullable<System.DateTime> CompleredDateTime { get; set; }
  38. public bool IsDeleted { get; set; }
  39. }
  40. }