feat: Introduce ITranscriptionOrchestrator and related interfaces, refactoring DaemonService and other components to use dependency injection.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user