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.
25 lines
653 B
25 lines
653 B
namespace JiLinApp.Docking.FenceAlarm;
|
|
|
|
public class DeviceStateMessage
|
|
{
|
|
public int deviceID { get; set; }//设备唯一ID
|
|
public string StatusTime { get; set; }//时间
|
|
public int channel { get; set; }//防区
|
|
public int StatusType { get; set; }//状态
|
|
|
|
public DeviceStateMessage(int id, DateTime time, int Channel, int statusType)
|
|
{
|
|
deviceID = id;
|
|
StatusTime = time.ToString("yyyy-MM-dd HH:mm:ss");
|
|
channel = Channel;
|
|
StatusType = statusType;
|
|
}
|
|
|
|
public DeviceStateMessage()
|
|
{
|
|
deviceID = -1;
|
|
StatusTime = "";
|
|
channel = -1;
|
|
StatusType = -1;
|
|
}
|
|
}
|