Files

30 lines
999 B
C#

using System.IO;
using Pf2e.Scrapper.Helpers;
namespace Pf2e.Scrapper.Importers.Repositories;
/// <summary>
/// Класс абстрактного репозитория.
/// </summary>
/// <param name="importer">Импортёр, использующий репозиторий.</param>
public 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);
}