洛阳学员端
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.

169 lines
5.2 KiB

9 months ago
  1. //
  2. // APFRemoteConfig.h
  3. // AppArch
  4. //
  5. // Created by yukun.tyk on 8/29/16.
  6. // Copyright © 2016 DTF. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <CoreGraphics/CGBase.h>
  10. @class APBToygerSceneEnv, APBToygerVideo, APFRemoteConfig, APBToygerCollect, APBDragonflyLivenessConfig,APBGeminiLivenessConfig;
  11. @class APBToygerNavigatePage, APBToygerAlgorithm, APBToygerTips;
  12. /**
  13. *
  14. */
  15. @interface APBToygerRemoteConfig : NSObject
  16. @property(nonatomic, strong)APBToygerSceneEnv *sceneEnv;
  17. @property(nonatomic, strong)APBToygerNavigatePage *navi;
  18. @property (nonatomic, copy) NSDictionary *suitable;
  19. @property(nonatomic, strong)APBToygerCollect *coll;
  20. @property (nonatomic, copy) NSDictionary *upload;
  21. @property (nonatomic, copy) NSDictionary *algorithm;
  22. @property(nonatomic, strong)APBToygerTips * faceTips;
  23. @property(nonatomic, assign)NSInteger env;
  24. @property(nonatomic, assign)NSInteger ui;
  25. @property(nonatomic, copy)NSString *sdkVersion;
  26. @property(nonatomic, strong)APBToygerVideo * video;
  27. @property(nonatomic, copy)NSString *verifyMode;
  28. +(APBToygerRemoteConfig *)defaultConfig;
  29. + (void)loadFromJSON:(NSString *)json toObject:(NSObject*) obj;
  30. @end
  31. /**
  32. *
  33. */
  34. @interface APBToygerSceneEnv : NSObject
  35. @property(nonatomic, copy)NSString *sceneCode;
  36. @property(nonatomic, copy)NSString *sceneType;
  37. +(APBToygerSceneEnv *)defaultConfig;
  38. @end
  39. /**
  40. *
  41. */
  42. @interface APBToygerNavigatePage : NSObject
  43. @property(nonatomic, assign)BOOL enable;
  44. @property(nonatomic, copy)NSString *url;
  45. + (APBToygerNavigatePage *)defaultConfig;
  46. @end
  47. /**
  48. *
  49. */
  50. @interface APBToygerCollect : NSObject
  51. @property(nonatomic, assign)NSInteger retry;
  52. @property(nonatomic, assign)CGFloat minangle;
  53. @property(nonatomic, assign)CGFloat maxangle;
  54. @property(nonatomic, assign)CGFloat near;
  55. @property(nonatomic, assign)CGFloat far;
  56. @property(nonatomic, assign)NSInteger minlight;
  57. @property(nonatomic, assign)NSInteger time;
  58. @property(nonatomic, assign)NSInteger light;
  59. @property(nonatomic, assign)NSInteger imageIndex;
  60. @property(nonatomic, assign)BOOL uploadLivePic;
  61. @property(nonatomic, assign)NSInteger uploadMonitorPic;
  62. @property(nonatomic, assign)BOOL progressbar;
  63. @property(nonatomic, assign)BOOL uploadBestPic;
  64. @property(nonatomic, assign)BOOL uploadPoseOkPic;
  65. @property(nonatomic, assign)BOOL uploadBigPic;
  66. @property(nonatomic, assign)BOOL authorization;
  67. @property(nonatomic, assign)NSInteger mineDscore;
  68. @property(nonatomic, assign)NSInteger mineVideo;
  69. @property(nonatomic, strong)NSArray<NSString *> *actionMode;
  70. + (APBToygerCollect *)defaulConfig;
  71. @end
  72. /**
  73. *
  74. */
  75. @interface APBToygerVideo : NSObject
  76. @property(nonatomic, assign)NSInteger width;
  77. @property(nonatomic, assign)NSInteger height;
  78. @property(nonatomic, assign)NSInteger duration;
  79. @property(nonatomic, assign)NSInteger bitrate;
  80. @property(nonatomic, assign)NSInteger fps;
  81. @property(nonatomic, assign)BOOL enable; ;
  82. +(APBToygerVideo *)defaultConfig;
  83. @end
  84. @interface APBToygerAlertConfig : NSObject
  85. @property(nonatomic, copy)NSString * title;
  86. @property(nonatomic, copy)NSString * message;
  87. @property(nonatomic, copy)NSString * leftButtonText;
  88. @property(nonatomic, copy)NSString * rightButtonText;
  89. @property(nonatomic, assign)NSInteger returnCode;
  90. @end
  91. @interface APBToygerTips : NSObject
  92. //required
  93. @property(nonatomic, strong)APBToygerAlertConfig * timeoutAlert;
  94. @property(nonatomic, strong)APBToygerAlertConfig * failAlert;
  95. @property(nonatomic, strong)APBToygerAlertConfig * limitAlert;
  96. @property(nonatomic, strong)APBToygerAlertConfig * networkErrorAlert;
  97. @property(nonatomic, strong)APBToygerAlertConfig * interruptAlert;
  98. @property (nonatomic, copy) NSString *sceneText;
  99. @property (nonatomic, copy) NSString *bottomText;
  100. @property (nonatomic, copy) NSString *topText_rectwidth;
  101. @property (nonatomic, copy) NSString *topText_noface;
  102. @property (nonatomic, copy) NSString *topText_blur;
  103. @property (nonatomic, copy) NSString *topText_light;
  104. @property (nonatomic, copy) NSString *topText_pitch;
  105. @property (nonatomic, copy) NSString *topText_yaw;
  106. @property (nonatomic, copy) NSString *topText_quality;
  107. @property (nonatomic, copy) NSString *topText_integrity;
  108. @property (nonatomic, copy) NSString *topText_max_rectwidth;
  109. @property (nonatomic, copy) NSString *topText_stay;
  110. @property (nonatomic, copy) NSString *topText_openness;
  111. @property (nonatomic, copy) NSString *topText_blink;
  112. @property (nonatomic, copy) NSString *topText_left_yaw;
  113. @property (nonatomic, copy) NSString *topText_right_yaw;
  114. @property (nonatomic, copy) NSString *topText_mouth_open;
  115. @property (nonatomic, copy) NSString *brandTip;
  116. @property (nonatomic, copy) NSString *stopScanTip;
  117. @property (nonatomic, copy) NSString *garfield_guideTitle;
  118. @property (nonatomic, copy) NSString *garfield_guideMsg;
  119. //optional
  120. @property(nonatomic, strong)APBToygerAlertConfig * unsurpportAlert;
  121. @property(nonatomic, strong)APBToygerAlertConfig * systemVersionErrorAlert;
  122. @property(nonatomic, strong)APBToygerAlertConfig * systemErrorAlert;
  123. @property(nonatomic, strong)APBToygerAlertConfig * cameraNoPermissionAlert;
  124. @property(nonatomic, strong)APBToygerAlertConfig * exitAlert;
  125. @property(nonatomic, strong)APBToygerAlertConfig * authorizationAlert;
  126. @property(nonatomic, strong)APBToygerAlertConfig * failNoRetryAlert;
  127. +(APBToygerTips *)defaultConfig;
  128. @end