Major refactor #141
@ -1,25 +0,0 @@
|
|||||||
using OF_DL.Models;
|
|
||||||
using OF_DL.Services;
|
|
||||||
|
|
||||||
namespace OF_DL.Helpers;
|
|
||||||
|
|
||||||
internal interface IDownloadContext
|
|
||||||
{
|
|
||||||
public IFileNameFormatConfig FileNameFormatConfig { get; }
|
|
||||||
public IAPIService ApiService { get; }
|
|
||||||
public IDBService DBService { get; }
|
|
||||||
public IDownloadService DownloadService { get; }
|
|
||||||
}
|
|
||||||
|
|
||||||
internal class DownloadContext(
|
|
||||||
IFileNameFormatConfig fileNameFormatConfig,
|
|
||||||
IAPIService apiService,
|
|
||||||
IDBService dBService,
|
|
||||||
IDownloadService downloadService)
|
|
||||||
: IDownloadContext
|
|
||||||
{
|
|
||||||
public IAPIService ApiService { get; } = apiService;
|
|
||||||
public IDBService DBService { get; } = dBService;
|
|
||||||
public IDownloadService DownloadService { get; } = downloadService;
|
|
||||||
public IFileNameFormatConfig FileNameFormatConfig { get; } = fileNameFormatConfig;
|
|
||||||
}
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
namespace OF_DL.Helpers;
|
|
||||||
|
|
||||||
public interface IFileNameHelper
|
|
||||||
{
|
|
||||||
Task<string> BuildFilename(string fileFormat, Dictionary<string, string> values);
|
|
||||||
|
|
||||||
Task<Dictionary<string, string>> GetFilename(object obj1, object obj2, object obj3, List<string> selectedProperties,
|
|
||||||
string username, Dictionary<string, long>? users);
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user