Replacement for JDIS Importer
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.

37 lines
1.5 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Newtonsoft.Json;
  6. namespace jdis_import.RESTObjects
  7. {
  8. [JsonObject(MemberSerialization.OptIn)]
  9. public class Model
  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 = "IsActive")]
  20. public bool IsActive { get; set; }
  21. [JsonProperty(PropertyName = "Make")]
  22. public Make Make { get; set; }
  23. [JsonProperty(PropertyName = "MakeID")]
  24. public int MakeID { get { return this.Make != null ? this.Make.ID : 0; } set { value = this.Make != null ? this.Make.ID : 0; } }
  25. [JsonProperty(PropertyName = "Name")]
  26. public string Name { get; set; }
  27. [JsonProperty(PropertyName = "Product")]
  28. public Product Product { get; set; }
  29. [JsonProperty(PropertyName = "ProductID")]
  30. public int ProductID { get { return this.Product != null ? this.Product.ID : 0; } set { value = this.Product != null ? this.Product.ID : 0; } }
  31. [JsonProperty(PropertyName = "UpdateDate")]
  32. public DateTime? UpdateDate { get; set; }
  33. [JsonProperty(PropertyName = "UpdateUserID")]
  34. public int? UpdateUserID { get; set; }
  35. }
  36. }