API
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

PropertyContainer.cs 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 StatusString { get; set; }
  11. public string SalesTypeString { get; set; }
  12. public int UserId { get; set; }
  13. public string PropertyUsageType { get; set; }
  14. public List<NewImage> NewImages { get; set; }
  15. public List<PropertyFieldGroup> PropertyOverviewFields { get; set; }
  16. public List<PropertyFieldGroup> PropertyFields { get; set; }
  17. }
  18. public class PropertyFieldGroup
  19. {
  20. public string Name { get; set; }
  21. public List<PropertyFieldEdit> Fields { get; set; }
  22. }
  23. public class PropertyFieldEdit
  24. {
  25. public int Id { get; set; }
  26. public string Name { get; set; }
  27. public string Type { get; set; }
  28. public string Value { get; set; }
  29. public int ItemId { get; set; }
  30. }
  31. public class NewPropertyImages
  32. {
  33. public int PropertyId { get; set; }
  34. public List<NewImage> Images { get; set; }
  35. }
  36. public class NewImage
  37. {
  38. public string Image { get; set; }
  39. public bool IsDefault { get; set; }
  40. }
  41. public class PropertyImageContainer
  42. {
  43. public int PropertyId { get; set; }
  44. public List<PropertyImage> Images { get; set; }
  45. }
  46. public class PropertyAdminContainer
  47. {
  48. public int Id { get; set; }
  49. public string Owner { get; set; }
  50. public string Property { get; set; }
  51. public string Reference { get; set; }
  52. public string Unit { get; set; }
  53. public string Size { get; set; }
  54. public decimal Price { get; set; }
  55. public string Region { get; set; }
  56. public string Town { get; set; }
  57. public string Suburb { get; set; }
  58. public string Status { get; set; }
  59. public string Type { get; set; }
  60. public bool IsPublished { get; set; }
  61. }
  62. }