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.

36 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. public class Model
  9. {
  10. [JsonProperty(PropertyName = "CreateDate")]
  11. public DateTime CreateDate { get; set; }
  12. [JsonProperty(PropertyName = "CreateUserID")]
  13. public int CreateUserID { get; set; }
  14. [JsonProperty(PropertyName = "Description")]
  15. public string Description { get; set; }
  16. [JsonProperty(PropertyName = "ID")]
  17. public int ID { get; set; }
  18. [JsonProperty(PropertyName = "IsActive")]
  19. public bool IsActive { get; set; }
  20. [JsonProperty(PropertyName = "Make")]
  21. public Make Make { get; set; }
  22. [JsonProperty(PropertyName = "MakeID")]
  23. public int MakeID { get { return this.Make != null ? this.Make.ID : 0; } set { value = this.Make != null ? this.Make.ID : 0; } }
  24. [JsonProperty(PropertyName = "Name")]
  25. public string Name { get; set; }
  26. [JsonProperty(PropertyName = "Product")]
  27. public Product Product { get; set; }
  28. [JsonProperty(PropertyName = "ProductID")]
  29. public int ProductID { get { return this.Product != null ? this.Product.ID : 0; } set { value = this.Product != null ? this.Product.ID : 0; } }
  30. [JsonProperty(PropertyName = "UpdateDate")]
  31. public DateTime? UpdateDate { get; set; }
  32. [JsonProperty(PropertyName = "UpdateUserID")]
  33. public int? UpdateUserID { get; set; }
  34. }
  35. }