text: //  SDLSmartDeviceLinkProtocolMessage.h
  //
  
  #import <Foundation/Foundation.h>
  @class SDLProtocolHeader;
  
  
  @interface SDLProtocolMessage : NSObject
  
  @property (strong) SDLProtocolHeader *header;
  @property (strong) NSData *payload;
  @property (strong, readonly) NSData *data;
  
  + (instancetype)messageWithHeader:(SDLProtocolHeader *)header andPayload:(NSData *)payload; // Returns a V1 or V2 object
  
  - (NSUInteger)size;
  - (NSString *)description;
  - (NSDictionary *)rpcDictionary; // Use for RPC type messages to obtain the data in a dictionary
  
  + (UInt8)determineVersion:(NSData *)data __deprecated_msg(("Use SDLProtocolHeader determineVersion: instead"));
  
  @end
  