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>
21 lines
802 B
C#
21 lines
802 B
C#
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Kavita.Models.DTOs.Font;
|
|
using Kavita.Models.Entities;
|
|
|
|
namespace Kavita.API.Repositories;
|
|
|
|
public interface IEpubFontRepository
|
|
{
|
|
void Add(EpubFont font);
|
|
void Remove(EpubFont font);
|
|
void Update(EpubFont font);
|
|
Task<IList<EpubFontDto>> GetFontDtosAsync(CancellationToken ct = default);
|
|
Task<EpubFontDto?> GetFontDtoAsync(int fontId, CancellationToken ct = default);
|
|
Task<EpubFontDto?> GetFontDtoByNameAsync(string name, CancellationToken ct = default);
|
|
Task<IList<EpubFont>> GetFontsAsync(CancellationToken ct = default);
|
|
Task<EpubFont?> GetFontAsync(int fontId, CancellationToken ct = default);
|
|
Task<bool> IsFontInUseAsync(int fontId, CancellationToken ct = default);
|
|
}
|