summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLRPCResponseNotification.m
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-08-29 10:42:29 -0400
committerJoel Fischer <joeljfischer@gmail.com>2016-08-29 10:42:29 -0400
commite9bcf3e3dfaf4b347ef961d497cb1a24b4e87fdf (patch)
treee66099998cd8835d4c7c6073416d0cc1f2fcee75 /SmartDeviceLink/SDLRPCResponseNotification.m
parent44d6fd093b5ffd3267e34ce48003ef15a930b195 (diff)
downloadsdl_ios-e9bcf3e3dfaf4b347ef961d497cb1a24b4e87fdf.tar.gz
Fix notifications not properly…existing
Diffstat (limited to 'SmartDeviceLink/SDLRPCResponseNotification.m')
-rw-r--r--SmartDeviceLink/SDLRPCResponseNotification.m14
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