API

PropertyDisplay.cs 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. namespace UnivateProperties_API.Containers.Property
  3. {
  4. public class PropertyDisplay
  5. {
  6. #region Properties
  7. public int Id { get; set; }
  8. public string PropertyUsageType { get; set; }
  9. public string ShortDescription { get; set; }
  10. public bool IsSale { get; set; }
  11. public string DisplayPrice { get; set; }
  12. public string Area { get; set; }
  13. public string Beds { get; set; }
  14. public string Baths { get; set; }
  15. public string Garages { get; set; }
  16. public bool ShowFooter
  17. {
  18. get
  19. {
  20. bool showFooter = true;
  21. if (string.IsNullOrEmpty(Area) && string.IsNullOrEmpty(Beds) && string.IsNullOrEmpty(Baths) && string.IsNullOrEmpty(Garages))
  22. showFooter = false;
  23. return showFooter;
  24. }
  25. }
  26. public string Province { get; set; }
  27. public string City { get; set; }
  28. public string Suburb { get; set; }
  29. public string PropertyReference { get; set; }
  30. public string DisplayImage { get; set; }
  31. public decimal Price { get; set; }
  32. public DateTime DateCreated { get; set; }
  33. public DateTime DateAvailable { get; set; }
  34. public string DisplayColor { get; set; }
  35. public string DisplayText { get; set; }
  36. #endregion
  37. }
  38. }