酷店

AlibcTokenService.h 990B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * AlibcTokenService.h
  3. *
  4. * 阿里百川电商
  5. * 项目名称:阿里巴巴电商 AlibcTradeBiz
  6. * 版本号:3.1.1.96
  7. * 发布时间:2017-03-24
  8. * 开发团队:阿里巴巴百川商业化团队
  9. * 阿里巴巴电商SDK答疑群号:1229144682(阿里旺旺)
  10. * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
  11. */
  12. #import <Foundation/Foundation.h>
  13. #ifndef AlibcTokenService_h
  14. #define AlibcTokenService_h
  15. typedef void(^TokenRequestCallback)(NSError *_Nullable error, NSString *_Nullable dataObj);
  16. @interface AlibcTokenService : NSObject
  17. @property(nonatomic, strong) NSString *_Nullable token;
  18. @property(nonatomic, strong) NSDate *_Nullable expire;
  19. @property(nonatomic, strong) NSDate *_Nullable lastUpdate;
  20. + (nonnull instancetype)sharedInstantce;
  21. - (nullable NSString *)getLocalToken;
  22. - (void)setTokenInvalid;
  23. - (void)getRemoteToken:(nonnull NSArray<NSString *> *)list callBack:(nonnull TokenRequestCallback)callBack;
  24. @end
  25. #endif