diff options
author | Satbir Tanda <satbirtanda@gmail.com> | 2019-08-12 17:12:09 -0700 |
---|---|---|
committer | Satbir Tanda <satbirtanda@gmail.com> | 2019-08-12 17:12:09 -0700 |
commit | 0da37e5714863b506dc49a97a1ec19d54eabd144 (patch) | |
tree | 278f135434b4668c3a1548c6d3521a8a82818383 /SmartDeviceLink/SDLSeatLocationCapability.m | |
parent | 5204ad72db3f650b5e3e8b1e0fa6aa82c3a99a18 (diff) | |
download | sdl_ios-0da37e5714863b506dc49a97a1ec19d54eabd144.tar.gz |
Make properties nullable
Diffstat (limited to 'SmartDeviceLink/SDLSeatLocationCapability.m')
-rw-r--r-- | SmartDeviceLink/SDLSeatLocationCapability.m | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/SmartDeviceLink/SDLSeatLocationCapability.m b/SmartDeviceLink/SDLSeatLocationCapability.m index 94d085362..f6c59e58c 100644 --- a/SmartDeviceLink/SDLSeatLocationCapability.m +++ b/SmartDeviceLink/SDLSeatLocationCapability.m @@ -29,38 +29,38 @@ NS_ASSUME_NONNULL_BEGIN return self; } -- (void)setCols:(NSNumber<SDLInt> *)cols { +- (void)setCols:(nullable NSNumber<SDLInt> *)cols { [self.store sdl_setObject:cols forName:SDLRPCParameterNameColumns]; } -- (NSNumber<SDLInt> *)cols { +- (nullable NSNumber<SDLInt> *)cols { NSError *error = nil; return [self.store sdl_objectForName:SDLRPCParameterNameColumns ofClass:NSNumber.class error:&error]; } -- (void)setRows:(NSNumber<SDLInt> *)rows { +- (void)setRows:(nullable NSNumber<SDLInt> *)rows { [self.store sdl_setObject:rows forName:SDLRPCParameterNameRows]; } -- (NSNumber<SDLInt> *)rows { +- (nullable NSNumber<SDLInt> *)rows { NSError *error = nil; return [self.store sdl_objectForName:SDLRPCParameterNameRows ofClass:NSNumber.class error:&error]; } -- (void)setLevels:(NSNumber<SDLInt> *)levels { +- (void)setLevels:(nullable NSNumber<SDLInt> *)levels { [self.store sdl_setObject:levels forName:SDLRPCParameterNameLevels]; } -- (NSNumber<SDLInt> *)levels { +- (nullable NSNumber<SDLInt> *)levels { NSError *error = nil; return [self.store sdl_objectForName:SDLRPCParameterNameLevels ofClass:NSNumber.class error:&error]; } -- (void)setSeats:(NSArray<SDLSeatLocation *> *)seats { +- (void)setSeats:(nullable NSArray<SDLSeatLocation *> *)seats { [self.store sdl_setObject:seats forName:SDLRPCParameterNameSeats]; } -- (NSArray<SDLSeatLocation *> *)seats { +- (nullable NSArray<SDLSeatLocation *> *)seats { NSError *error = nil; return [self.store sdl_objectsForName:SDLRPCParameterNameSeats ofClass:SDLSeatLocation.class error:&error]; } |