Milestone.cs 774 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using WebService;
  6. namespace WebPortal.Models
  7. {
  8. public class Milestone
  9. {
  10. public int year { get; set; }
  11. public DateTime stoneTime { get; set; }
  12. public string content { get; set; }
  13. public Milestone() { }
  14. public Milestone(contentTreeObj treeObj)
  15. {
  16. DateTime month = DateTime.ParseExact(treeObj.expiredDate, "dd/MM/yyyy HH:mm:ss", null);
  17. this.year = month.Year;
  18. this.stoneTime = month;
  19. this.content = treeObj.description;
  20. }
  21. }
  22. public class Milestones
  23. {
  24. public int year { get; set; }
  25. public List<Milestone> mileStones { get; set; }
  26. }
  27. }