JLChen
2020-06-04 6d55af8792cf8fbef0055e677b900fc352dba9a2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
namespace Shared
{
    /// <summary>
    /// 通用设备
    /// 用来存储一些特殊点通关开关控制类型的命令设备
    /// </summary>
    [System.Serializable]
    public class UniversalDevice : Common
    {
        public UniversalDevice () : base ()
        {
            this.Type = DeviceType.UniversalDevice;
            DeviceTextID = 358; //SimpleControl.R.MyInternationalizationString.UniversalDevice;
        }
 
        /// <summary>
        /// 发送的附加数据
        /// </summary>
        public System.Collections.Generic.List<byte> SendBytes = new System.Collections.Generic.List<byte>(12);
 
        /// <summary>
        /// 通用设备类型,
        /// 0:通用开关
        /// 1:。。。。
        /// 2:。。。。
        /// </summary>
        public int UniversalType = 0xE01C;
 
        /// <summary>
        /// 目标设备类型
        /// 0:灯光
        /// 1:窗帘
        /// 2:空调
        /// 3:地热
        /// 4:TV
        /// 5: 机顶盒
        /// 6:蓝光机
        /// 7:功放
        /// 8:投影机
        /// 
        /// </summary>
        public byte TargetType = 0;
 
        /// <summary>
        /// 动作类型
        /// 0:开
        /// 1:关
        /// 2:开/关
        /// </summary>
        public byte ActionType = 0;
        /// <summary>
        /// 用户自定义的开动作的显示文本
        /// </summary>
        public string ON_Text = Language.StringByID (SimpleControl.R.MyInternationalizationString.ON);
        /// <summary>
        /// 用户自定义的关动作的显示文本
        /// </summary>
        public string OFF_Text = Language.StringByID (SimpleControl.R.MyInternationalizationString.OFF);
        /// <summary>
        /// 用户自定义显示文本的字体大小
        /// </summary>
        public float CustomTextSize = 0;
 
    }
}