using Microsoft.AspNetCore.Http;

namespace PowderCoating.Application.Interfaces;

public interface IEquipmentManualService
{
    /// <summary>
    /// Save equipment manual to filesystem
    /// </summary>
    Task<(bool Success, string FilePath, string ErrorMessage)> SaveEquipmentManualAsync(IFormFile file, int companyId, int equipmentId);

    /// <summary>
    /// Delete equipment manual from filesystem
    /// </summary>
    Task<(bool Success, string ErrorMessage)> DeleteEquipmentManualAsync(string filePath);

    /// <summary>
    /// Get equipment manual from filesystem
    /// </summary>
    Task<(bool Success, byte[] FileContent, string ContentType, string ErrorMessage)> GetEquipmentManualAsync(string filePath);

    /// <summary>
    /// Check if equipment manual exists
    /// </summary>
    Task<bool> EquipmentManualExistsAsync(string filePath);
}
