diff options
Diffstat (limited to 'SmartDeviceLink/SDLProtocolMessage.h')
-rw-r--r-- | SmartDeviceLink/SDLProtocolMessage.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/SmartDeviceLink/SDLProtocolMessage.h b/SmartDeviceLink/SDLProtocolMessage.h index df5554c7c..c4400a8c7 100644 --- a/SmartDeviceLink/SDLProtocolMessage.h +++ b/SmartDeviceLink/SDLProtocolMessage.h @@ -5,19 +5,22 @@ @class SDLProtocolHeader; +NS_ASSUME_NONNULL_BEGIN + @interface SDLProtocolMessage : NSObject -@property (strong) SDLProtocolHeader *header; -@property (strong) NSData *payload; -@property (strong, readonly) NSData *data; +@property (strong, nonatomic) SDLProtocolHeader *header; +@property (nullable, strong, nonatomic) NSData *payload; +@property (strong, nonatomic, readonly) NSData *data; -+ (id)messageWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload; // Returns a V1 or V2 object ++ (id)messageWithHeader:(SDLProtocolHeader *)header andPayload:(nullable NSData *)payload; // Returns a V1 or V2 object - (NSUInteger)size; - (NSString *)description; -- (NSDictionary<NSString *, id> *)rpcDictionary; // Use for RPC type messages to obtain the data in a dictionary +- (nullable NSDictionary<NSString *, id> *)rpcDictionary; // Use for RPC type messages to obtain the data in a dictionary + (UInt8)determineVersion:(NSData *)data; - @end + +NS_ASSUME_NONNULL_END |