Files
mindforge/Mindforge.API/Services/Interfaces/IFlashcardRepository.cs
Jose Henrique f03bcc40e3
All checks were successful
Mindforge API Build and Deploy / Build Mindforge API Image (push) Successful in 3m58s
Mindforge API Build and Deploy / Deploy Mindforge API (internal) (push) Successful in 37s
Mindforge Web Build and Deploy (internal) / Build Mindforge Web Image (push) Successful in 5m19s
Mindforge Web Build and Deploy (internal) / Deploy Mindforge Web (internal) (push) Successful in 11s
timed revision
2026-06-01 19:08:48 -03:00

21 lines
807 B
C#

using Mindforge.API.Models.Flashcards;
namespace Mindforge.API.Services.Interfaces
{
public interface IFlashcardRepository
{
Task EnsureSchemaAsync();
Task<FlashcardLibraryDetails> UpsertLibraryAsync(
string filePath,
string fileName,
string subject,
string difficulty,
IReadOnlyList<FlashcardDraftCard> cards);
Task<IReadOnlyList<FlashcardLibrarySummary>> GetLibrariesAsync();
Task<FlashcardLibraryDetails?> GetLibraryByIdAsync(long libraryId);
Task<IReadOnlyList<FlashcardCard>> GetCardsForLibrariesAsync(IReadOnlyList<long> libraryIds);
Task<IReadOnlyList<FlashcardCardWithLibrary>> GetAllCardsWithLibraryAsync();
Task RecordReviewAnswerAsync(long cardId, bool correct);
}
}