diff options
Diffstat (limited to 'SmartDeviceLink/SDLOnCommand.m')
-rw-r--r-- | SmartDeviceLink/SDLOnCommand.m | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/SmartDeviceLink/SDLOnCommand.m b/SmartDeviceLink/SDLOnCommand.m index f16023d42..06312e87c 100644 --- a/SmartDeviceLink/SDLOnCommand.m +++ b/SmartDeviceLink/SDLOnCommand.m @@ -3,14 +3,14 @@ #import "SDLOnCommand.h" -#import "SDLNames.h" + #import "SDLTriggerSource.h" @implementation SDLOnCommand - (instancetype)init { - if (self = [super initWithName:NAMES_OnCommand]) { + if (self = [super initWithName:SDLNameOnCommand]) { } return self; } @@ -23,26 +23,26 @@ - (void)setCmdID:(NSNumber *)cmdID { if (cmdID != nil) { - [parameters setObject:cmdID forKey:NAMES_cmdID]; + [parameters setObject:cmdID forKey:SDLNameCommandId]; } else { - [parameters removeObjectForKey:NAMES_cmdID]; + [parameters removeObjectForKey:SDLNameCommandId]; } } - (NSNumber *)cmdID { - return [parameters objectForKey:NAMES_cmdID]; + return [parameters objectForKey:SDLNameCommandId]; } - (void)setTriggerSource:(SDLTriggerSource *)triggerSource { if (triggerSource != nil) { - [parameters setObject:triggerSource forKey:NAMES_triggerSource]; + [parameters setObject:triggerSource forKey:SDLNameTriggerSource]; } else { - [parameters removeObjectForKey:NAMES_triggerSource]; + [parameters removeObjectForKey:SDLNameTriggerSource]; } } - (SDLTriggerSource *)triggerSource { - NSObject *obj = [parameters objectForKey:NAMES_triggerSource]; + NSObject *obj = [parameters objectForKey:SDLNameTriggerSource]; if (obj == nil || [obj isKindOfClass:SDLTriggerSource.class]) { return (SDLTriggerSource *)obj; } else { |