API
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

PropertyDisplay.cs 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  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 DisplayImage { get; set; }
  30. public decimal Price { get; set; }
  31. public DateTime DateCreated { get; set; }
  32. #endregion
  33. }
  34. }