summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLAirbagStatus.m
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2019-04-17 10:45:51 -0400
committerJoel Fischer <joeljfischer@gmail.com>2019-04-17 10:45:51 -0400
commitf12e6e229564af4fffc9cffe88a5e187961bc255 (patch)
tree5d6eed800e6866c08a121df64fd1ff79eaae13a4 /SmartDeviceLink/SDLAirbagStatus.m
parent7160c653b62df8feed209af1018a8da1627e3c7e (diff)
parenta6f6513934460269e5c2865293993219798ee767 (diff)
downloadsdl_ios-f12e6e229564af4fffc9cffe88a5e187961bc255.tar.gz
Merge branch 'develop'6.2.0
Diffstat (limited to 'SmartDeviceLink/SDLAirbagStatus.m')
-rw-r--r--SmartDeviceLink/SDLAirbagStatus.m42
1 files changed, 25 insertions, 17 deletions
diff --git a/SmartDeviceLink/SDLAirbagStatus.m b/SmartDeviceLink/SDLAirbagStatus.m
index 453d08304..a13f525f8 100644
--- a/SmartDeviceLink/SDLAirbagStatus.m
+++ b/SmartDeviceLink/SDLAirbagStatus.m
@@ -3,73 +3,81 @@
#import "SDLAirbagStatus.h"
#import "NSMutableDictionary+Store.h"
-#import "SDLNames.h"
+#import "SDLRPCParameterNames.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLAirbagStatus
- (void)setDriverAirbagDeployed:(SDLVehicleDataEventStatus)driverAirbagDeployed {
- [store sdl_setObject:driverAirbagDeployed forName:SDLNameDriverAirbagDeployed];
+ [store sdl_setObject:driverAirbagDeployed forName:SDLRPCParameterNameDriverAirbagDeployed];
}
- (SDLVehicleDataEventStatus)driverAirbagDeployed {
- return [store sdl_objectForName:SDLNameDriverAirbagDeployed];
+ NSError *error = nil;
+ return [store sdl_enumForName:SDLRPCParameterNameDriverAirbagDeployed error:&error];
}
- (void)setDriverSideAirbagDeployed:(SDLVehicleDataEventStatus)driverSideAirbagDeployed {
- [store sdl_setObject:driverSideAirbagDeployed forName:SDLNameDriverSideAirbagDeployed];
+ [store sdl_setObject:driverSideAirbagDeployed forName:SDLRPCParameterNameDriverSideAirbagDeployed];
}
- (SDLVehicleDataEventStatus)driverSideAirbagDeployed {
- return [store sdl_objectForName:SDLNameDriverSideAirbagDeployed];
+ NSError *error = nil;
+ return [store sdl_enumForName:SDLRPCParameterNameDriverSideAirbagDeployed error:&error];
}
- (void)setDriverCurtainAirbagDeployed:(SDLVehicleDataEventStatus)driverCurtainAirbagDeployed {
- [store sdl_setObject:driverCurtainAirbagDeployed forName:SDLNameDriverCurtainAirbagDeployed];
+ [store sdl_setObject:driverCurtainAirbagDeployed forName:SDLRPCParameterNameDriverCurtainAirbagDeployed];
}
- (SDLVehicleDataEventStatus)driverCurtainAirbagDeployed {
- return [store sdl_objectForName:SDLNameDriverCurtainAirbagDeployed];
+ NSError *error = nil;
+ return [store sdl_enumForName:SDLRPCParameterNameDriverCurtainAirbagDeployed error:&error];
}
- (void)setPassengerAirbagDeployed:(SDLVehicleDataEventStatus)passengerAirbagDeployed {
- [store sdl_setObject:passengerAirbagDeployed forName:SDLNamePassengerAirbagDeployed];}
+ [store sdl_setObject:passengerAirbagDeployed forName:SDLRPCParameterNamePassengerAirbagDeployed];}
- (SDLVehicleDataEventStatus)passengerAirbagDeployed {
- return [store sdl_objectForName:SDLNamePassengerAirbagDeployed];
+ NSError *error = nil;
+ return [store sdl_enumForName:SDLRPCParameterNamePassengerAirbagDeployed error:&error];
}
- (void)setPassengerCurtainAirbagDeployed:(SDLVehicleDataEventStatus)passengerCurtainAirbagDeployed {
- [store sdl_setObject:passengerCurtainAirbagDeployed forName:SDLNamePassengerCurtainAirbagDeployed];
+ [store sdl_setObject:passengerCurtainAirbagDeployed forName:SDLRPCParameterNamePassengerCurtainAirbagDeployed];
}
- (SDLVehicleDataEventStatus)passengerCurtainAirbagDeployed {
- return [store sdl_objectForName:SDLNamePassengerCurtainAirbagDeployed];
+ NSError *error = nil;
+ return [store sdl_enumForName:SDLRPCParameterNamePassengerCurtainAirbagDeployed error:&error];
}
- (void)setDriverKneeAirbagDeployed:(SDLVehicleDataEventStatus)driverKneeAirbagDeployed {
- [store sdl_setObject:driverKneeAirbagDeployed forName:SDLNameDriverKneeAirbagDeployed];
+ [store sdl_setObject:driverKneeAirbagDeployed forName:SDLRPCParameterNameDriverKneeAirbagDeployed];
}
- (SDLVehicleDataEventStatus)driverKneeAirbagDeployed {
- return [store sdl_objectForName:SDLNameDriverKneeAirbagDeployed];
+ NSError *error = nil;
+ return [store sdl_enumForName:SDLRPCParameterNameDriverKneeAirbagDeployed error:&error];
}
- (void)setPassengerSideAirbagDeployed:(SDLVehicleDataEventStatus)passengerSideAirbagDeployed {
- [store sdl_setObject:passengerSideAirbagDeployed forName:SDLNamePassengerSideAirbagDeployed];
+ [store sdl_setObject:passengerSideAirbagDeployed forName:SDLRPCParameterNamePassengerSideAirbagDeployed];
}
- (SDLVehicleDataEventStatus)passengerSideAirbagDeployed {
- return [store sdl_objectForName:SDLNamePassengerSideAirbagDeployed];
+ NSError *error = nil;
+ return [store sdl_enumForName:SDLRPCParameterNamePassengerSideAirbagDeployed error:&error];
}
- (void)setPassengerKneeAirbagDeployed:(SDLVehicleDataEventStatus)passengerKneeAirbagDeployed {
- [store sdl_setObject:passengerKneeAirbagDeployed forName:SDLNamePassengerKneeAirbagDeployed];
+ [store sdl_setObject:passengerKneeAirbagDeployed forName:SDLRPCParameterNamePassengerKneeAirbagDeployed];
}
- (SDLVehicleDataEventStatus)passengerKneeAirbagDeployed {
- return [store sdl_objectForName:SDLNamePassengerKneeAirbagDeployed];
+ NSError *error = nil;
+ return [store sdl_enumForName:SDLRPCParameterNamePassengerKneeAirbagDeployed error:&error];
}
@end