summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLOnDriverDistraction.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLOnDriverDistraction.m')
-rw-r--r--SmartDeviceLink/SDLOnDriverDistraction.m17
1 files changed, 5 insertions, 12 deletions
diff --git a/SmartDeviceLink/SDLOnDriverDistraction.m b/SmartDeviceLink/SDLOnDriverDistraction.m
index 2a5db6185..bd366dd50 100644
--- a/SmartDeviceLink/SDLOnDriverDistraction.m
+++ b/SmartDeviceLink/SDLOnDriverDistraction.m
@@ -3,34 +3,27 @@
#import "SDLOnDriverDistraction.h"
-#import "SDLDriverDistractionState.h"
#import "SDLNames.h"
-
+#import "SDLDriverDistractionState.h"
@implementation SDLOnDriverDistraction
- (instancetype)init {
- if (self = [super initWithName:NAMES_OnDriverDistraction]) {
- }
- return self;
-}
-
-- (instancetype)initWithDictionary:(NSMutableDictionary *)dict {
- if (self = [super initWithDictionary:dict]) {
+ if (self = [super initWithName:SDLNameOnDriverDistraction]) {
}
return self;
}
- (void)setState:(SDLDriverDistractionState)state {
if (state != nil) {
- [parameters setObject:state forKey:NAMES_state];
+ [parameters setObject:state forKey:SDLNameState];
} else {
- [parameters removeObjectForKey:NAMES_state];
+ [parameters removeObjectForKey:SDLNameState];
}
}
- (SDLDriverDistractionState)state {
- NSObject *obj = [parameters objectForKey:NAMES_state];
+ NSObject *obj = [parameters objectForKey:SDLNameState];
return (SDLDriverDistractionState)obj;
}