APBCommand.h 862 B

12345678910111213141516171819202122232425262728
  1. //
  2. // APBCommand.h
  3. // BioAuthEngine
  4. //
  5. // Created by yukun.tyk on 11/26/15.
  6. // Copyright © 2015 DTF. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /**
  10. * 业务方可以执行的任务类型
  11. */
  12. typedef NS_ENUM(NSInteger, APBCommandType) {
  13. COMMAND_QUIT = 100, //业务方强制退出
  14. COMMAND_CLOSE_UPLOADPAGE = 101, //业务方关闭上传界面
  15. COMMAND_BIS_RETURN = 102, //业务方传递bis服务器返回结果,或网络错误结果
  16. };
  17. @interface APBCommand : NSObject
  18. @property(nonatomic, assign, readonly)APBCommandType commandType; //操作类型
  19. @property(nonatomic, strong, readonly)NSDictionary *params; //操作扩展参数,可以为空
  20. - (instancetype)initWithCommandType:(APBCommandType)commandType
  21. withParams:(NSDictionary *)params;
  22. @end