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

82 lines
1.4 KiB

3 years ago
using EC.Entity.CameraInfo;
using EC.Entity.Warning;
using EC.Onvif;
using Prism.Events;
using System.Collections.Generic;
namespace EC.UsingEventAggregator
{
public class LogModel
{
public LogModel(int level, string message, string remark = "")
{
this.level = level;
this.message = message;
this.remark = remark;
}
public int level { get; set; }
public string message { get; set; }
public string remark { get; set; }
}
public class MQModel
{
public int level { get; set; }
public string message { get; set; }
}
public class MessageSentEvent : PubSubEvent<string>
{
}
/// <summary>
/// MQ消息
/// </summary>
public class MQMessageEvent : PubSubEvent<MQModel>
{
}
/// <summary>
/// 显示日志
/// </summary>
public class ShowMessageSentEvent : PubSubEvent<LogModel>
{
}
/// <summary>
/// 保存日志
/// </summary>
public class SaveLogEvent : PubSubEvent<LogModel>
{
}
/// <summary>
/// 在主窗体播放视频
/// </summary>
public class ShowVoideInMainEvent : PubSubEvent<string>
{
}
/// <summary>
/// 预警视频数据
/// </summary>
public class WaningVoideEvent : PubSubEvent<WarningModel>
{
}
/// <summary>
/// 预警分析图片数据
/// </summary>
public class WaningImageBytesEvent : PubSubEvent<byte[]>
{
}
public class SendOnvifClientEvent : PubSubEvent<OnvifClient>
{
}
public class SendIpcInfoListEvent : PubSubEvent<List<IpcInfo>>
{
}
}