#region ========================================================================= USING =====================================================================================
using Lumina.Domain.Common.Primitives;
using Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management;
using Lumina.Application.Common.DataAccess.Repositories.Common.Actions;
using Lumina.Application.Common.DataAccess.Repositories.Common.Base;
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Application.Common.DataAccess.Repositories.MediaLibrary;
///
/// Interface for the repository for media library scans.
///
public interface ILibraryScanRepository : IRepository,
IGetByIdRepositoryAction,
IInsertRepositoryAction,
IUpdateRepositoryAction
{
///
/// Gets the media library scans that belong to a media library identified by , for the previous month, from the storage medium.
///
/// Cancellation token that can be used to stop the execution.
/// An containing either a collection of , or an error.
Task>> GetPastMonthScansByLibraryIdAsync(Guid libraryId, CancellationToken cancellationToken);
///
/// Gets the media library scans have a status, from the storage medium.
///
/// Cancellation token that can be used to stop the execution.
/// An containing either a collection of , or an error.
Task>> GetRunningScansAsync(CancellationToken cancellationToken);
}