using System; using System.Collections.Generic; using System.Globalization; using static ZigBee.Device.Scene; namespace Shared.Common { /// /// 场景添加执行目标(设备、时间间隔、场景) /// [System.Serializable] public class SceneTargetDeviceUI { /// /// 场景添加对象的类型 默认0设备 1时间段 2场景 /// public int Type = 0; /// /// 任务列表中的数据列表 /// Type=0 存在 /// public List TaskList = new List(); /// /// 选择的设备 /// Type=0 存在 /// public DeviceUI DeviceUI = new DeviceUI(); /// /// 延时时间 /// Type=1 存在 /// public int DelayTime = 0; /// /// 选择的场景 /// Type=2 存在 /// public SceneUI SceneUI = new SceneUI(); /// /// 作为成员的其他场景id。 /// Type=2 存在 /// public int ElseScenesId = 0; /// /// 场景名称 /// Type=2 存在 /// public string SceneName = string.Empty; /// /// 唯一标识--HashCode /// DateTime.Now.ToString("yyyyMMddHHmmss", DateTimeFormatInfo.InvariantInfo) /// public string SceneTargetDeviceUIID { get { return GetHashCode().ToString(); } } } }