ZimRpcManager.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // ZIMRpcManager.h
  3. // DTFIdentityManager
  4. //
  5. // Created by richard on 26/02/2018.
  6. // Copyright © 2018 com. DTF.iphoneclient.DTF. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <DTFUtility/DTFUtility.h>
  10. #import <DTFUtility/DTFRPCProxyProtocol.h>
  11. /**
  12. * rpc结果回调
  13. *
  14. * @param success 网络交互是否成功(不代表服务端返回的结果)
  15. * @param result 服务端返回的结果
  16. */
  17. @interface ZimRpcManager : NSObject
  18. @property(nonatomic, weak) id<DTFRPCProxyProtocol> rpcDelegate;
  19. //代理模式
  20. //- (void)doValidateRequetViaDelegate:(ZimValidateRequest * )request withcompletionBlock:(rpcCompletionBlock)blk;
  21. /**
  22. * zim init request
  23. *
  24. * @param request 初始化请求
  25. * @param blk 网络请求结果回调处理,result为ZimInitResponse
  26. */
  27. - (void)doFastUploadInitRequest:(ZimInitRequest * )request withcompletionBlock:(DTFRpcCompletionBlock)blk;
  28. /**
  29. * zim validate request
  30. *
  31. * @param request validate请求
  32. * @param blk 网络请求结果回调处理,result为ZimValidateResponse
  33. */
  34. - (void)doFastUploadValidateRequest:(ZimValidateRequest * )request withcompletionBlock:(DTFRpcCompletionBlock)blk;
  35. //OCR接口
  36. - (void) doSendOCRContent:(NSString*)certifyId idSide:(NSString*)side withImage:(NSData*)imageData withcompletionBlock:(rpcCompletionBlock)blk;
  37. // SMS 请求接口
  38. - (void)getSMSCode:(NSDictionary*)serviceParameters completionBlock:(DTFRpcCompletionBlock)blk;
  39. // SMS 验证接口
  40. - (void)verifySMSCode:(NSDictionary*)serviceParameters completionBlock:(DTFRpcCompletionBlock)blk;
  41. @end