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>
28 lines
1.4 KiB
C#
28 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Kavita.Common.Helpers;
|
|
using Kavita.Models.DTOs;
|
|
using Kavita.Models.DTOs.Annotations;
|
|
using Kavita.Models.DTOs.Metadata.Browse.Requests;
|
|
using Kavita.Models.DTOs.Reader;
|
|
using Kavita.Models.Entities.User;
|
|
|
|
namespace Kavita.API.Repositories;
|
|
|
|
public interface IAnnotationRepository
|
|
{
|
|
void Attach(AppUserAnnotation annotation);
|
|
void Update(AppUserAnnotation annotation);
|
|
void Remove(AppUserAnnotation annotation);
|
|
void Remove(IEnumerable<AppUserAnnotation> annotations);
|
|
Task<AnnotationDto?> GetAnnotationDto(int id, CancellationToken ct = default);
|
|
Task<AppUserAnnotation?> GetAnnotation(int id, CancellationToken ct = default);
|
|
Task<IList<AppUserAnnotation>> GetAllAnnotations(CancellationToken ct = default);
|
|
Task<IList<AppUserAnnotation>> GetAnnotations(int userId, IList<int> ids, CancellationToken ct = default);
|
|
Task<IList<FullAnnotationDto>> GetFullAnnotationsByUserIdAsync(int userId, CancellationToken ct = default);
|
|
Task<IList<FullAnnotationDto>> GetFullAnnotations(int userId, IList<int> annotationIds, CancellationToken ct = default);
|
|
Task<PagedList<AnnotationDto>> GetAnnotationDtos(int userId, BrowseAnnotationFilterDto filter, UserParams userParams, CancellationToken ct = default);
|
|
Task<List<SeriesDto>> GetSeriesWithAnnotations(int userId, CancellationToken ct = default);
|
|
}
|