summaryrefslogtreecommitdiff
path: root/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/ClimateControlData.java
blob: 1229e4668a25a0d88949faa3cd93c5833c705e06 (plain)
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
package com.smartdevicelink.proxy.rpc;

import com.smartdevicelink.proxy.RPCStruct;
import com.smartdevicelink.proxy.rpc.enums.DefrostZone;
import com.smartdevicelink.proxy.rpc.enums.VentilationMode;

import java.util.Hashtable;

public class ClimateControlData extends RPCStruct{
    public static final String KEY_FAN_SPEED= "fanSpeed";
    public static final String KEY_CURRENT_TEMPERATURE= "currentTemperature";
    public static final String KEY_DESIRED_TEMPERATURE= "desiredTemperature";
    public static final String KEY_AC_ENABLE= "acEnable";
    public static final String KEY_CIRCULATE_AIR_ENABLE= "circulateAirEnable";
    public static final String KEY_AUTO_MODE_ENABLE= "autoModeEnable";
    public static final String KEY_DEFROST_ZONE= "defrostZone";
    public static final String KEY_DUAL_MODE_ENABLE= "dualModeEnable";
    public static final String KEY_AC_MAX_ENABLE= "acMaxEnable";
    public static final String KEY_VENTILATION_MODE= "ventilationMode";
    public static final String KEY_HEATED_STEERING_WHEEL_ENABLE = "heatedSteeringWheelEnable";
    public static final String KEY_HEATED_WIND_SHIELD_ENABLE = "heatedWindshieldEnable";
    public static final String KEY_HEATED_REAR_WINDOW_ENABLE = "heatedRearWindowEnable";
    public static final String KEY_HEATED_MIRRORS_ENABLE = "heatedMirrorsEnable";

    public ClimateControlData() {
    }

    public ClimateControlData(Hashtable<String, Object> hash) {
        super(hash);
    }

    public void setFanSpeed(Integer fanSpeed) {
        setValue(KEY_FAN_SPEED, fanSpeed);
    }

    public Integer getFanSpeed() {
        return getInteger(KEY_FAN_SPEED);
    }

    public void setCurrentTemperature(Temperature currentTemperature) {
        setValue(KEY_CURRENT_TEMPERATURE, currentTemperature);
    }

    public Temperature getCurrentTemperature() {
        return (Temperature) getObject(Temperature.class, KEY_CURRENT_TEMPERATURE);
    }

    public void setDesiredTemperature(Temperature desiredTemperature) {
        setValue(KEY_DESIRED_TEMPERATURE, desiredTemperature);
    }

    public Temperature getDesiredTemperature() {
        return (Temperature) getObject(Temperature.class, KEY_DESIRED_TEMPERATURE);
    }

    public void setAcEnable(Boolean acEnable) {
        setValue(KEY_AC_ENABLE, acEnable);
    }

    public Boolean getAcEnable() {
        return getBoolean(KEY_AC_ENABLE);
    }

    public void setCirculateAirEnable(Boolean circulateAirEnable) {
        setValue(KEY_CIRCULATE_AIR_ENABLE, circulateAirEnable);
    }

    public Boolean getCirculateAirEnable() {
        return getBoolean(KEY_CIRCULATE_AIR_ENABLE);
    }

    public void setAutoModeEnable(Boolean autoModeEnable) {
        setValue(KEY_AUTO_MODE_ENABLE, autoModeEnable);
    }

    public Boolean getAutoModeEnable() {
        return getBoolean(KEY_AUTO_MODE_ENABLE);
    }

    public void setDefrostZone(DefrostZone defrostZone) {
        setValue(KEY_DEFROST_ZONE, defrostZone);
    }

    public DefrostZone getDefrostZone() {
        return (DefrostZone) getObject(DefrostZone.class, KEY_DEFROST_ZONE);
    }

    public void setDualModeEnable(Boolean dualModeEnable) {
        setValue(KEY_DUAL_MODE_ENABLE, dualModeEnable);
    }

    public Boolean getDualModeEnable() {
        return getBoolean(KEY_DUAL_MODE_ENABLE);
    }

    public void setAcMaxEnable(Boolean acMaxEnable) {
        setValue(KEY_AC_MAX_ENABLE, acMaxEnable);
    }

    public Boolean getAcMaxEnable() {
        return getBoolean(KEY_AC_MAX_ENABLE);
    }

    public void setVentilationMode(VentilationMode ventilationMode) {
        setValue(KEY_VENTILATION_MODE, ventilationMode);
    }

    public VentilationMode getVentilationMode() {
        return (VentilationMode) getObject(VentilationMode.class, KEY_VENTILATION_MODE);
    }

    /**
     * Sets the heatedSteeringWheelEnable portion of the ClimateControlCapabilities class
     *
     * @param heatedSteeringWheelEnable Value false means disabled/turn off, value true means enabled/turn on.
     */
    public void setHeatedSteeringWheelEnable(Boolean heatedSteeringWheelEnable) {
        setValue(KEY_HEATED_STEERING_WHEEL_ENABLE, heatedSteeringWheelEnable);
    }

    /**
     * Gets the heatedSteeringWheelEnable portion of the ClimateControlCapabilities class
     *
     * @return Boolean - Value false means disabled/turn off, value true means enabled/turn on.
     */
    public Boolean getHeatedSteeringWheelEnable() {
        return getBoolean(KEY_HEATED_STEERING_WHEEL_ENABLE);
    }

    /**
     * Sets the heatedWindshieldEnable portion of the ClimateControlCapabilities class
     *
     * @param heatedWindshieldEnable Value false means disabled, value true means enabled.
     */
    public void setHeatedWindshieldEnable(Boolean heatedWindshieldEnable) {
        setValue(KEY_HEATED_WIND_SHIELD_ENABLE, heatedWindshieldEnable);
    }

    /**
     * Gets the heatedWindshieldEnable portion of the ClimateControlCapabilities class
     *
     * @return Boolean - Value false means disabled, value true means enabled.
     */
    public Boolean getHeatedWindshieldEnable() {
        return getBoolean(KEY_HEATED_WIND_SHIELD_ENABLE);
    }

    /**
     * Sets the heatedRearWindowEnable portion of the ClimateControlCapabilities class
     *
     * @param heatedRearWindowEnable Value false means disabled, value true means enabled.
     */
    public void setHeatedRearWindowEnable(Boolean heatedRearWindowEnable) {
        setValue(KEY_HEATED_REAR_WINDOW_ENABLE, heatedRearWindowEnable);
    }

    /**
     * Gets the heatedRearWindowEnable portion of the ClimateControlCapabilities class
     *
     * @return Boolean - Value false means disabled, value true means enabled.
     */
    public Boolean getHeatedRearWindowEnable() {
        return getBoolean(KEY_HEATED_REAR_WINDOW_ENABLE);
    }

    /**
     * Sets the heatedMirrorsEnable portion of the ClimateControlCapabilities class
     *
     * @param heatedMirrorsEnable Value false means disabled, value true means enabled.
     */
    public void setHeatedMirrorsEnable(Boolean heatedMirrorsEnable) {
        setValue(KEY_HEATED_MIRRORS_ENABLE, heatedMirrorsEnable);
    }

    /**
     * Gets the heatedMirrorsEnable portion of the ClimateControlCapabilities class
     *
     * @return Boolean - Value false means disabled, value true means enabled.
     */
    public Boolean getHeatedMirrorsEnable() {
        return getBoolean(KEY_HEATED_MIRRORS_ENABLE);
    }
}