using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json.Serialization; using System.Threading.Tasks; namespace Traffic.Data.ViewModels { public class ReportRequestViewModel { [JsonPropertyName("StartDate")] public string StartDate { get; set; } [JsonPropertyName("EndDate")] public string EndDate { get; set; } [JsonPropertyName("StartTime")] public int StartTime { get; set; } [JsonPropertyName("EndTime")] public int EndTime { get; set; } [JsonPropertyName("Sites")] public List Sites { get; set; } } public class ReportEventType1ViewModel { /// /// 違規時間 /// [JsonPropertyName("DateTime")] public string DateTime { get; set; } /// /// 汽車 /// [JsonPropertyName("CarCount")] public int CarCount { get; set; } /// /// 機車 /// [JsonPropertyName("MotorcycleCount")] public int MotorcycleCount { get; set; } /// /// 計程車 /// [JsonPropertyName("TaxiCount")] public int TaxiCount { get; set; } /// /// 公車 /// [JsonPropertyName("BusCount")] public int BusCount { get; set; } /// /// 有車牌 /// [JsonPropertyName("HasNumber")] public int HasNumber { get; set; } /// /// 無車牌 /// [JsonPropertyName("HasNoNumber")] public int HasNoNumber { get; set; } } public class ReportEventType2ViewModel { /// /// 時速 /// [JsonPropertyName("Speed")] public string Speed { get; set; } /// /// 違規數量 /// [JsonPropertyName("Count")] public int Count { get; set; } } public class ReportEventType34ViewModel { /// /// 汽車 /// [JsonPropertyName("CarCount")] public int CarCount { get; set; } /// /// 貨車 /// [JsonPropertyName("TruckCount")] public int TruckCount { get; set; } /// /// 大客車 /// [JsonPropertyName("CoachCount")] public int CoachCount { get; set; } } public class ReportEventType6ViewModel { /// /// 噸數 /// [JsonPropertyName("Ton")] public string Ton { get; set; } /// /// 違規數量 /// [JsonPropertyName("Count")] public int Count { get; set; } } }