68 lines
2.0 KiB
C#
68 lines
2.0 KiB
C#
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
|
||
{
|
||
/// <summary>
|
||
/// 服务区名称
|
||
/// </summary>
|
||
[Common.Json.Ocr(WriteName = "serverPartName")]
|
||
public string Serverpart_Name { get; set; }
|
||
|
||
/// <summary>
|
||
/// 服务区位置名称
|
||
/// </summary>
|
||
[Common.Json.Ocr(WriteName = "serverPartRegion")]
|
||
public string Serverpart_Region { get; set; }
|
||
|
||
/// <summary>
|
||
/// 进出类型:0出,1进
|
||
/// </summary>
|
||
[Common.Json.Ocr(WriteName = "inOutType")]
|
||
public int InOut_Type { get; set; }
|
||
|
||
/// <summary>
|
||
/// 时间
|
||
/// </summary>
|
||
[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; }
|
||
|
||
/// <summary>
|
||
/// 车辆类型
|
||
/// </summary>
|
||
[Common.Json.Ocr(WriteName = "vehicleType")]
|
||
public string Vehicle_Type { get; set; }
|
||
/// <summary>
|
||
/// 车牌号
|
||
/// </summary>
|
||
[Common.Json.Ocr(WriteName = "licensePlate")]
|
||
public string License_Plate { get; set; }
|
||
|
||
/// <summary>
|
||
/// 车速(km/h)
|
||
/// </summary>
|
||
[Common.Json.Ocr(WriteName = "vehicleSpeed")]
|
||
public decimal? Vehicle_Speed { get; set; }
|
||
|
||
/// <summary>
|
||
/// 停留时长(秒)
|
||
/// </summary>
|
||
[Common.Json.Ocr(WriteName = "stayTimes")]
|
||
public string Stay_Times { get; set; }
|
||
|
||
/// <summary>
|
||
/// 图片
|
||
/// </summary>
|
||
[Common.Json.Ocr(WriteName = "bayonetDesc")]
|
||
public string Bayonet_Desc { get; set; }
|
||
}
|
||
}
|