Add http action type and Sonar mute toggle (chatCapture, media channels)

This commit is contained in:
2026-08-25 02:41:02 +02:00
parent 9797cd7e79
commit a6dc2b6230
8 changed files with 227 additions and 33 deletions
+5 -1
View File
@@ -1,12 +1,16 @@
public static class ActionFactory
{
public static IAction? Create(BindingConfig config)
public static IAction? Create(BindingConfig config, string? sonarAddress)
{
return config.Type switch
{
"launch" => new LaunchAction(config.Target),
"url" => new UrlAction(config.Target),
"keystroke" => new KeystrokeAction(config.Target),
"http" => new HttpAction(config.Method, config.Target, config.Body),
"sonar-toggle-mute" => sonarAddress is not null
? new SonarToggleMuteAction(sonarAddress, config.Target)
: null,
_ => null
};
}