/* * AlibcTokenService.h * * 阿里百川电商 * 项目名称:阿里巴巴电商 AlibcTradeBiz * 版本号:3.1.1.96 * 发布时间:2017-03-24 * 开发团队:阿里巴巴百川商业化团队 * 阿里巴巴电商SDK答疑群号:1229144682(阿里旺旺) * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved. */ #import #ifndef AlibcTokenService_h #define AlibcTokenService_h typedef void(^TokenRequestCallback)(NSError *_Nullable error, NSString *_Nullable dataObj); @interface AlibcTokenService : NSObject @property(nonatomic, strong) NSString *_Nullable token; @property(nonatomic, strong) NSDate *_Nullable expire; @property(nonatomic, strong) NSDate *_Nullable lastUpdate; + (nonnull instancetype)sharedInstantce; - (nullable NSString *)getLocalToken; - (void)setTokenInvalid; - (void)getRemoteToken:(nonnull NSArray *)list callBack:(nonnull TokenRequestCallback)callBack; @end #endif