API
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.

PropertyContainer.cs 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using UnivateProperties_API.Model.Properties;
  6. namespace UnivateProperties_API.Containers.Property
  7. {
  8. public class PropertyContainer : Model.Properties.Property
  9. {
  10. public string DateAvailableString { get; set; }
  11. public string StatusString { get; set; }
  12. public string SalesTypeString { get; set; }
  13. public int UserId { get; set; }
  14. public string PropertyUsageType { get; set; }
  15. public List<NewImage> NewImages { get; set; }
  16. public List<PropertyFieldGroup> PropertyOverviewFields { get; set; }
  17. public List<PropertyFieldGroup> PropertyFields { get; set; }
  18. }
  19. public class PropertyFieldGroup
  20. {
  21. public string Name { get; set; }
  22. public List<PropertyFieldEdit> Fields { get; set; }
  23. }
  24. public class PropertyFieldEdit
  25. {
  26. public int Id { get; set; }
  27. public string Name { get; set; }
  28. public string Type { get; set; }
  29. public string Value { get; set; }
  30. public int ItemId { get; set; }
  31. }
  32. public class NewPropertyImages
  33. {
  34. public int PropertyId { get; set; }
  35. public List<NewImage> Images { get; set; }
  36. }
  37. public class NewImage
  38. {
  39. public string Image { get; set; }
  40. public bool IsDefault { get; set; }
  41. }
  42. public class PropertyImageContainer
  43. {
  44. public int PropertyId { get; set; }
  45. public List<PropertyImage> Images { get; set; }
  46. }
  47. public class PropertyAdminContainer
  48. {
  49. public int Id { get; set; }
  50. public string Owner { get; set; }
  51. public string Property { get; set; }
  52. public string Reference { get; set; }
  53. public string Unit { get; set; }
  54. public string Size { get; set; }
  55. public decimal Price { get; set; }
  56. public string Region { get; set; }
  57. public string Town { get; set; }
  58. public string Suburb { get; set; }
  59. public string Status { get; set; }
  60. public string Type { get; set; }
  61. public bool IsPublished { get; set; }
  62. }
  63. }