diff options
Diffstat (limited to 'SmartDeviceLink/SDLDeviceInfo.m')
-rw-r--r-- | SmartDeviceLink/SDLDeviceInfo.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/SmartDeviceLink/SDLDeviceInfo.m b/SmartDeviceLink/SDLDeviceInfo.m index 41328e487..6afabdcfd 100644 --- a/SmartDeviceLink/SDLDeviceInfo.m +++ b/SmartDeviceLink/SDLDeviceInfo.m @@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN } - (nullable NSString *)hardware { - return [store sdl_objectForName:SDLRPCParameterNameHardware]; + return [store sdl_objectForName:SDLRPCParameterNameHardware ofClass:NSString.class]; } - (void)setFirmwareRev:(nullable NSString *)firmwareRev { @@ -42,7 +42,7 @@ NS_ASSUME_NONNULL_BEGIN } - (nullable NSString *)firmwareRev { - return [store sdl_objectForName:SDLRPCParameterNameFirmwareRevision]; + return [store sdl_objectForName:SDLRPCParameterNameFirmwareRevision ofClass:NSString.class]; } - (void)setOs:(nullable NSString *)os { @@ -50,7 +50,7 @@ NS_ASSUME_NONNULL_BEGIN } - (nullable NSString *)os { - return [store sdl_objectForName:SDLRPCParameterNameOS]; + return [store sdl_objectForName:SDLRPCParameterNameOS ofClass:NSString.class]; } - (void)setOsVersion:(nullable NSString *)osVersion { @@ -58,7 +58,7 @@ NS_ASSUME_NONNULL_BEGIN } - (nullable NSString *)osVersion { - return [store sdl_objectForName:SDLRPCParameterNameOSVersion]; + return [store sdl_objectForName:SDLRPCParameterNameOSVersion ofClass:NSString.class]; } - (void)setCarrier:(nullable NSString *)carrier { @@ -66,7 +66,7 @@ NS_ASSUME_NONNULL_BEGIN } - (nullable NSString *)carrier { - return [store sdl_objectForName:SDLRPCParameterNameCarrier]; + return [store sdl_objectForName:SDLRPCParameterNameCarrier ofClass:NSString.class]; } - (void)setMaxNumberRFCOMMPorts:(nullable NSNumber<SDLInt> *)maxNumberRFCOMMPorts { @@ -74,7 +74,7 @@ NS_ASSUME_NONNULL_BEGIN } - (nullable NSNumber<SDLInt> *)maxNumberRFCOMMPorts { - return [store sdl_objectForName:SDLRPCParameterNameMaxNumberRFCOMMPorts]; + return [store sdl_objectForName:SDLRPCParameterNameMaxNumberRFCOMMPorts ofClass:NSNumber.class]; } @end |