summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLProtocolMessageAssembler.h
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2017-01-04 08:55:10 -0500
committerMuller, Alexander (A.) <amulle19@ford.com>2017-01-04 08:55:10 -0500
commita60d4725cf0c92bcee64f44e170e015d90ddc13e (patch)
treec31f42d533a56d64f5cf72c6fa965bf4c91202a3 /SmartDeviceLink/SDLProtocolMessageAssembler.h
parent670f265ee3143b95ec9b62a09ddbf377b8af8ce3 (diff)
downloadsdl_ios-a60d4725cf0c92bcee64f44e170e015d90ddc13e.tar.gz
Added nullability annotations to protocol, header and message classes.
Diffstat (limited to 'SmartDeviceLink/SDLProtocolMessageAssembler.h')
-rw-r--r--SmartDeviceLink/SDLProtocolMessageAssembler.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLProtocolMessageAssembler.h b/SmartDeviceLink/SDLProtocolMessageAssembler.h
index a4a448f3b..81644ca18 100644
--- a/SmartDeviceLink/SDLProtocolMessageAssembler.h
+++ b/SmartDeviceLink/SDLProtocolMessageAssembler.h
@@ -5,8 +5,9 @@
@class SDLProtocolMessage;
+NS_ASSUME_NONNULL_BEGIN
-typedef void (^SDLMessageAssemblyCompletionHandler)(BOOL done, SDLProtocolMessage *assembledMessage);
+typedef void (^SDLMessageAssemblyCompletionHandler)(BOOL done, SDLProtocolMessage * _Nullable assembledMessage);
@interface SDLProtocolMessageAssembler : NSObject
@@ -14,9 +15,11 @@ typedef void (^SDLMessageAssemblyCompletionHandler)(BOOL done, SDLProtocolMessag
@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 (nullable, strong) NSMutableDictionary<NSNumber *, NSData *> *parts;
- (instancetype)initWithSessionID:(UInt8)sessionID;
- (void)handleMessage:(SDLProtocolMessage *)message withCompletionHandler:(SDLMessageAssemblyCompletionHandler)completionHandler;
@end
+
+NS_ASSUME_NONNULL_END