using EC.Entity.Video;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ECMonitor.Code.Models
{
public class VideoShowModel
{
public VideoShowModel()
{
UPDateTime();
}
public string Message { get; set; }
public string CameraIp { get; set; }
public MonitorCamera Camera { get; set; }
///
/// 控件注册名称
///
public string UCName { get; set; }
///
/// 更新时间
///
private DateTime upDateTime;
public void UPDateTime()
{
upDateTime = new DateTime();
}
///
/// 判断预警是否接触
///
///
public bool IsTimeOut()
{
DateTime now = new DateTime();
double difSeconds = DateUnit.DateDiffSeconds(upDateTime, now);
return difSeconds > 30;
}
internal string RtspURL()
{
return Camera.RtspURL();
}
}
}