using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace BayonetTransfer.Model { internal class BayonetModel { /// /// 服务区名称 /// [Common.Json.Ocr(WriteName = "serverPartName")] public string Serverpart_Name { get; set; } /// /// 服务区位置名称 /// [Common.Json.Ocr(WriteName = "serverPartRegion")] public string Serverpart_Region { get; set; } /// /// 进出类型:0出,1进 /// [Common.Json.Ocr(WriteName = "inOutType")] public int InOut_Type { get; set; } /// /// 时间 /// [Common.Json.Ocr(WriteName = "inOutTime", WriteDateTimeFormat = "yyyy-MM-dd HH:mm:ss", ReadDateTimeFormat = "yyyyMMddHHmmss")] //[JsonConverter(typeof(Common.Json.DateTimeFormatConverter), "yyyy-MM-dd HH:mm:ss")] public DateTime InOut_Time { get; set; } /// /// 车辆类型 /// [Common.Json.Ocr(WriteName = "vehicleType")] public string Vehicle_Type { get; set; } /// /// 车牌号 /// [Common.Json.Ocr(WriteName = "licensePlate")] public string License_Plate { get; set; } /// /// 车速(km/h) /// [Common.Json.Ocr(WriteName = "vehicleSpeed")] public decimal? Vehicle_Speed { get; set; } /// /// 停留时长(秒) /// [Common.Json.Ocr(WriteName = "stayTimes")] public string Stay_Times { get; set; } /// /// 图片 /// [Common.Json.Ocr(WriteName = "bayonetDesc")] public string Bayonet_Desc { get; set; } } }