SHA256
- Created new service: IStayExportService" for common export operations. - Updated older services to be "IStayExportFormatProvider". This services will only implement the export format. - Renamed "IStayExportServiceFactory" to "IStayExportFormatProviderFactory" as this factory now is used to get the format providers for the given format.
14 lines
452 B
C#
14 lines
452 B
C#
using Somnia.GuestLog.Enums.Models;
|
|
using Somnia.GuestLog.Models.DTOs;
|
|
|
|
namespace Somnia.GuestLog.Services.StayExport;
|
|
|
|
public interface IStayExportService
|
|
{
|
|
public Task<Result<StayExportFileDTO>> ExportStaysByParamsAsync(StayExportFormat format, StayExportParamsDTO exportParams);
|
|
|
|
|
|
public Task<Result> GetExportedFileAsync(StayExportFileDTO item, Stream dataStream);
|
|
|
|
public Task<Result> DeleteExportedFileAsync(StayExportFileDTO item);
|
|
} |