summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLRPCResponseNotification.m
diff options
context:
space:
mode:
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