19 lines
851 B
C#
19 lines
851 B
C#
using AVSCartonShipmentVerifier.DTOs;
|
|
|
|
namespace AVSCartonShipmentVerifier.Services;
|
|
|
|
public interface IScanHistoryStore
|
|
{
|
|
Task AddSuccessfulScanAsync(ScannedRecordDto record, CancellationToken cancellationToken = default);
|
|
|
|
Task AddRejectedScanAsync(RejectedScanRecordDto record, CancellationToken cancellationToken = default);
|
|
|
|
Task<IReadOnlyCollection<ScannedRecordDto>> GetLastFiveSuccessfulScansAsync(CancellationToken cancellationToken = default);
|
|
|
|
Task<IReadOnlyCollection<RejectedScanRecordDto>> GetLastFiveRejectedScansAsync(CancellationToken cancellationToken = default);
|
|
|
|
Task<IReadOnlyCollection<ScannedRecordDto>> GetAllSuccessfulScansAsync(CancellationToken cancellationToken = default);
|
|
|
|
Task<IReadOnlyCollection<RejectedScanRecordDto>> GetAllRejectedScansAsync(CancellationToken cancellationToken = default);
|
|
}
|