diff options
author | NicoleYarroch <nicole@livio.io> | 2019-03-04 17:24:34 -0500 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2019-03-04 17:24:34 -0500 |
commit | 12f6d794d5ebccdc35314905712550762de00e51 (patch) | |
tree | 7293d1678ce1de018a7ba77573d51492181dc97b /SmartDeviceLink/SDLOnSystemCapabilityUpdated.m | |
parent | 467291c66eafd71271ccefe4c61a57a4c765b120 (diff) | |
download | sdl_ios-12f6d794d5ebccdc35314905712550762de00e51.tar.gz |
Added conv. init to `OnSystemCapabilityUpdated`
Diffstat (limited to 'SmartDeviceLink/SDLOnSystemCapabilityUpdated.m')
-rw-r--r-- | SmartDeviceLink/SDLOnSystemCapabilityUpdated.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLOnSystemCapabilityUpdated.m b/SmartDeviceLink/SDLOnSystemCapabilityUpdated.m index 19b4f3f79..4bf2f6a11 100644 --- a/SmartDeviceLink/SDLOnSystemCapabilityUpdated.m +++ b/SmartDeviceLink/SDLOnSystemCapabilityUpdated.m @@ -7,8 +7,10 @@ // #import "SDLOnSystemCapabilityUpdated.h" + #import "NSMutableDictionary+Store.h" #import "SDLNames.h" +#import "SDLSystemCapability.h" NS_ASSUME_NONNULL_BEGIN @@ -20,6 +22,17 @@ NS_ASSUME_NONNULL_BEGIN return self; } +- (instancetype)initWithSystemCapability:(SDLSystemCapability *)systemCapability { + self = [self init]; + if (!self) { + return nil; + } + + self.systemCapability = systemCapability; + + return self; +} + - (void)setSystemCapability:(SDLSystemCapability *)systemCapability { [parameters sdl_setObject:systemCapability forName:SDLNameSystemCapability]; } |