API
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

PropertyDisplay.cs 1.1KB

123456789101112131415161718192021222324252627282930313233343536
  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 ShortDescription { get; set; }
  9. public bool IsSale { get; set; }
  10. public string DisplayPrice { get; set; }
  11. public string Area { get; set; }
  12. public string Beds { get; set; }
  13. public string Baths { get; set; }
  14. public string Garages { get; set; }
  15. public bool ShowFooter
  16. {
  17. get
  18. {
  19. bool showFooter = true;
  20. if (string.IsNullOrEmpty(Area) && string.IsNullOrEmpty(Beds) && string.IsNullOrEmpty(Baths) && string.IsNullOrEmpty(Garages))
  21. showFooter = false;
  22. return showFooter;
  23. }
  24. }
  25. public string Province { get; set; }
  26. public string City { get; set; }
  27. public string Suburb { get; set; }
  28. public string DisplayImage { get; set; }
  29. public decimal Price { get; set; }
  30. public DateTime DateCreated { get; set; }
  31. #endregion
  32. }
  33. }