Implemented the ability to send images to frontend with some contextual information.

This commit is contained in:
Joseph Milazzo 2021-01-08 15:17:39 -06:00
parent 7ab7e8acc4
commit 7bf04dcdac
6 changed files with 74 additions and 10 deletions

View file

@ -1,7 +1,10 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using API.DTOs;
namespace API.Interfaces
{
// TODO: Refactor this into IDiskService to encapsulate all disk based IO
public interface IDirectoryService
{
/// <summary>
@ -36,6 +39,14 @@ namespace API.Interfaces
/// <param name="volumeId">Id of volume being extracted.</param>
/// <returns></returns>
string ExtractArchive(string archivePath, int volumeId);
/// <summary>
/// Returns the path a volume would be extracted to.
/// </summary>
/// <param name="volumeId"></param>
/// <returns></returns>
string GetExtractPath(int volumeId);
Task<ImageDto> ReadImageAsync(string imagePath);
}
}