From 171bf03f3664226eeff2b20ee9bd2e914b63a17d Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 13 三月 2020 09:18:50 +0800 Subject: [PATCH] 20200313 --- HDL_ON/Entity/Function/Curtain/Curtain.cs | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) diff --git a/HDL_ON/Entity/Function/Curtain/Curtain.cs b/HDL_ON/Entity/Function/Curtain/Curtain.cs index a247279..7174afa 100644 --- a/HDL_ON/Entity/Function/Curtain/Curtain.cs +++ b/HDL_ON/Entity/Function/Curtain/Curtain.cs @@ -3,14 +3,40 @@ { public class Curtain : Function { + /* + 绐楀笜灞炴�у垪琛細trait: [switch,openLevel,lock] + 灞炴�� 鎻忚堪 + switch on/off/stop; + openLevel 0-100; + lock boolean (Lock閿佸畾鎺у埗) + */ public Curtain() { - //functionType = "CurtainModule"; } /// <summary> /// 绐楀笜鐘舵�� /// 0鍋滐紱1寮�锛�2鍏� /// </summary> public byte state = 0; + + + /// <summary> + /// 鑾峰彇鍔熻兘绫诲瀷 + /// </summary> + /// <returns></returns> + protected override string GetFunctionType() + { + string type = "Curtain"; + if (PropertyArray.Contains("curtaintype")) + { + type = "MotorCurtain"; + if (PropertyArray.Contains("rollingshutter")) + { + type = "RollingShutter"; + } + } + return type; + } + } } -- Gitblit v1.8.0