diff options
author | Frank Elias <francois.elias@livio.io> | 2021-08-11 09:18:38 -0400 |
---|---|---|
committer | Frank Elias <francois.elias@livio.io> | 2021-08-11 09:18:38 -0400 |
commit | 7f6825946f344cab39a5e13df17494e9b506942b (patch) | |
tree | 5d72dd68ca84cdecdf4913ed93aa724c38b83993 | |
parent | 492e1d0c384e80754900fafd72e892dd7af2ad1e (diff) | |
download | sdl_ios-7f6825946f344cab39a5e13df17494e9b506942b.tar.gz |
new enum types for sec query
-rw-r--r-- | SmartDeviceLink/private/SDLSecurityQueryPayload.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/SmartDeviceLink/private/SDLSecurityQueryPayload.h b/SmartDeviceLink/private/SDLSecurityQueryPayload.h index 207539346..5ba3c59f0 100644 --- a/SmartDeviceLink/private/SDLSecurityQueryPayload.h +++ b/SmartDeviceLink/private/SDLSecurityQueryPayload.h @@ -11,9 +11,28 @@ NS_ASSUME_NONNULL_BEGIN +typedef NS_ENUM(Byte, SDLSecurityQueryType) { + /// A request that will require a response + SDLSecurityQueryTypeRequest = 0x00, + + /// A response to a request + SDLSecurityQueryTypeResponse = 0x01, + + /// A message that does not have a response + SDLSecurityQueryTypeNotification = 0x02 +}; + +typedef NS_ENUM(Byte, SDLSecurityQueryId) { + /// Send handshake data + SDLSecurityQueryIdSendHandshake = 0x000001, + + /// Send internal error + SDLSecurityQueryIdSendInternalError = 0x000002, +}; + @interface SDLSecurityQueryPayload : NSObject -@property (assign, nonatomic) SDLRPCMessageType queryType; +@property (assign, nonatomic) SDLSecurityQueryType queryType; @property (assign, nonatomic) UInt32 queryID; @property (assign, nonatomic) UInt32 sequenceNumber; @property (nullable, strong, nonatomic) NSData *jsonData; |