diff options
Diffstat (limited to 'SmartDeviceLink/SDLFuelRange.h')
-rw-r--r-- | SmartDeviceLink/SDLFuelRange.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLFuelRange.h b/SmartDeviceLink/SDLFuelRange.h index 3220256cb..981ecd94b 100644 --- a/SmartDeviceLink/SDLFuelRange.h +++ b/SmartDeviceLink/SDLFuelRange.h @@ -6,6 +6,8 @@ // Copyright © 2018 smartdevicelink. All rights reserved. // +#import "SDLCapacityUnit.h" +#import "SDLComponentVolumeStatus.h" #import "SDLRPCMessage.h" #import "SDLFuelType.h" @@ -17,6 +19,41 @@ NS_ASSUME_NONNULL_BEGIN @interface SDLFuelRange : SDLRPCStruct /** + * @param type - type + * @param range - @(range) + * @param level - @(level) + * @param levelState - levelState + * @param capacity - @(capacity) + * @param capacityUnit - capacityUnit + * @return A SDLFuelRange object + */ +- (instancetype)initWithType:(nullable SDLFuelType)type range:(float)range level:(float)level levelState:(nullable SDLComponentVolumeStatus)levelState capacity:(float)capacity capacityUnit:(nullable SDLCapacityUnit)capacityUnit; + +/** + * The absolute capacity of this fuel type. + * + * Optional, Float, 0.0 - 1000000.0 + */ +@property (strong, nonatomic, nullable) NSNumber<SDLFloat> *capacity; + +/** + * The unit of the capacity of this fuel type such as liters for gasoline or kWh for batteries. + */ +@property (strong, nonatomic, nullable) SDLCapacityUnit capacityUnit; + +/** + * The relative remaining capacity of this fuel type (percentage). + * + * Optional, Float, -6.0 - 1000000.0 + */ +@property (strong, nonatomic, nullable) NSNumber<SDLFloat> *level; + +/** + * The fuel level state. + */ +@property (strong, nonatomic, nullable) SDLComponentVolumeStatus levelState; + +/** * The vehicle's fuel type * * Optional |