public void SetRouting() { var client = SelectedClient; var action = SelectedAction; var input = SelectedInput; var output = SelectedOutput; _server.SetRouting(client, action, input, output); LogInformation($"Set Routing: {input}, {output}, {action}"); }
/// <summary> /// Changes a route in the GoXLR app. /// </summary> /// <param name="name"></param> /// <param name="datalist"></param> private void RouteChange(string name, ActionData[] datalist) { var dict = datalist .ToDictionary(kv => kv.Id, kv => kv.Value); dict.TryGetValue(name + ".clients", out var clientIp); var client = GetClients(clientIp); if (client is null) { return; } var input = dict[name + ".inputs"]; var output = dict[name + ".outputs"]; var action = dict[name + ".actions"]; _server.SetRouting(client.ClientIdentifier, action, input, output); }