diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2017-01-18 11:47:22 -0800 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2017-01-18 11:47:22 -0800 |
commit | 41bd47f068648a73389f878069ff0ec3f2cd6005 (patch) | |
tree | 21f4bfed2b82ab346a98844ce04569b953a8126f /SmartDeviceLink/SDLFunctionID.m | |
parent | a1c5ddde3424956a0f386335f71e8c36692147ac (diff) | |
parent | aef328f494aea84367af8d0d800253dfe38044b1 (diff) | |
download | sdl_ios-feature/struct_property_rewrite.tar.gz |
Merge remote-tracking branch 'origin/develop' into feature/struct_property_rewrite.feature/struct_property_rewrite
Diffstat (limited to 'SmartDeviceLink/SDLFunctionID.m')
-rw-r--r-- | SmartDeviceLink/SDLFunctionID.m | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLFunctionID.m b/SmartDeviceLink/SDLFunctionID.m index 18caf940e..17c6ba822 100644 --- a/SmartDeviceLink/SDLFunctionID.m +++ b/SmartDeviceLink/SDLFunctionID.m @@ -4,6 +4,8 @@ #import "SDLFunctionID.h" +NS_ASSUME_NONNULL_BEGIN + @interface SDLFunctionID () @property (nonatomic, strong, nonnull) NSDictionary* functionIds; @@ -93,14 +95,16 @@ return self; } -- (SDLName)functionNameForId:(int)functionID { +- (nullable SDLName)functionNameForId:(int)functionID { return self.functionIds[@(functionID)]; } -- (NSNumber<SDLInt> *)functionIdForName:(SDLName)functionName { +- (nullable NSNumber<SDLInt> *)functionIdForName:(SDLName)functionName { return [[self.functionIds allKeysForObject:functionName] firstObject]; } @end + +NS_ASSUME_NONNULL_END |