Nenhuma Descrição

AlibcMtopBridge.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * AlibcMtopBridge.h
  3. *
  4. * 阿里百川电商
  5. * 项目名称:阿里巴巴电商 AlibcTradeCommon
  6. * 版本号:3.1.1.200
  7. * 发布时间:2017-08-21
  8. * 开发团队:阿里巴巴百川商业化团队
  9. * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺)
  10. * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
  11. */
  12. #import <Foundation/Foundation.h>
  13. #import "AlibcConfig.h"
  14. #ifndef AlibcMtopBridge_h
  15. #define AlibcMtopBridge_h
  16. @class AlibcNetPacket;
  17. @class MtopError;
  18. @class AlibcNetError;
  19. @interface AlibcMtopBridge : NSObject
  20. + (BOOL)isAvailable;
  21. + (void)openSDKSwitchLog:(BOOL)logCtr;
  22. + (void)initMtop;
  23. + (void)setEnvironment:(AlibcEnvironment)env;
  24. + (void)setTTID:(NSString *)ttid;
  25. @end
  26. @protocol AlibcMtopAdapter <NSObject>
  27. - (void)openSDKSwitchLog:(BOOL)logCtr;
  28. - (void)initMtop;
  29. - (BOOL)performSend:(AlibcNetPacket *)packet;
  30. - (AlibcNetError *)proccessMtopError:(MtopError *)sdkError;
  31. - (BOOL)shouldRetry:(NSError *)error;
  32. - (void)setTTID:(NSString *)ttid;
  33. - (void)setEnvironment:(AlibcEnvironment)env;
  34. @end
  35. #endif