using System.IO; using System.Threading; using System.Threading.Tasks; namespace AsbCloudApp.Services; /// /// Сервис для работы c каталогом инструкций /// public interface IManualCatalogService { /// /// Сохранение файла /// /// /// /// /// /// /// Task SaveFileAsync(int idDirectory, int idAuthor, string name, Stream stream, CancellationToken cancellationToken); /// /// Добавление директории /// /// /// /// /// Task AddDirectoryAsync(string name, int? idParent, CancellationToken cancellationToken); /// /// Обновление директории /// /// /// /// /// Task UpdateDirectoryAsync(int id, string name, CancellationToken cancellationToken); /// /// Удаление директории /// /// /// /// Task DeleteDirectoryAsync(int id, CancellationToken cancellationToken); /// /// Удаление файла /// /// /// /// Task DeleteFileAsync(int id, CancellationToken cancellationToken); /// /// Получение файла /// /// /// /// Task<(Stream stream, string fileName)?> GetFileAsync(int id, CancellationToken cancellationToken); }