Глобальный рефакторинг пространств имён
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System.IO;
|
||||
using Pf2e.Scrapper.Helpers;
|
||||
|
||||
namespace Pf2e.Scrapper.Importers.Repositories;
|
||||
|
||||
/// <summary>
|
||||
/// Класс абстрактного репозитория.
|
||||
/// </summary>
|
||||
/// <param name="importer">Импортёр, использующий репозиторий.</param>
|
||||
internal abstract class AbstractImporterRepository(AbstractImporter importer)
|
||||
{
|
||||
/// <summary>
|
||||
/// Импортёр, использующий репозиторий.
|
||||
/// </summary>
|
||||
public readonly AbstractImporter Importer = importer;
|
||||
|
||||
/// <inheritdoc cref="AbstractImporter.Dir"/>
|
||||
public string RepositoryDirPath => Importer.Dir;
|
||||
|
||||
/// <summary>
|
||||
/// CLR-представкление директории с данными.
|
||||
/// </summary>
|
||||
public DirectoryInfo RepositoryDir => new(RepositoryDirPath);
|
||||
|
||||
/// <summary>
|
||||
/// Обновление данных в репозитории.
|
||||
/// </summary>
|
||||
public abstract void Update(ProcessProgress progress);
|
||||
}
|
||||
Reference in New Issue
Block a user