summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLOnDriverDistraction.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLOnDriverDistraction.m')
-rw-r--r--SmartDeviceLink/SDLOnDriverDistraction.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/SmartDeviceLink/SDLOnDriverDistraction.m b/SmartDeviceLink/SDLOnDriverDistraction.m
index cba06de2e..147964af8 100644
--- a/SmartDeviceLink/SDLOnDriverDistraction.m
+++ b/SmartDeviceLink/SDLOnDriverDistraction.m
@@ -4,7 +4,8 @@
#import "SDLOnDriverDistraction.h"
#import "NSMutableDictionary+Store.h"
-#import "SDLNames.h"
+#import "SDLRPCParameterNames.h"
+#import "SDLRPCFunctionNames.h"
#import "SDLDriverDistractionState.h"
NS_ASSUME_NONNULL_BEGIN
@@ -12,18 +13,18 @@ NS_ASSUME_NONNULL_BEGIN
@implementation SDLOnDriverDistraction
- (instancetype)init {
- if (self = [super initWithName:SDLNameOnDriverDistraction]) {
+ if (self = [super initWithName:SDLRPCFunctionNameOnDriverDistraction]) {
}
return self;
}
- (void)setState:(SDLDriverDistractionState)state {
- [parameters sdl_setObject:state forName:SDLNameState];
+ [parameters sdl_setObject:state forName:SDLRPCParameterNameState];
}
- (SDLDriverDistractionState)state {
- NSObject *obj = [parameters sdl_objectForName:SDLNameState];
- return (SDLDriverDistractionState)obj;
+ NSError *error = nil;
+ return [parameters sdl_enumForName:SDLRPCParameterNameState error:&error];
}
@end