CrabtreeOn,印度客户定制APP,迁移2.0平台版本
陈嘉乐
2021-03-02 c404f2f369710fe72bbcc4cff2b7b8a2c11b5ff1
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
using System;
namespace Shared
{
    /// <summary>
    /// 空调
    /// </summary>
    [System.Serializable]
    public class AC : Common
    {
        //public AC(){
        //    this.Type = DeviceType.ACHVAC;
        //    DeviceTextID = SimpleControl.R.MyInternationalizationString.AC;
        //}
 
        /// <summary>
        /// 温度模式
        /// </summary>
        public byte TemperatureMode;
        /// <summary>
        /// 室内温度
        /// </summary>
        public byte IndoorTemperature;
        /// <summary>
        /// 制冷温度
        /// </summary>
        public byte CoolTemperature;
        /// <summary>
        /// 制热温度
        /// </summary>
        public byte HeatTemperature;
        /// <summary>
        /// 自动温度
        /// </summary>
        public byte AutoTemperature;
        /// <summary>
        /// 除湿温度
        /// </summary>
        public byte ChuShiTemperature;
        /// <summary>
        /// 实际工作模式及风速
        /// </summary>
        public byte RealModeAndFanSpeed;
        /// <summary>
        /// 开关
        /// </summary>
        public byte Power;
        /// <summary>
        /// 设置模式
        /// </summary>
        public byte SetMode;
        /// <summary>
        /// 设置风速
        /// </summary>
        public byte SetFanSpeed;
        /// <summary>
        /// 设置温度
        /// </summary>
        public byte SetTemperature = 25;
        /// <summary>
        /// 扫风模式
        /// </summary>
        public byte ShaoFanMode;
 
        public string Windpicture = "AC/ACAuto.png";
 
        public string Modepicture = "AC/ACRefrigeration.png";
 
        /// <summary>
        /// 模式A协议属性
        /// </summary>
        /// <returns></returns>
        public string SetModeAttribute {
            get{
                return SetMode switch {
                    0 => "cool",
                    1 => "heat",
                    2 => "fan",
                    3 => "auto",
                    4 => "dry",
                    _ => "cool",
                };
            }
        }
 
        /// <summary>
        /// 风速A协议属性
        /// </summary>
        /// <returns></returns>
        public string SetFanSpeedAttribute {
            get {
                return SetFanSpeed switch {
                    0 => "auto",
                    1 => "high",
                    2 => "medium",
                    3 => "low",
                    _ => "high",
                };
            }
        }
 
 
 
 
    }
}