diff options
| author | Joel Fischer <joeljfischer@gmail.com> | 2016-08-29 10:42:29 -0400 |
|---|---|---|
| committer | Joel Fischer <joeljfischer@gmail.com> | 2016-08-29 10:42:29 -0400 |
| commit | e9bcf3e3dfaf4b347ef961d497cb1a24b4e87fdf (patch) | |
| tree | e66099998cd8835d4c7c6073416d0cc1f2fcee75 /SmartDeviceLink/SDLRPCNotificationNotification.m | |
| parent | 44d6fd093b5ffd3267e34ce48003ef15a930b195 (diff) | |
| download | sdl_ios-e9bcf3e3dfaf4b347ef961d497cb1a24b4e87fdf.tar.gz | |
Fix notifications not properly…existing
Diffstat (limited to 'SmartDeviceLink/SDLRPCNotificationNotification.m')
| -rw-r--r-- | SmartDeviceLink/SDLRPCNotificationNotification.m | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLRPCNotificationNotification.m b/SmartDeviceLink/SDLRPCNotificationNotification.m index e32c11714..44cc88264 100644 --- a/SmartDeviceLink/SDLRPCNotificationNotification.m +++ b/SmartDeviceLink/SDLRPCNotificationNotification.m @@ -11,16 +11,27 @@ #import "SDLNotificationConstants.h" #import "SDLRPCNotification.h" +NS_ASSUME_NONNULL_BEGIN @implementation SDLRPCNotificationNotification +@synthesize name=_name; +@synthesize object=_object; +@synthesize userInfo=_userInfo; + - (instancetype)initWithName:(NSString *)name object:(id)object rpcNotification:(SDLRPCNotification *)notification { - self = [self initWithName:name object:object userInfo:@{SDLNotificationUserInfoObject : notification}]; - if (!self) { return nil; } - _notification = notification; + _name = name; + _object = object; + _userInfo = @{SDLNotificationUserInfoObject : notification}; return self; } +- (SDLRPCNotification *)notification { + return _userInfo[SDLNotificationUserInfoObject]; +} + @end + +NS_ASSUME_NONNULL_END
\ No newline at end of file |
