blob: 5794cb5ea98a7d12b19b67aa85500f878efa9abe (
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
|
// SDLRPCPayload.h
//
#import <Foundation/Foundation.h>
#import "SDLRPCMessageType.h"
NS_ASSUME_NONNULL_BEGIN
@interface SDLRPCPayload : NSObject
@property (assign, nonatomic) SDLRPCMessageType rpcType;
@property (assign, nonatomic) UInt32 functionID;
@property (assign, nonatomic) UInt32 correlationID;
@property (nullable, strong, nonatomic) NSData *jsonData;
@property (nullable, strong, nonatomic) NSData *binaryData;
- (NSData *)data;
+ (nullable id)rpcPayloadWithData:(NSData *)data;
@end
NS_ASSUME_NONNULL_END
|