From 0d1b995a55d2c9a049550b28f72ca0265ca588f0 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期四, 04 三月 2021 19:49:58 +0800 Subject: [PATCH] 2021-3-4-2 --- HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Pir.cs | 38 ++++++++++++++++++++++++++++++++++++-- 1 files changed, 36 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Pir.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Pir.cs index 078249c..cc45c1f 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Pir.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Pir.cs @@ -2,15 +2,49 @@ using System.Collections.Generic; namespace HDL_ON.UI.UI2.PersonalCenter.PirDevice { + [System.Serializable] public class Pir { /// <summary> /// 娣诲姞鎸夐敭鍒楄〃 /// </summary> public static List<ButtonObj> BuottonList = new List<ButtonObj>(); + public static List<Pir> pirDeviceList = new List<Pir>(); + /// <summary> + /// 褰撳墠閫昏緫 + /// </summary> + public static Pir currPir; + /// <summary> + /// 璁惧ID + /// </summary> + public string deviceId = string.Empty; + public string homeId = string.Empty; + public string gatewayId = string.Empty; + public string name = string.Empty; + public string sid = string.Empty; + public string spk = string.Empty; + public string oid = string.Empty; + public string omodel = string.Empty; + public bool collect =false; + public bool online = false; + public string controlCounter = string.Empty; - } - public class Control + public List<Attributes> attributes = new List<Attributes>(); + +} +[Serializable] +public class Attributes +{ + public string key = string.Empty; + public string data_type = string.Empty; + public int max = 0; + public int min = 0; + public int sort = 0; + public List<string> value = new List<string>(); +} + + +public class Control { /// <summary> /// 绾㈠瀹濊澶嘔d -- Gitblit v1.8.0