QNZone.h 892 B

12345678910111213141516171819202122232425262728293031323334353637
  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 "QNZoneInfo.h"
  9. #import "QNHttpResponseInfo.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @class QNUpToken, QNZonesInfo;
  12. typedef void (^QNPrequeryReturn)(int code, QNHttpResponseInfo * _Nullable httpResponseInfo);
  13. @interface QNZone : NSObject
  14. - (NSString *)upHost:(QNZoneInfo *)zoneInfo
  15. isHttps:(BOOL)isHttps
  16. lastUpHost:(NSString *)lastUpHost;
  17. /**
  18. * 默认上传服务器地址列表
  19. */
  20. - (void)preQuery:(QNUpToken * _Nullable)token
  21. on:(QNPrequeryReturn)ret;
  22. - (QNZonesInfo *)getZonesInfoWithToken:(QNUpToken * _Nullable)token;
  23. - (NSString *)up:(QNUpToken * _Nullable)token
  24. zoneInfoType:(QNZoneInfoType)zoneInfoType
  25. isHttps:(BOOL)isHttps
  26. frozenDomain:(NSString * _Nullable)frozenDomain;
  27. @end
  28. NS_ASSUME_NONNULL_END