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

/**
 *  最底层上传模块,待保留此
 *
 */
#import <Foundation/Foundation.h>
typedef void (^UploadProgressBlock)(double progress,NSInteger sendedSize, NSString *msgUUID);
typedef void (^UploadSuccessBlock)(NSString* url,long long fileSize,NSString *msgUUID);
typedef void (^UploadFailedBlock)(NSString* errMessage,NSString *msgUUID);

@interface WSUploadSession : NSObject

/**
 *  for DB- move to last page ,keep one interface block.
 */
//@property (nonatomic, strong)UploadSuccessBlock uploadSuccessDBBlock;
//@property (nonatomic, strong)UploadFailedBlock uploadFailedDBBlock;
//@property (nonatomic, strong)UploadProgressBlock uploadProgressDBBlock;
/**
 *  for UI
 */
@property (nonatomic, strong)UploadSuccessBlock uploadSuccessBlock;
@property (nonatomic, strong)UploadFailedBlock uploadFailedBlock;
@property (nonatomic, strong)UploadProgressBlock uploadProgressBlock;

+ (WSUploadSession *)uploadFileWithServerHost:(NSString *)host port:(NSString *)port fileMD5:(NSString *)fileMD5  uuid:(NSString *)uuid fileSize:(NSInteger)fileSize startSize:(NSInteger)startSize localFileFullPath:(NSString *)localFileFullPath processBlock:(UploadProgressBlock)processBlock successBlock:(UploadSuccessBlock)successBlock failBlock:(UploadFailedBlock)failBlock;


- (void)cancerUpload;

@end
