feat: implement dynamic knowledge graph updates and state management services

This commit is contained in:
2026-04-26 14:53:48 +02:00
parent 412320980f
commit 7859c9806f
30 changed files with 668 additions and 153 deletions
@@ -1,8 +1,19 @@
using NexusReader.Application.Queries.Quiz;
namespace NexusReader.UI.Shared.Services;
public interface IQuizStateService
{
string? CurrentQuizBlockId { get; }
QuizDto? CurrentQuiz { get; }
bool IsHydrating { get; }
bool HasNewQuiz { get; }
event Action<string>? OnQuizRequested;
event Action? OnQuizUpdated;
void RequestQuiz(string blockId);
void SetQuiz(string blockId, QuizDto quiz);
void SetHydrating(bool hydrating);
void MarkQuizAsSeen();
}