14 lines
352 B
C#
14 lines
352 B
C#
namespace NexusReader.Web.Client.Services;
|
|
|
|
public sealed class QuizStateService : IQuizStateService
|
|
{
|
|
public string? CurrentQuizBlockId { get; private set; }
|
|
public event Action<string>? OnQuizRequested;
|
|
|
|
public void RequestQuiz(string blockId)
|
|
{
|
|
CurrentQuizBlockId = blockId;
|
|
OnQuizRequested?.Invoke(blockId);
|
|
}
|
|
}
|