summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLProtocolMessageAssembler.h
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLProtocolMessageAssembler.h')
-rw-r--r--SmartDeviceLink/SDLProtocolMessageAssembler.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/SmartDeviceLink/SDLProtocolMessageAssembler.h b/SmartDeviceLink/SDLProtocolMessageAssembler.h
index a4a448f3b..589d8032a 100644
--- a/SmartDeviceLink/SDLProtocolMessageAssembler.h
+++ b/SmartDeviceLink/SDLProtocolMessageAssembler.h
@@ -5,18 +5,20 @@
@class SDLProtocolMessage;
+NS_ASSUME_NONNULL_BEGIN
-typedef void (^SDLMessageAssemblyCompletionHandler)(BOOL done, SDLProtocolMessage *assembledMessage);
+typedef void (^SDLMessageAssemblyCompletionHandler)(BOOL done, SDLProtocolMessage * _Nullable assembledMessage);
@interface SDLProtocolMessageAssembler : NSObject
-@property (assign, readonly) UInt8 sessionID;
-@property (assign) UInt32 frameCount; // number of consecutive frames required for reassembly
-@property (assign) UInt32 expectedBytes;
-@property (strong) NSMutableDictionary<NSNumber *, NSData *> *parts;
+@property (assign, nonatomic, readonly) UInt8 sessionID;
+@property (assign, nonatomic) UInt32 frameCount; // number of consecutive frames required for reassembly
+@property (assign, nonatomic) UInt32 expectedBytes;
- (instancetype)initWithSessionID:(UInt8)sessionID;
- (void)handleMessage:(SDLProtocolMessage *)message withCompletionHandler:(SDLMessageAssemblyCompletionHandler)completionHandler;
@end
+
+NS_ASSUME_NONNULL_END