summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLRPCResponseNotification.h
blob: 42647897e71d68078e46b6a1c00ab75de090dc10 (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
//
//  SDLRPCResponseNotification.h
//  SmartDeviceLink-iOS
//
//  Created by Joel Fischer on 8/25/16.
//  Copyright © 2016 smartdevicelink. All rights reserved.
//

#import <Foundation/Foundation.h>

@class SDLRPCResponse;


NS_ASSUME_NONNULL_BEGIN

@interface SDLRPCResponseNotification : NSNotification

@property (copy, nonatomic, readonly) __kindof SDLRPCResponse *response;

- (instancetype)initWithName:(NSString *)name object:(nullable id)object rpcResponse:(__kindof SDLRPCResponse *)response;

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

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

@end

NS_ASSUME_NONNULL_END