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

67 lines
1.3 KiB

7 months ago
  1. //
  2. // BioAuthFacade.h
  3. // BioAuthAPI
  4. //
  5. // Created by yukun.tyk on 12/7/15.
  6. // Copyright © 2015 DTF. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "APBRequest.h"
  10. #import "APBResponse.h"
  11. #import "APBCommand.h"
  12. /**
  13. *
  14. *
  15. * @param response
  16. */
  17. typedef void (^BioAuthCallback) (APBResponse *response);
  18. /**
  19. *
  20. *
  21. * @param success
  22. * @param reason
  23. */
  24. typedef void (^BioAuthExecCallback) (BOOL success, NSDictionary *reason);
  25. @interface BioAuthFacade : NSObject
  26. /**
  27. * meta数据
  28. */
  29. + (NSString *)getBioMetaInfo;
  30. /**
  31. *
  32. */
  33. + (void)preLoad;
  34. /**
  35. *
  36. *
  37. * @param request
  38. * @param callback
  39. */
  40. - (void)authWithRequest:(APBRequest *)request withCallback:(BioAuthCallback)callback;
  41. /**
  42. *
  43. *
  44. * @param command
  45. * @param callback
  46. */
  47. - (void)exec:(APBCommand *)command withCompletionCallback:(BioAuthExecCallback)callback;
  48. /**
  49. *
  50. */
  51. - (BOOL)isBusy;
  52. /**
  53. *
  54. */
  55. - (NSString *)version;
  56. @end