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/SDLRPCResponseNotification.m | |
| parent | 44d6fd093b5ffd3267e34ce48003ef15a930b195 (diff) | |
| download | sdl_ios-e9bcf3e3dfaf4b347ef961d497cb1a24b4e87fdf.tar.gz | |
Fix notifications not properly…existing
Diffstat (limited to 'SmartDeviceLink/SDLRPCResponseNotification.m')
| -rw-r--r-- | SmartDeviceLink/SDLRPCResponseNotification.m | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLRPCResponseNotification.m b/SmartDeviceLink/SDLRPCResponseNotification.m index 35cf6e560..c2c377a1b 100644 --- a/SmartDeviceLink/SDLRPCResponseNotification.m +++ b/SmartDeviceLink/SDLRPCResponseNotification.m @@ -14,13 +14,21 @@ @implementation SDLRPCResponseNotification +@synthesize name=_name; +@synthesize object=_object; +@synthesize userInfo=_userInfo; + - (instancetype)initWithName:(NSString *)name object:(id)object rpcResponse:(SDLRPCResponse *)response { - self = [self initWithName:name object:object userInfo:@{SDLNotificationUserInfoObject : response}]; - if (!self) { return nil; } - _response = response; + _name = name; + _object = object; + _userInfo = @{SDLNotificationUserInfoObject : response}; return self; } +- (SDLRPCResponse *)response { + return _userInfo[SDLNotificationUserInfoObject]; +} + @end |
