//
//  OperationDownload.h
//  tuber
//
//  Created by ドラッサル亜嵐 on 2019/04/09.
//  Copyright © 2019 ドラッサル 亜嵐. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface OperationDownload : NSObject <NSURLSessionDelegate> {
    NSLock* _lock;
}

- (void)startup;

@property (nonatomic, strong) NSURLSession *session;

@property (nonatomic, strong) NSMutableArray *arrFileDownloadData;

@property (nonatomic, strong) NSURL *docDirectoryURL;

- (void)dummy;

-(void)initializeFileDownloadDataArray;
-(int)getFileDownloadInfoIndexWithTaskIdentifier:(unsigned long)taskIdentifier;
- (int)addDownload:(NSString *)title
              path:(NSString *)path
   destinationPath:(NSString *)destinationPath;
- (void)startDownloadingSingleFile:(int)fileId;

+ (instancetype)sharedInstance;

@end

NS_ASSUME_NONNULL_END
