using System; namespace Shared { /// /// 通用设备 /// 用来存储一些特殊点通关开关控制类型的命令设备 /// [System.Serializable] public class UniversalDevice : Common { public UniversalDevice () : base () { this.Type = DeviceType.UniversalDevice; DeviceTextID = 358; //SimpleControl.R.MyInternationalizationString.UniversalDevice; } /// /// 发送的附加数据 /// public System.Collections.Generic.List SendBytes = new System.Collections.Generic.List(12); /// /// 通用设备类型, /// 0:通用开关 /// 1:。。。。 /// 2:。。。。 /// public int UniversalType = 0xE01C; /// /// 目标设备类型 /// 0:灯光 /// 1:窗帘 /// 2:空调 /// 3:地热 /// 4:TV /// 5: 机顶盒 /// 6:蓝光机 /// 7:功放 /// 8:投影机 /// /// public byte TargetType = 0; /// /// 动作类型 /// 0:开 /// 1:关 /// 2:开/关 /// public byte ActionType = 0; /// /// 用户自定义的开动作的显示文本 /// public string ON_Text = Language.StringByID (SimpleControl.R.MyInternationalizationString.ON); /// /// 用户自定义的关动作的显示文本 /// public string OFF_Text = Language.StringByID (SimpleControl.R.MyInternationalizationString.OFF); /// /// 用户自定义显示文本的字体大小 /// public float CustomTextSize = 0; } }