mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-03-10 12:05:51 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
20 lines
749 B
C#
20 lines
749 B
C#
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Kavita.Models.DTOs.MediaErrors;
|
|
using Kavita.Models.Entities;
|
|
|
|
namespace Kavita.API.Repositories;
|
|
|
|
public interface IMediaErrorRepository
|
|
{
|
|
void Attach(MediaError error);
|
|
void Remove(MediaError error);
|
|
void Remove(IList<MediaError> errors);
|
|
Task<MediaError?> Find(string filename, CancellationToken ct = default);
|
|
Task<IEnumerable<MediaErrorDto>> GetAllErrorDtosAsync(CancellationToken ct = default);
|
|
Task<bool> ExistsAsync(MediaError error, CancellationToken ct = default);
|
|
Task DeleteAll(CancellationToken ct = default);
|
|
Task<List<MediaError>> GetAllErrorsAsync(IList<string> comments, CancellationToken ct = default);
|
|
}
|