//
//  CloudDownloadSession.h
//  zhuxun
//
//  Created by winsoft on 17/6/29.
//
//

#import <Foundation/Foundation.h>
#import "WSDownloadSession.h"
#import "CSFileDownUpModel.h"

@interface CloudDownloadSession : NSObject

/**
 *  for 队列.
 */
@property (nonatomic, strong)DownloadProgressUIBlock downloadProgressDBBlock; //参数改为fileDownUpModel
@property (nonatomic, strong)DownloadSuccessUIBlock downloadSuccessDBBlock;
@property (nonatomic, strong)DownloadFailedUIBlock downloadFailedDBBlock;

@property (nonatomic , strong, readonly) CSFileDownUpModel *fileDownUpModel;
+ (CloudDownloadSession *)startDownloadFileWithFileDownUpModel:(CSFileDownUpModel *)fileDownUpModel;

//外层UI注册回调
- (void)giveBlockToUIWithUUID:(NSString *)uuid withProcessBlock:(DownloadProgressUIBlock)processBlock successBlock:(DownloadSuccessUIBlock)successBlock failBlock:(DownloadFailedUIBlock)failBlock;

- (void)cancerDownLoad;
@end
