//
//  CloudStorageUploadCenter.h
//  zhuxun
//
//  Created by winsoft on 17/6/26.
//
//

#import <Foundation/Foundation.h>
#import "CSFileDownUpModel.h"
#import "CloudUploadSession.h"
typedef void (^FileUpStatusChangeBlock)(CSFileDownUpModel *csfileDownUpModel);
@interface CloudStorageUploadCenter : NSObject

+ (instancetype)sharedInstance;

- (void)userServerOut;

@property (nonatomic , strong) FileUpStatusChangeBlock fileUpStatusChangeBlock;

- (void)addOneFileToUpdateWithCSFileDownUpModel:(CSFileDownUpModel *)fileDownUpModel;

- (void)registeUploadForUIWithcsFileDownUpModel:(CSFileDownUpModel *)csFileDownUpModel ProcessBlock:(CSUploadProgressUIBlock)processBlock successBlock:(CSUploadSuccessUIBlock)successBlock failBlock:(CSUploadFailedUIBlock)failBlock;

/**
 *  外部更新下载操作,暂停,下载
 *
 *  @param csfileDownUpModel csfileDownUpModel
 */
- (void)updateOneUploadStatusWithcsfileDownUpModel:(CSFileDownUpModel *)csfileDownUpModel downUpStatus:(DownUpStatus)downUpStatus;
- (void)updateUploadStatusWithcsfileDownUpModels:(NSArray <CSFileDownUpModel *> *)csfileDownUpModels downUpStatus:(DownUpStatus)downUpStatus;
@end
