summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLRPCMessage.h
blob: 3612d15c0668ae7858dee953fe79d2e141c65028 (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
//  SDLRPCMessage.h
//

#import "SDLEnum.h"

#import "SDLRPCStruct.h"

NS_ASSUME_NONNULL_BEGIN

@interface SDLRPCMessage : SDLRPCStruct {
    NSMutableDictionary<NSString *, id> *function;
    NSMutableDictionary<NSString *, id> *parameters;
    NSString *messageType;
}

- (instancetype)initWithName:(NSString *)name;
- (instancetype)initWithDictionary:(NSDictionary<NSString *, id> *)dict;
- (nullable NSString *)getFunctionName;
- (void)setFunctionName:(nullable NSString *)functionName;
- (nullable NSObject *)getParameters:(NSString *)functionName;
- (void)setParameters:(NSString *)functionName value:(nullable NSObject *)value;

@property (nullable, strong, nonatomic) NSData *bulkData;
@property (strong, nonatomic, readonly) NSString *name;
@property (strong, nonatomic, readonly) NSString *messageType;

@end

NS_ASSUME_NONNULL_END