forked from sim0n00ps/OF-DL
27 lines
862 B
C#
27 lines
862 B
C#
using OF_DL.Entities;
|
|
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;
|
|
}
|
|
}
|