From d53e6af2c5f17838fa79659614b15a2a1f383399 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 31 三月 2023 10:04:58 +0800 Subject: [PATCH] 1 --- Crabtree/SmartHome/HDL/Operation/ResponseEntity/Timer.cs | 92 +++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 90 insertions(+), 2 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Operation/ResponseEntity/Timer.cs b/Crabtree/SmartHome/HDL/Operation/ResponseEntity/Timer.cs index d9d0404..30d6d74 100644 --- a/Crabtree/SmartHome/HDL/Operation/ResponseEntity/Timer.cs +++ b/Crabtree/SmartHome/HDL/Operation/ResponseEntity/Timer.cs @@ -7,9 +7,9 @@ [Serializable] public class Timer { - public string RequestVersion = MainPage.RequestVersion; + //public string RequestVersion = MainPage.RequestVersion; - public string RequestSource = MainPage.RequestSource; + //public string RequestSource = MainPage.RequestSource; public static List<Function> deviceList = new List<Function> (); @@ -64,6 +64,63 @@ /// 鎴块棿鍚嶇О /// </summary> public string RoomName = "ALL"; + + /// <summary> + /// 鏃跺尯 + /// </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> /// 鏃跺尯 @@ -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; + } + + + } -- Gitblit v1.8.0