diff options
author | Mihail Vyrko <mvyrko@qulix.com> | 2019-03-20 14:32:34 +0300 |
---|---|---|
committer | Mihail Vyrko <mvyrko@qulix.com> | 2019-03-20 14:32:34 +0300 |
commit | f9002ef9e158a7c0dd84e204345af83517a27361 (patch) | |
tree | fa4e3bc7b93d022c002d8a4e647a40593b22c7d1 /SmartDeviceLink/SDLMassageModeData.m | |
parent | 48278d6ffa6dfea71f11a3dddb10f773fe56ba47 (diff) | |
download | sdl_ios-f9002ef9e158a7c0dd84e204345af83517a27361.tar.gz |
verify type of returned objects
Diffstat (limited to 'SmartDeviceLink/SDLMassageModeData.m')
-rw-r--r-- | SmartDeviceLink/SDLMassageModeData.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLMassageModeData.m b/SmartDeviceLink/SDLMassageModeData.m index a50f39b4c..bd24ba906 100644 --- a/SmartDeviceLink/SDLMassageModeData.m +++ b/SmartDeviceLink/SDLMassageModeData.m @@ -26,7 +26,8 @@ NS_ASSUME_NONNULL_BEGIN } - (SDLMassageMode)massageMode { - return [store sdl_objectForName:SDLRPCParameterNameMassageMode]; + NSError *error; + return [store sdl_enumForName:SDLRPCParameterNameMassageMode error:&error]; } - (void)setMassageZone:(SDLMassageZone)massageZone { @@ -34,7 +35,8 @@ NS_ASSUME_NONNULL_BEGIN } - (SDLMassageZone)massageZone { - return [store sdl_objectForName:SDLRPCParameterNameMassageZone]; + NSError *error; + return [store sdl_enumForName:SDLRPCParameterNameMassageZone error:&error]; } @end |