You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.8 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 Equipment
  10. {
  11. [JsonProperty(PropertyName = "CreateDate")]
  12. public DateTime CreateDate { get; set; }
  13. [JsonProperty(PropertyName = "CreateUserID")]
  14. public int CreateUserID { get; set; }
  15. [JsonProperty(PropertyName = "BarcodeID")]
  16. public int? BarcodeID { get; set; }
  17. [JsonProperty(PropertyName = "Description")]
  18. public string Description { get; set; }
  19. [JsonProperty(PropertyName = "ID")]
  20. public int ID { get; set; }
  21. [JsonProperty(PropertyName = "IsActive")]
  22. public bool IsActive { get; set; }
  23. [JsonProperty(PropertyName = "LastServiceDate")]
  24. public DateTime? LastServiceDate { get; set; }
  25. [JsonProperty(PropertyName = "Location")]
  26. public string Location { get; set; }
  27. [JsonProperty(PropertyName = "ManufacturerYear")]
  28. public string ManufacturerYear { get; set; }
  29. [JsonProperty(PropertyName = "MeterReading")]
  30. public string MeterReading { get; set; }
  31. [JsonProperty(PropertyName = "Number")]
  32. public string Number { get; set; }
  33. [JsonProperty(PropertyName = "Odometer")]
  34. public string Odometer { get; set; }
  35. [JsonProperty(PropertyName = "SerialNumber")]
  36. public string SerialNumber { get; set; }
  37. [JsonProperty(PropertyName = "UpdateDate")]
  38. public DateTime? UpdateDate { get; set; }
  39. [JsonProperty(PropertyName = "UpdateUserID")]
  40. public int? UpateUserID { get; set; }
  41. [JsonProperty(PropertyName = "Make")]
  42. public Make Make { get; set; }
  43. [JsonProperty(PropertyName = "MakeID")]
  44. public int MakeID { get { return this.Make != null ? this.Make.ID : 0; } set { value = this.Make != null ? this.Make.ID : 0; } }
  45. [JsonProperty(PropertyName = "Product")]
  46. public Product Product { get; set; }
  47. [JsonProperty(PropertyName = "ProductID")]
  48. public int ProductID { get { return this.Product != null ? this.Product.ID : 0; } set { value = this.Product != null ? this.Product.ID : 0; } }
  49. [JsonProperty(PropertyName = "Model")]
  50. public Model Model { get; set; }
  51. [JsonProperty(PropertyName = "ModelID")]
  52. public int ModelID { get { return this.Model != null ? this.Model.ID : 0; } set { value = this.Model != null ? this.Model.ID : 0; } }
  53. [JsonProperty(PropertyName = "Customer")]
  54. public Customer Customer { get; set; }
  55. [JsonProperty(PropertyName = "CustomerID")]
  56. public int CustomerID { get { return this.Customer != null ? this.Customer.ID : 0; } set { value = this.Customer != null ? this.Customer.ID : 0; } }
  57. }
  58. }