CrabtreeOn,印度客户定制APP,迁移2.0平台版本
wxr
2022-06-22 9e2ae94d2d3f79fe063fcad7f01867348dc65e1d
Crabtree/SmartHome/HDL/Operation/ResponseEntity/Timer.cs
@@ -69,6 +69,63 @@
        /// 时区
        /// </summary>
        public int TimeZone { get; set; }
    }
    /// <summary>
    /// 旧服务器迁移过来的对象
    /// </summary>
    [Serializable]
    public class Timer_Old
    {
        /// <summary>
        /// 定时器的唯一ID
        /// </summary>
        public string Guid { get; set; }
        /// <summary>
        /// 定时器备注名
        /// </summary>
        public string TimerName { get; set; }
        /// <summary>
        /// 网关ID
        /// </summary>
        public int RegionID { get; set; }
        /// <summary>
        /// 执行时间点
        /// </summary>
        public string ExecutionTime { get; set; }
        /// <summary>
        /// 重复周期
        /// </summary>
        public string Periodicity { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsStart { get; set; }
        /// <summary>
        /// 定时器重复类型
        /// </summary>
        public TimerType TimerType { get; set; }
        /// <summary>
        /// 控制的设备数据
        /// </summary>
        public string ControlDeviceData = "";
        /// <summary>
        /// 房间名称
        /// </summary>
        public string RoomName { get; set; }
        /// <summary>
        /// 时区
        /// </summary>
        public int TimeZone { get; set; }
    }
@@ -137,4 +194,35 @@
    }
    /// <summary>
    /// 旧平台定时器的控制数据
    /// </summary>
    public class DeviceInfo
    {
        public string DevicePath { get; set; }
        public int DeviceType { get; set; }
        public byte SubnetID { get; set; }
        public byte DeviceID { get; set; }
        public byte LoopID { get; set; }
        public int Command { get; set; }
        public byte [] SendBytes { get; set; }
        public DeviceType Type;
        public string SavePath;
        public string CommonLoopID {
            get {
                return SubnetID.ToString () + "_" + DeviceID.ToString () + "_" + LoopID.ToString ();
            }
        }
        public string Name;
    }
}