1
0

feat: Introduce ITranscriptionOrchestrator and related interfaces, refactoring DaemonService and other components to use dependency injection.

This commit is contained in:
2026-02-28 15:36:03 +01:00
parent ac0ac2397b
commit 0577640da9
18 changed files with 356 additions and 175 deletions

View File

@@ -1,12 +1,14 @@
using System.Diagnostics;
using Toak.Core.Interfaces;
namespace Toak.IO;
public static class Notifications
public class Notifications : INotifications
{
private static bool _notifySendAvailable = true;
private bool _notifySendAvailable = true;
public static void Notify(string summary, string body = "")
public void Notify(string summary, string body = "")
{
if (!_notifySendAvailable) return;
@@ -32,9 +34,9 @@ public static class Notifications
}
}
private static bool _paplayAvailable = true;
private bool _paplayAvailable = true;
public static void PlaySound(string soundPath)
public void PlaySound(string soundPath)
{
if (!_paplayAvailable || string.IsNullOrWhiteSpace(soundPath)) return;
try