123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- #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
|