blob: 6d4be548a2f3b5f88ffdb98c567d55e5f4a126bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
//
// SDLRPCResponseNotification.m
// SmartDeviceLink-iOS
//
// Created by Joel Fischer on 8/25/16.
// Copyright © 2016 smartdevicelink. All rights reserved.
//
#import "SDLRPCResponseNotification.h"
#import "SDLNotificationConstants.h"
#import "SDLRPCResponse.h"
@implementation SDLRPCResponseNotification
@synthesize name = _name;
@synthesize object = _object;
@synthesize userInfo = _userInfo;
- (instancetype)initWithName:(NSString *)name object:(nullable id)object rpcResponse:(SDLRPCResponse *)response {
_name = name;
_object = object;
_userInfo = @{SDLNotificationUserInfoObject: response};
return self;
}
- (__kindof SDLRPCResponse *)response {
return _userInfo[SDLNotificationUserInfoObject];
}
@end
|