CrabtreeOn,印度客户定制APP,迁移2.0平台版本
JLChen
2022-01-12 407fae6f07a2a982a2a814c2f145c40733c966cb
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
using System;
namespace Shared
{
[System.Serializable]
    public class LightEnergySocket : LightSwitch
    {
        public LightEnergySocket ()
        {
            this.Type = DeviceType.LightEnergySocket;
            DeviceTextID = SimpleControl.R.MyInternationalizationString.ElectricalControl;
        }
 
        /// <summary>
        /// 电压
        /// </summary>
        public byte Voltage = 0;
        /// <summary>
        /// 电流
        /// </summary>
        public byte ElectricCurrent = 0;
        /// <summary>
        /// 功率
        /// </summary>
        public byte Power = 0;
        /// <summary>
        /// 电能
        /// </summary>
        public byte ElectricEnergy = 0;
    }
 
    public class LightEnergySwitch : LightSwitch
    {
        public LightEnergySwitch ()
        {
            this.Type = DeviceType.LightEnergySwitch;
            DeviceTextID = SimpleControl.R.MyInternationalizationString.ElectricalControl;
        }
 
        /// <summary>
        /// 电压
        /// </summary>
        public byte Voltage = 0;
        /// <summary>
        /// 电流
        /// </summary>
        public byte ElectricCurrent = 0;
        /// <summary>
        /// 功率
        /// </summary>
        public byte Power = 0;
        /// <summary>
        /// 电能
        /// </summary>
        public byte ElectricEnergy = 0;
    }
}