Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

52 righe
1.7 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Newtonsoft.Json;
  6. namespace importer.RestObjects
  7. {
  8. [JsonObject(MemberSerialization.OptIn)]
  9. public class InspectionType
  10. {
  11. [JsonProperty(PropertyName = "CreateDate")]
  12. public DateTime CreateDate { get; set; }
  13. [JsonProperty(PropertyName = "CreateUserID")]
  14. public int CreateUserID { get; set; }
  15. [JsonProperty(PropertyName = "Description")]
  16. public string Description { get; set; }
  17. [JsonProperty(PropertyName = "ID")]
  18. public int ID { get; set; }
  19. [JsonProperty(PropertyName = "InspectionLevels")]
  20. public List<InspectionLevel> InspectionLevels { get; set; }
  21. [JsonProperty(PropertyName = "IsActive")]
  22. public bool IsActive { get; set; }
  23. [JsonProperty(PropertyName = "Name")]
  24. public string Name { get; set; }
  25. [JsonProperty(PropertyName = "UpdateDate")]
  26. public DateTime? UpdateDate { get; set; }
  27. [JsonProperty(PropertyName = "UpdateUserID")]
  28. public int? UpdateUserID { get; set; }
  29. /*
  30. "CreateDate":"\/Date(928164000000-0400)\/",
  31. "CreateUserID":2147483647,
  32. "Description":"String content",
  33. "ID":2147483647,
  34. "InspectionLevels":[{
  35. "CreateDate":"\/Date(928164000000-0400)\/",
  36. "CreateUserID":2147483647,
  37. "Description":"String content",
  38. "ID":2147483647,
  39. "InspectionTypeID":2147483647,
  40. "IsActive":true,
  41. "Name":"String content",
  42. "UpdateDate":"\/Date(928164000000-0400)\/",
  43. "UpdateUserID":2147483647
  44. }],
  45. "IsActive":true,
  46. "Name":"String content",
  47. "UpdateDate":"\/Date(928164000000-0400)\/",
  48. "UpdateUserID":2147483647
  49. */
  50. }
  51. }