using System; namespace HDL_ON.Entity { public class Curtain : Function { /* 窗帘属性列表:trait: [switch,openLevel,lock] 属性 描述 switch on/off/stop; openLevel 0-100; lock boolean (Lock锁定控制) */ public Curtain() { } /// /// 窗帘状态 /// 0停;1开;2关 /// public byte state = 0; /// /// 获取功能类型 /// /// protected override string GetFunctionType() { string type = "Curtain"; if (PropertyArray.Contains("curtaintype")) { type = "MotorCurtain"; if (PropertyArray.Contains("rollingshutter")) { type = "RollingShutter"; } } return type; } } }