diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2016-08-25 16:56:14 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2016-08-25 16:56:14 -0400 |
commit | 44d6fd093b5ffd3267e34ce48003ef15a930b195 (patch) | |
tree | 2729ba1f7c99c5ad59d7e9a8397e57d5cec9d39c /SmartDeviceLink/SDLRPCNotificationNotification.m | |
parent | ad762812898c1849be83eb4dbefcba475dfbafe1 (diff) | |
download | sdl_ios-44d6fd093b5ffd3267e34ce48003ef15a930b195.tar.gz |
Add typed SDL notifications with backward compatibility
Diffstat (limited to 'SmartDeviceLink/SDLRPCNotificationNotification.m')
-rw-r--r-- | SmartDeviceLink/SDLRPCNotificationNotification.m | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLRPCNotificationNotification.m b/SmartDeviceLink/SDLRPCNotificationNotification.m new file mode 100644 index 000000000..e32c11714 --- /dev/null +++ b/SmartDeviceLink/SDLRPCNotificationNotification.m @@ -0,0 +1,26 @@ +// +// SDLRPCNotificationNotification.m +// SmartDeviceLink-iOS +// +// Created by Joel Fischer on 8/25/16. +// Copyright © 2016 smartdevicelink. All rights reserved. +// + +#import "SDLRPCNotificationNotification.h" + +#import "SDLNotificationConstants.h" +#import "SDLRPCNotification.h" + + +@implementation SDLRPCNotificationNotification + +- (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; + + return self; +} + +@end |