QNUploadInfoV2.h 809 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // QNUploadInfoV2.h
  3. // QiniuSDK
  4. //
  5. // Created by yangsen on 2021/5/13.
  6. // Copyright © 2021 Qiniu. All rights reserved.
  7. //
  8. #import "QNConfiguration.h"
  9. #import "QNUploadData.h"
  10. #import "QNUploadInfo.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface QNUploadInfoV2 : QNUploadInfo
  13. @property(nonatomic, copy, nullable)NSString *uploadId;
  14. @property(nonatomic, strong, nullable)NSNumber *expireAt;
  15. + (instancetype)info:(id <QNUploadSource>)source
  16. configuration:(QNConfiguration *)configuration;
  17. + (instancetype)info:(id <QNUploadSource>)source
  18. dictionary:(NSDictionary *)dictionary;
  19. - (QNUploadData *)nextUploadData:(NSError **)error;
  20. - (NSInteger)getPartIndexOfData:(QNUploadData *)data;
  21. - (NSArray <NSDictionary <NSString *, NSObject *> *> *)getPartInfoArray;
  22. @end
  23. NS_ASSUME_NONNULL_END