public void SetProfile()
        {
            var client = SelectedClient;

            var profile = SelectedProfile;

            _server.SetProfile(client, profile);

            LogInformation($"Set Profile: {profile}");
        }
Beispiel #2
0
        /// <summary>
        /// Changes the profile in the GoXLR app.
        /// </summary>
        /// <param name="name"></param>
        /// <param name="datalist"></param>
        private void ProfileChange(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 profile = dict[name + ".profiles"];

            _server.SetProfile(client.ClientIdentifier, profile);
        }