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

using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;
namespace GMCabsDriverAssistant.Models
{
public class PlotResponseDto
{
[JsonPropertyName("ID")]
public Guid ID { get; set; }
[JsonPropertyName("ZoneID")]
public Guid ZoneID { get; set; }
[JsonPropertyName("Name")]
public string Name { get; set; }
[JsonPropertyName("Latitude")]
public double? Latitude { get; set; }
[JsonPropertyName("Longitude")]
public double? Longitude { get; set; }
[JsonPropertyName("Radius")]
public decimal? Radius { get; set; }
[JsonPropertyName("Available")]
public bool Available { get; set; }
[JsonPropertyName("Distance")]
public int Distance { get; set; }
[JsonPropertyName("PlotExpiryTime")]
public int PlotExpiryTime { get; set; }
[JsonPropertyName("DriverDistance")]
public int? DriverDistance { get; set; }
[JsonPropertyName("Position")]
public int Position { get; set; }
public string OtherAvailablePlotAreas
{
get
{
return (Distance>=1000)? Name + "(" + Distance/1000 + "k)" : Name + "(" + Distance + "m)";
}
}
}
}