From e985d1b79937c41ebdaa4caa2974ec03929db915 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 20 一月 2021 11:43:54 +0800 Subject: [PATCH] 20200120:ios 红外包蓝牙sdk对接 --- HDL_ON/Entity/Function/Light.cs | 36 +++++++++++++++++++++++++++++++++++- 1 files changed, 35 insertions(+), 1 deletions(-) diff --git a/HDL_ON/Entity/Function/Light.cs b/HDL_ON/Entity/Function/Light.cs index 34d5363..d430811 100644 --- a/HDL_ON/Entity/Function/Light.cs +++ b/HDL_ON/Entity/Function/Light.cs @@ -96,10 +96,44 @@ /// </summary> [Newtonsoft.Json.JsonIgnore] public int lastBrightness = 100; + + int hadFadeTime = 99; + /// <summary> + /// 鏄惁鎷ユ湁娓愬彉鏃堕棿 + /// </summary> + public bool HadFadeTime + { + get + { + if (hadFadeTime == 99) + { + var t = attributes.Find((obj) => obj.key == FunctionAttributeKey.FadeTime); + if (t == null) + { + hadFadeTime = 0; + return false; + } + else + { + hadFadeTime = 1; + return true; + } + } + if (hadFadeTime == 1) + { + return true; + } + else + { + return false; + } + } + } + [Newtonsoft.Json.JsonIgnore] FunctionAttributes trait_fadeTime; /// <summary> - /// 浜害鍊� + /// 娓愬彉鏃堕棿 /// </summary> [Newtonsoft.Json.JsonIgnore] public int fadeTime -- Gitblit v1.8.0