|
|
namespace DS.WMS.Common.Data;
|
|
|
|
|
|
public class CarEventNotify
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 方法名,用于标识报文用途 事件固定OnEventNotify
|
|
|
/// </summary>
|
|
|
public string Method { get; set; }
|
|
|
/// <summary>
|
|
|
/// 事件参数信息
|
|
|
/// </summary>
|
|
|
public CarParams Params { get; set; }
|
|
|
}
|
|
|
|
|
|
public class CarParams
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 事件从接收者(如设备接入框架)发出的时间,格式 YYYY-mm-dd hh:MM:ss
|
|
|
/// </summary>
|
|
|
public DateTime SendTime { get; set; }
|
|
|
/// <summary>
|
|
|
/// 事件类别,如视频事件、门禁事件
|
|
|
/// </summary>
|
|
|
public string Ability { get; set; }
|
|
|
/// <summary>
|
|
|
/// 事件信息 最大支持50条事件数据
|
|
|
/// </summary>
|
|
|
public List<CarEventsItem> Events { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
public class CarEventDetailsItem
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
/// 事件唯一标识
|
|
|
/// </summary>
|
|
|
public string EventIndex { get; set; }
|
|
|
/// <summary>
|
|
|
/// 车牌号
|
|
|
/// </summary>
|
|
|
public string PlateNo { get; set; }
|
|
|
/// <summary>
|
|
|
/// 车牌类型key
|
|
|
/// </summary>
|
|
|
public string PlateType { get; set; }
|
|
|
/// <summary>
|
|
|
/// 车牌类型名称
|
|
|
/// </summary>
|
|
|
public string PlateTypeName { get; set; }
|
|
|
/// <summary>
|
|
|
/// 车辆类型key
|
|
|
/// </summary>
|
|
|
public string VehicleType { get; set; }
|
|
|
/// <summary>
|
|
|
/// 车辆类型名称
|
|
|
/// </summary>
|
|
|
public string VehicleTypeName { get; set; }
|
|
|
/// <summary>
|
|
|
/// 过车时间
|
|
|
/// </summary>
|
|
|
public string CrossTime { get; set; }
|
|
|
/// <summary>
|
|
|
/// 整型,速度值
|
|
|
/// </summary>
|
|
|
public int Speed { get; set; }
|
|
|
/// <summary>
|
|
|
/// 布防类型 1-被盗车
|
|
|
/// 2-被抢车
|
|
|
/// 3-嫌疑车
|
|
|
/// 4-交通违法车
|
|
|
/// 5-紧急查控车
|
|
|
/// 6-违章车
|
|
|
/// </summary>
|
|
|
public string AlarmType { get; set; }
|
|
|
/// <summary>
|
|
|
/// 布防类型名称
|
|
|
/// </summary>
|
|
|
public string AlarmTypeName { get; set; }
|
|
|
/// <summary>
|
|
|
/// 卡口点主键
|
|
|
/// </summary>
|
|
|
public string MonitorId { get; set; }
|
|
|
/// <summary>
|
|
|
/// 卡口点名称
|
|
|
/// </summary>
|
|
|
public string MonitorName { get; set; }
|
|
|
/// <summary>
|
|
|
/// 整型,违法类型0–正常过车 1–超速 2–逆行 3–黑名单5-违停
|
|
|
/// </summary>
|
|
|
public int IllegalType { get; set; }
|
|
|
/// <summary>
|
|
|
/// 点位或是区间名称
|
|
|
/// </summary>
|
|
|
public string MixedName { get; set; }
|
|
|
/// <summary>
|
|
|
/// 点位测速或是区间测速类型
|
|
|
/// </summary>
|
|
|
public int MixedType { get; set; }
|
|
|
/// <summary>
|
|
|
/// 点位或是区间id
|
|
|
/// </summary>
|
|
|
public string MixedId { get; set; }
|
|
|
/// <summary>
|
|
|
/// 卡口点编号
|
|
|
/// </summary>
|
|
|
public string MonitorIndexCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// 包含车牌和车辆url
|
|
|
/// </summary>
|
|
|
public PicUrl PicUrl { get; set; }
|
|
|
/// <summary>
|
|
|
/// 图片服务器编号
|
|
|
/// </summary>
|
|
|
public string ImageIndexCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// 超速阈值
|
|
|
/// </summary>
|
|
|
public string SpeedLimit { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 车主信息
|
|
|
/// </summary>
|
|
|
public Person Person { get; set; }
|
|
|
}
|
|
|
|
|
|
public class PicUrl
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 车牌url
|
|
|
/// </summary>
|
|
|
public string PlatePicUrl { get; set; }
|
|
|
/// <summary>
|
|
|
/// 车辆url
|
|
|
/// </summary>
|
|
|
public string VehiclePicUrl { get; set; }
|
|
|
}
|
|
|
public class Person
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 车主姓名
|
|
|
/// </summary>
|
|
|
public string PersonName { get; set; }
|
|
|
/// <summary>
|
|
|
/// 车主电话
|
|
|
/// </summary>
|
|
|
public string PhoneNo { get; set; }
|
|
|
}
|
|
|
public class CarEventsItem
|
|
|
{
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
public CarEventDetailsItem Data { get; set; }
|
|
|
/// <summary>
|
|
|
/// 事件唯一标识
|
|
|
/// </summary>
|
|
|
public string EventId { get; set; }
|
|
|
/// <summary>
|
|
|
/// 事件源编号,物理设备是资源编号
|
|
|
/// </summary>
|
|
|
public string SrcIndex { get; set; }
|
|
|
/// <summary>
|
|
|
/// 事件源类型
|
|
|
/// </summary>
|
|
|
public string SrcType { get; set; }
|
|
|
/// <summary>
|
|
|
/// 事件类型 monitorPoint:园区-卡口点
|
|
|
/// </summary>
|
|
|
public int EventType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 事件状态 0-瞬时
|
|
|
/// 1-开始
|
|
|
/// 2-停止
|
|
|
/// 3-事件脉冲
|
|
|
/// 4-联动结果更新
|
|
|
/// 5-事件图片异步上传
|
|
|
/// </summary>
|
|
|
public int Status { get; set; }
|
|
|
/// <summary>
|
|
|
/// 脉冲超时时间
|
|
|
/// </summary>
|
|
|
public int Timeout { get; set; }
|
|
|
/// <summary>
|
|
|
/// 事件发生时间(设备时间)
|
|
|
/// </summary>
|
|
|
public string HappenTime { get; set; }
|
|
|
/// <summary>
|
|
|
/// 事件发生的事件源父设备
|
|
|
/// </summary>
|
|
|
public string SrcParentIndex { get; set; }
|
|
|
|
|
|
} |