You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

188 lines
4.6 KiB
C#

namespace DS.WMS.Common.Data;
public class LinkEventNotify
{
/// <summary>
/// 方法名,用于标识报文用途 事件固定OnEventNotify
/// </summary>
public string Method { get; set; }
/// <summary>
/// 事件参数信息
/// </summary>
public LinkParams Params { get; set; }
}
public class LinkParams
{
/// <summary>
/// 事件从接收者(如设备接入框架)发出的时间,格式 YYYY-mm-dd hh:MM:ss
/// </summary>
public DateTime SendTime { get; set; }
/// <summary>
/// 事件类别,如视频事件、门禁事件
/// </summary>
public string Ability { get; set; }
/// <summary>
/// 指定的事件接收用户列表,用于事件源发起组件指定接收用户,如指定用户接收手动事件、在部分应用中可以设置事件到指定用户接收
/// </summary>
public string Uids { get; set; }
/// <summary>
/// 事件信息 最大支持50条事件数据
/// </summary>
public List<EventsItem> Events { get; set; }
}
public class EventDetailsItem
{
/// <summary>
/// 事件类别
/// </summary>
public string Ability { get; set; }
/// <summary>
/// 事件其它扩展信息
/// </summary>
public Object Data { get; set; }
/// <summary>
/// 事件源ID
/// </summary>
public string EventOriginalId { get; set; }
/// <summary>
/// 事件类型
/// </summary>
public int EventType { get; set; }
/// <summary>
/// 位置编号
/// </summary>
public string LocationIndexCode { get; set; }
/// <summary>
/// 位置名称
/// </summary>
public string LocationName { get; set; }
/// <summary>
/// 区域编号
/// </summary>
public string RegionIndexCode { get; set; }
/// <summary>
/// 根节点/热成像/热成像2组
/// </summary>
public string RegionName { get; set; }
/// <summary>
/// 事件源编号
/// </summary>
public string SrcIndex { get; set; }
/// <summary>
/// 事件源名称
/// </summary>
public string SrcName { get; set; }
/// <summary>
/// 事件源类型
/// </summary>
public string SrcType { get; set; }
}
public class EventsItem
{
/// <summary>
///
/// </summary>
public List<EventDetailsItem> EventDetails { get; set; }
/// <summary>
/// 事件唯一标识
/// </summary>
public string EventId { get; set; }
/// <summary>
///
/// </summary>
public int EventLvl { get; set; }
/// <summary>
/// 温度报警
/// </summary>
public string EventName { get; set; }
/// <summary>
///
/// </summary>
public string EventOldId { get; set; }
/// <summary>
/// 事件类型
/// </summary>
public int EventType { get; set; }
/// <summary>
/// 事件发生时间(设备时间)
/// </summary>
public string HappenTime { get; set; }
/// <summary>
/// 联动动作
/// </summary>
public List <LinkageAcionItem> LinkageAcion { get; set; }
/// <summary>
/// 联动结果更新
/// </summary>
public List <LinkageResultItem > LinkageResult { get; set; }
/// <summary>
///
/// </summary>
public string Remark { get; set; }
/// <summary>
///
/// </summary>
public string RuleDescription { get; set; }
/// <summary>
///
/// </summary>
public string SrcIndex { get; set; }
/// <summary>
/// 事件源名称
/// </summary>
public string SrcName { get; set; }
/// <summary>
///
/// </summary>
public string SrcParentIndex { get; set; }
/// <summary>
/// 事件源类型
/// </summary>
public string SrcType { get; set; }
/// <summary>
/// 事件状态 0-瞬时
/// 1-开始
/// 2-停止
/// 3-事件脉冲
/// 4-联动结果更新
/// 8-注释
/// </summary>
public int Status { get; set; }
/// <summary>
/// 事件结束时间
/// </summary>
public string StopTime { get; set; }
/// <summary>
/// 脉冲超时时间
/// </summary>
public int Timeout { get; set; }
}
public class LinkageAcionItem
{
/// <summary>
/// 联动内容
/// </summary>
public string Content { get; set; }
/// <summary>
/// 联动类型
/// </summary>
public string linkageType { get; set; }
}
public class LinkageResultItem
{
/// <summary>
/// summary
/// </summary>
public string Content { get; set; }
/// <summary>
/// 联动类型
/// </summary>
public string LinkageType { get; set; }
}