#region ========================================================================= USING =====================================================================================
using ErrorOr;
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 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 libraries.
///
public interface ILibraryRepository : IRepository,
IGetByIdRepositoryAction,
IGetAllRepositoryAction,
IInsertRepositoryAction,
IUpdateRepositoryAction,
IDeleteByIdRepositoryAction
{
///
/// Gets all media libraries that are marked as enabled and unlocked, from the storage medium.
///
/// Cancellation token that can be used to stop the execution.
/// An containing either a collection of , or an error.
Task>> GetAllEnabledAndUnlockedAsync(CancellationToken cancellationToken);
///
/// Gets all media libraries that are marked as enabled from the storage medium.
///
/// Cancellation token that can be used to stop the execution.
/// An containing either a collection of , or an error.
Task>> GetAllEnabledAsync(CancellationToken cancellationToken);
}