洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
2.8 KiB

9 months ago
  1. //
  2. // APFDataCenter.h
  3. // APFaceDetectBiz
  4. //
  5. // Created by yukun.tyk on 9/8/16.
  6. // Copyright © 2016 DTF. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <BioAuthEngine/BioAuthEngine.h>
  10. @class BisBehavTask;
  11. @protocol APBToygerDataCenterDelegate <NSObject>
  12. /**
  13. * response的回调
  14. * @param success rpc是否成功
  15. * @param retCode
  16. * @param msg
  17. * @param ext
  18. */
  19. - (void)didFinishUploadWithSuccess:(BOOL)success
  20. retCode:(NSString *)retCode
  21. retMessage:(NSString *)msg
  22. extInfo:(NSString *)ext;
  23. @end
  24. @interface APBToygerDataCenter : NSObject
  25. @property (nonatomic, copy) NSString *pubkey;
  26. /**
  27. *
  28. *
  29. * @param config
  30. */
  31. - (instancetype)initWithConfig:(NSDictionary *)config;
  32. #ifdef SUPPORT_PB
  33. /**
  34. *
  35. *
  36. * @param monitorImage
  37. * @param panoImage
  38. */
  39. - (void)addMonitorImage:(UIImage *)monitorImage
  40. replacePanoImage:(NSData *)panoImage
  41. andCypherKeyData:(NSData *)cypherKey;
  42. #else
  43. /**
  44. *
  45. *
  46. * @param monitorImage
  47. * @param panoImage
  48. */
  49. - (void)addMonitorImage:(UIImage *)monitorImage
  50. replacePanoImage:(NSString *)panoImage
  51. andCypherKeyData:(NSString *)cypherKey;
  52. #endif
  53. /**
  54. *
  55. *
  56. * @param monitorImage
  57. * @param panoImage
  58. */
  59. - (void)clearMonitorImage:(BOOL)monitor
  60. panoImage:(BOOL)pano;
  61. /**
  62. *
  63. *
  64. * @param task
  65. */
  66. - (void)addBehavTask:(BisBehavTask *)task;
  67. /**
  68. * clearTask
  69. *
  70. *
  71. */
  72. - (void)clearTask;
  73. /**
  74. * clear
  75. *
  76. *
  77. */
  78. - (void)clear;
  79. - (BOOL)hasFaceData;
  80. /**
  81. * request
  82. *
  83. * @param monitor
  84. * @param behav
  85. * @param pano
  86. * @param type
  87. * @param retry
  88. */
  89. - (APBBisUploadGwRequest *)buildUploadRequestWithMonitorImage:(BOOL)monitor
  90. behavLog:(BOOL)behav
  91. panoImage:(BOOL)pano
  92. invokeType:(NSString *)type
  93. retryCnt:(NSInteger)retry;
  94. - (APBBisUploadGwRequest *)buildUploadRequestWithContent:(NSData *)data
  95. cypherKey:(NSData *)cypherKeyData
  96. invokeType:(NSString *)type
  97. retryCnt:(NSInteger)retry;
  98. /**
  99. * delegate
  100. */
  101. - (void)setDelegate:(id<APBToygerDataCenterDelegate>)delegate;
  102. @end