|
34 | 34 | import { AirbagStatus } from '../structs/AirbagStatus.js'; |
35 | 35 | import { BeltStatus } from '../structs/BeltStatus.js'; |
36 | 36 | import { BodyInformation } from '../structs/BodyInformation.js'; |
| 37 | +import { ClimateData } from '../structs/ClimateData.js'; |
37 | 38 | import { ClusterModeStatus } from '../structs/ClusterModeStatus.js'; |
38 | 39 | import { ComponentVolumeStatus } from '../enums/ComponentVolumeStatus.js'; |
39 | 40 | import { DeviceStatus } from '../structs/DeviceStatus.js'; |
@@ -230,9 +231,31 @@ class GetVehicleDataResponse extends RpcResponse { |
230 | 231 | return this.getObject(FuelRange, GetVehicleDataResponse.KEY_FUEL_RANGE); |
231 | 232 | } |
232 | 233 |
|
| 234 | + /** |
| 235 | + * Set the ClimateData |
| 236 | + * @since SmartDeviceLink 7.1.0 |
| 237 | + * @param {ClimateData} data - See ClimateData - The desired ClimateData. |
| 238 | + * @returns {GetVehicleDataResponse} - The class instance for method chaining. |
| 239 | + */ |
| 240 | + setClimateData (data) { |
| 241 | + this._validateType(ClimateData, data); |
| 242 | + this.setParameter(GetVehicleDataResponse.KEY_CLIMATE_DATA, data); |
| 243 | + return this; |
| 244 | + } |
| 245 | + |
| 246 | + /** |
| 247 | + * Get the ClimateData |
| 248 | + * @returns {ClimateData} - the KEY_CLIMATE_DATA value |
| 249 | + */ |
| 250 | + getClimateData () { |
| 251 | + return this.getObject(ClimateData, GetVehicleDataResponse.KEY_CLIMATE_DATA); |
| 252 | + } |
| 253 | + |
233 | 254 | /** |
234 | 255 | * Set the ExternalTemperature |
235 | | - * @param {Number} temperature - The external temperature in degrees celsius - The desired ExternalTemperature. |
| 256 | + * @since SmartDeviceLink 2.0.0 |
| 257 | + * @deprecated in SmartDeviceLink 7.1.0 |
| 258 | + * @param {Number} temperature - The external temperature in degrees celsius. This parameter is deprecated starting RPC Spec 7.1, please see climateData. - The desired ExternalTemperature. |
236 | 259 | * {'num_min_value': -40.0, 'num_max_value': 100.0} |
237 | 260 | * @returns {GetVehicleDataResponse} - The class instance for method chaining. |
238 | 261 | */ |
@@ -761,6 +784,7 @@ GetVehicleDataResponse.KEY_FUEL_LEVEL = 'fuelLevel'; |
761 | 784 | GetVehicleDataResponse.KEY_FUEL_LEVEL_STATE = 'fuelLevel_State'; |
762 | 785 | GetVehicleDataResponse.KEY_INSTANT_FUEL_CONSUMPTION = 'instantFuelConsumption'; |
763 | 786 | GetVehicleDataResponse.KEY_FUEL_RANGE = 'fuelRange'; |
| 787 | +GetVehicleDataResponse.KEY_CLIMATE_DATA = 'climateData'; |
764 | 788 | GetVehicleDataResponse.KEY_EXTERNAL_TEMPERATURE = 'externalTemperature'; |
765 | 789 | GetVehicleDataResponse.KEY_TURN_SIGNAL = 'turnSignal'; |
766 | 790 | GetVehicleDataResponse.KEY_VIN = 'vin'; |
|
0 commit comments