feat: implement dynamic knowledge graph updates and state management services
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user