Changed the default way to modify values in store. Added basic validation to stores. Using interfaces to DI store objects.
This commit is contained in:
@@ -9,10 +9,10 @@ namespace HermesSocketServer.Requests
|
||||
{
|
||||
public string Name => "get_tts_voices";
|
||||
public string[] RequiredKeys => [];
|
||||
private VoiceStore _voices;
|
||||
private IStore<string, TTSVoice> _voices;
|
||||
private ILogger _logger;
|
||||
|
||||
public GetTTSVoices(VoiceStore voices, ILogger logger)
|
||||
public GetTTSVoices(IStore<string, TTSVoice> voices, ILogger logger)
|
||||
{
|
||||
_voices = voices;
|
||||
_logger = logger;
|
||||
|
||||
Reference in New Issue
Block a user