QNZone.h 808 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // QNZone.h
  3. // QiniuSDK
  4. //
  5. // Created by yangsen on 2020/4/16.
  6. // Copyright © 2020 Qiniu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class QNResponseInfo, QNUpToken, QNZonesInfo, QNUploadRegionRequestMetrics;
  11. typedef void (^QNPrequeryReturn)(int code, QNResponseInfo * _Nullable httpResponseInfo, QNUploadRegionRequestMetrics * _Nullable metrics);
  12. @interface QNZone : NSObject
  13. /// 根据token查询相关Zone信息【内部使用】
  14. /// @param token token信息
  15. /// @param ret 查询回调
  16. - (void)preQuery:(QNUpToken * _Nullable)token
  17. on:(QNPrequeryReturn)ret;
  18. /// 根据token获取ZonesInfo 【内部使用】
  19. /// @param token token信息
  20. - (QNZonesInfo *)getZonesInfoWithToken:(QNUpToken * _Nullable)token;
  21. @end
  22. NS_ASSUME_NONNULL_END