diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2016-05-25 08:44:23 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2016-05-25 08:44:23 -0400 |
commit | fb8e9903a323acaf5fc78819bb3c203567542ab2 (patch) | |
tree | e40665103ac7db492e0a40e34cd92f3390defa55 /SmartDeviceLink/SDLProtocolMessage.h | |
parent | f7540a02262832e34c67b0953dd8a1804a046fea (diff) | |
download | sdl_ios-fb8e9903a323acaf5fc78819bb3c203567542ab2.tar.gz |
Shift files into root directory
Diffstat (limited to 'SmartDeviceLink/SDLProtocolMessage.h')
-rw-r--r-- | SmartDeviceLink/SDLProtocolMessage.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLProtocolMessage.h b/SmartDeviceLink/SDLProtocolMessage.h new file mode 100644 index 000000000..62abd6226 --- /dev/null +++ b/SmartDeviceLink/SDLProtocolMessage.h @@ -0,0 +1,23 @@ +// SDLSmartDeviceLinkProtocolMessage.h +// + +#import <Foundation/Foundation.h> +@class SDLProtocolHeader; + + +@interface SDLProtocolMessage : NSObject + +@property (strong) SDLProtocolHeader *header; +@property (strong) NSData *payload; +@property (strong, readonly) NSData *data; + ++ (id)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; + + +@end |