summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Elias <francois.elias@livio.io>2021-08-11 09:18:38 -0400
committerFrank Elias <francois.elias@livio.io>2021-08-11 09:18:38 -0400
commit7f6825946f344cab39a5e13df17494e9b506942b (patch)
tree5d72dd68ca84cdecdf4913ed93aa724c38b83993
parent492e1d0c384e80754900fafd72e892dd7af2ad1e (diff)
downloadsdl_ios-7f6825946f344cab39a5e13df17494e9b506942b.tar.gz
new enum types for sec query
-rw-r--r--SmartDeviceLink/private/SDLSecurityQueryPayload.h21
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;