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.

50 lines
1.3 KiB

1 year ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Text.Json.Serialization;
  5. namespace GMCabsDriverAssistant.Models
  6. {
  7. public class PlotResponseDto
  8. {
  9. [JsonPropertyName("ID")]
  10. public Guid ID { get; set; }
  11. [JsonPropertyName("ZoneID")]
  12. public Guid ZoneID { get; set; }
  13. [JsonPropertyName("Name")]
  14. public string Name { get; set; }
  15. [JsonPropertyName("Latitude")]
  16. public double? Latitude { get; set; }
  17. [JsonPropertyName("Longitude")]
  18. public double? Longitude { get; set; }
  19. [JsonPropertyName("Radius")]
  20. public decimal? Radius { get; set; }
  21. [JsonPropertyName("Available")]
  22. public bool Available { get; set; }
  23. [JsonPropertyName("Distance")]
  24. public int Distance { get; set; }
  25. [JsonPropertyName("PlotExpiryTime")]
  26. public int PlotExpiryTime { get; set; }
  27. [JsonPropertyName("DriverDistance")]
  28. public int? DriverDistance { get; set; }
  29. [JsonPropertyName("Position")]
  30. public int Position { get; set; }
  31. public string OtherAvailablePlotAreas
  32. {
  33. get
  34. {
  35. return (Distance>=1000)? Name + "(" + Distance/1000 + "k)" : Name + "(" + Distance + "m)";
  36. }
  37. }
  38. }
  39. }