summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLRPCNotificationNotification.h
blob: 6b0060a9ddaa23d064a3395f916c0a15c7084c32 (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
34
35
36
37
38
39
//
//  SDLRPCNotificationNotification.h
//  SmartDeviceLink-iOS
//
//  Created by Joel Fischer on 8/25/16.
//  Copyright © 2016 smartdevicelink. All rights reserved.
//

#import <Foundation/Foundation.h>

@class SDLRPCNotification;


NS_ASSUME_NONNULL_BEGIN

@interface SDLRPCNotificationNotification : NSNotification

@property (copy, nonatomic, readonly) __kindof SDLRPCNotification *notification;

- (instancetype)initWithName:(NSString *)name object:(nullable id)object rpcNotification:(__kindof SDLRPCNotification *)notification;

/**
 *  Returns whether or not the containing notification is equal to a class, not including subclasses.
 *
 *  @param aClass the class you are questioning
 */
- (BOOL)isNotificationMemberOfClass:(Class)aClass;

/**
 *  Returns whether or not the containing notification is a kind of class, including subclasses.
 *
 *  @param aClass the class you are questioning
 */
- (BOOL)isNotificationKindOfClass:(Class)aClass;


@end

NS_ASSUME_NONNULL_END