#ifndef __LIVENESSDETECTION_MSG_G_H #define __LIVENESSDETECTION_MSG_G_H #pragma once // This code is generated by spgen tool! #include "SpHelper.h" namespace LivenessDetection { #define eMsg_ActiveDetectionDone 0 #define eMsg_AutoSnapshotRemind 1 #define eMsg_DetectionStopUnExpected 2 #define eMsg_LivenessDetectionHeartBeat 3 #define eMsg_ActiveDetectionStarted 4 #define eMsg_ActiveDetectionStopped 5 #define eMsgSig_ActiveDetectionDone 1663036101 #define eMsgSig_AutoSnapshotRemind -1204333518 #define eMsgSig_DetectionStopUnExpected 135483694 #define eMsgSig_LivenessDetectionHeartBeat -835179092 #define eMsgSig_ActiveDetectionStarted -390712849 #define eMsgSig_ActiveDetectionStopped 576206235 struct ActiveDetectionDone { CSimpleStringW ActionID; CSimpleStringW VerifyResult; CBlob SnapShotPhotoData; int SnapShotPhotoLength; void Serialize(SpBuffer &Buf) { auto & buf = Buf & ActionID & VerifyResult & SnapShotPhotoData & SnapShotPhotoLength; } }; /////////////////////////// struct AutoSnapshotRemind { CSimpleStringW ActionID; CSimpleStringW RemindInfo; void Serialize(SpBuffer &Buf) { auto & buf = Buf & ActionID & RemindInfo; } }; /////////////////////////// struct DetectionStopUnExpected { CSimpleStringW ActionID; bool IsActive; CSimpleStringW ErrorCode; CSimpleStringW ErrorMsg; void Serialize(SpBuffer &Buf) { auto & buf = Buf & ActionID & IsActive & ErrorCode & ErrorMsg; } }; /////////////////////////// struct LivenessDetectionHeartBeat { int Status; void Serialize(SpBuffer &Buf) { auto & buf = Buf & Status; } }; /////////////////////////// struct ActiveDetectionStarted { CSimpleStringA Param; void Serialize(SpBuffer &Buf) { auto & buf = Buf & Param; } }; /////////////////////////// struct ActiveDetectionStopped { CSimpleStringA Param; void Serialize(SpBuffer &Buf) { auto & buf = Buf & Param; } }; /////////////////////////// } // namespace LivenessDetection #endif // __LIVENESSDETECTION_MSG_G_H