From 25ce81434a6ce69cf10f12d4f5a25ab80a339ba7 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 03 三月 2021 17:50:53 +0800 Subject: [PATCH] 2021-3-3-3 --- HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Pir.cs | 31 +++++++++++++++++++++++++++++-- 1 files changed, 29 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..8edcd3d 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Pir.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Pir.cs @@ -2,15 +2,42 @@ 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>(); + 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