From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期二, 30 八月 2022 09:37:38 +0800 Subject: [PATCH] 合并了IOS的代码 --- ZigbeeApp/Shared/Phone/ZigBee/Device/BindObj.cs | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 104 insertions(+), 5 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/BindObj.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/BindObj.cs index ae26b71..10053b4 100755 --- a/ZigbeeApp/Shared/Phone/ZigBee/Device/BindObj.cs +++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/BindObj.cs @@ -19,6 +19,15 @@ } [System.Serializable] + public class AddedDeviceSingleBindResponseAllData : ErrorResponCommon + { + /// <summary> + /// 缃戝叧鐩存帴鍙嶉缁戝畾璁惧淇℃伅 + /// </summary> + public AddedDeviceSingleBindResponseData addedDeviceSingleBindResponseData; + } + + [System.Serializable] public class AddedDeviceBindResponseData { /// <summary> @@ -35,6 +44,56 @@ /// </summary> public int Result = -1; } + + [System.Serializable] + public class AddedDeviceSingleBindResponseData + { + /// <summary> + /// 鎺у埗璁惧鑺傜偣鐨刴ac鍦板潃 + /// </summary> + public string DeviceAddr; + /// <summary> + /// 鎺у埗璁惧鑺傜偣鐨勭鍙e彿 + /// </summary> + public int Epoint; + /// <summary> + ///缁戝畾鍚嶇О + /// </summary> + public string BindName; + /// <summary> + /// 0锛氭垚鍔燂紝閽堝鍦烘櫙鍜岃法缃戝叧缁戝畾 + ///<para>1锛氬け璐ワ紝鑺傜偣璁惧鎴栧満鏅笉瀛樺湪銆�</para> + ///<para>2锛氬悓缃戝叧璁惧缁戝畾锛岀瓑寰呮帶鍒舵簮璁惧鍐欏叆鍙嶉缁撴灉锛涗互涓嬮潰涓婚缁撴灉涓哄噯</para> + /// </summary> + public int Result = -1; + /// <summary> + /// 缁戝畾绫诲瀷 + ///<para>0锛氱粦瀹氳澶� </para> + ///<para>1锛氱粦瀹氬満鏅�</para> + /// </summary> + public int BindType; + /// <summary> + ///缁戝畾鐨刢luster鏁扮粍 + /// </summary> + public List<int> BindClusterList = new List<int>(); + /// <summary> + /// 缁戝畾璁惧Mac鍦板潃锛� 褰揃indType=0鏃跺瓨鍦� + /// </summary> + public string BindMacAddr; + /// <summary> + /// 缁戝畾璁惧鐨勭鍙e彿锛屽綋BindType=0鏃跺瓨鍦� + /// </summary> + public int BindEpoint; + /// <summary> + /// 缁戝畾鍦烘櫙锛屽綋BindType=2鏃跺瓨鍦� + /// </summary> + public int BindScenesId; + /// <summary> + ///缁戝畾鐨勮澶囨垨鍦烘櫙鐨勫悕绉� + /// </summary> + public string ESName; + } + /// <summary> /// 缁戝畾鍒楄〃鐨勪俊鎭� @@ -140,10 +199,54 @@ /// </summary> public int BindScenesId; } + + /// <summary> + /// 鍗曚釜璁惧鐨勬暟鎹� + /// </summary> + [System.Serializable] + public class AddSingleBindData + { + /// <summary> + /// 鎺у埗璁惧鑺傜偣鐨刴ac鍦板潃 + /// </summary> + public string DeviceAddr; + /// <summary> + /// 閿欒淇℃伅 + /// </summary> + public int Epoint; + /// <summary> + ///缁戝畾鍚嶇О锛屼笉淇敼鍚嶇О鏃跺拷鐣ヨ閫夐」 + /// </summary> + public string BindName; + /// <summary> + /// 缁戝畾绫诲瀷 + ///<para>0锛氱粦瀹氳澶� </para> + ///<para>1锛氱粦瀹氬満鏅�</para> + /// </summary> + public int BindType; + /// <summary> + ///缁戝畾鐨刢lusters鏁扮粍锛岄渶瑕佹帶鍒惰澶囩殑OutCluster鍒楄〃涓瓨鍦ㄨcluster銆傚缁戝畾鏌愪釜璁惧鐨刼n/off锛屼负6銆傚缁戝畾鍦烘櫙锛屽~鏃廔d涓�6 + /// </summary> + public List<int> BindClusterList = new List<int>(); + /// <summary> + /// 缁戝畾璁惧Mac鍦板潃锛� 褰揃indType=0鏃跺瓨鍦� + /// </summary> + public string BindMacAddr; + /// <summary> + /// 缁戝畾璁惧鐨勭鍙e彿锛屽綋BindType=0鏃跺瓨鍦� + /// </summary> + public int BindEpoint; + /// <summary> + /// 缁戝畾鍦烘櫙锛屽綋BindType=1鏃跺瓨鍦� + /// </summary> + public int BindScenesId; + + } + #endregion #region 瑙i櫎缁戝畾 - + /// <summary> ///瑙i櫎缁戝畾鏁版嵁,缃戝叧鍙嶉淇℃伅 /// </summary> @@ -332,10 +435,6 @@ /// 缁戝畾鍦烘櫙锛屽綋BindType=1鏃跺瓨鍦� /// </summary> public int BindScenesId; - /// <summary> - /// 缁戝畾鐨勮澶囨垨鍦烘櫙鍚嶇О - /// </summary> - public string ESName; } /// <summary> -- Gitblit v1.8.0