mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-04-02 15:23:40 -04:00
21 lines
747 B
C#
21 lines
747 B
C#
using System.Threading.Tasks;
|
|
using Kavita.Models.DTOs.ReadingLists.CBL;
|
|
using Kavita.Models.DTOs.ReadingLists.CBL.Import;
|
|
|
|
namespace Kavita.API.Services.ReadingLists;
|
|
|
|
|
|
public interface ICblImportService
|
|
{
|
|
Task<CblImportSummaryDto> ValidateList(int userId, string filePath);
|
|
/// <summary>
|
|
/// Creates a new RL or updates an existing
|
|
/// </summary>
|
|
Task<CblImportSummaryDto> UpsertReadingList(int userId, string filePath, CblImportDecisions decisions);
|
|
/// <summary>
|
|
/// Checks for updates against upstream ReadingList files and attempts to Update reading list.
|
|
/// </summary>
|
|
/// <remarks>Does not prompt for validation, makes best guess</remarks>
|
|
Task SyncReadingList(int userId, int readingListId);
|
|
}
|