LivenessDetection_msg_g.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #ifndef __LIVENESSDETECTION_MSG_G_H
  2. #define __LIVENESSDETECTION_MSG_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace LivenessDetection {
  7. #define eMsg_ActiveDetectionDone 0
  8. #define eMsg_AutoSnapshotRemind 1
  9. #define eMsg_DetectionStopUnExpected 2
  10. #define eMsg_LivenessDetectionHeartBeat 3
  11. #define eMsg_ActiveDetectionStarted 4
  12. #define eMsg_ActiveDetectionStopped 5
  13. #define eMsgSig_ActiveDetectionDone 1663036101
  14. #define eMsgSig_AutoSnapshotRemind -1204333518
  15. #define eMsgSig_DetectionStopUnExpected 135483694
  16. #define eMsgSig_LivenessDetectionHeartBeat -835179092
  17. #define eMsgSig_ActiveDetectionStarted -390712849
  18. #define eMsgSig_ActiveDetectionStopped 576206235
  19. struct ActiveDetectionDone
  20. {
  21. CSimpleStringW ActionID;
  22. CSimpleStringW VerifyResult;
  23. CBlob SnapShotPhotoData;
  24. int SnapShotPhotoLength;
  25. void Serialize(SpBuffer &Buf)
  26. {
  27. auto & buf = Buf & ActionID & VerifyResult & SnapShotPhotoData & SnapShotPhotoLength;
  28. }
  29. };
  30. ///////////////////////////
  31. struct AutoSnapshotRemind
  32. {
  33. CSimpleStringW ActionID;
  34. CSimpleStringW RemindInfo;
  35. void Serialize(SpBuffer &Buf)
  36. {
  37. auto & buf = Buf & ActionID & RemindInfo;
  38. }
  39. };
  40. ///////////////////////////
  41. struct DetectionStopUnExpected
  42. {
  43. CSimpleStringW ActionID;
  44. bool IsActive;
  45. CSimpleStringW ErrorCode;
  46. CSimpleStringW ErrorMsg;
  47. void Serialize(SpBuffer &Buf)
  48. {
  49. auto & buf = Buf & ActionID & IsActive & ErrorCode & ErrorMsg;
  50. }
  51. };
  52. ///////////////////////////
  53. struct LivenessDetectionHeartBeat
  54. {
  55. int Status;
  56. void Serialize(SpBuffer &Buf)
  57. {
  58. auto & buf = Buf & Status;
  59. }
  60. };
  61. ///////////////////////////
  62. struct ActiveDetectionStarted
  63. {
  64. CSimpleStringA Param;
  65. void Serialize(SpBuffer &Buf)
  66. {
  67. auto & buf = Buf & Param;
  68. }
  69. };
  70. ///////////////////////////
  71. struct ActiveDetectionStopped
  72. {
  73. CSimpleStringA Param;
  74. void Serialize(SpBuffer &Buf)
  75. {
  76. auto & buf = Buf & Param;
  77. }
  78. };
  79. ///////////////////////////
  80. } // namespace LivenessDetection
  81. #endif // __LIVENESSDETECTION_MSG_G_H