internal void SetAudioCodecsInternal(AudioCodecInformation[] codecs) { List<CallButler.Telecom.AudioCodecInformation> newCodecs = new List<CallButler.Telecom.AudioCodecInformation>(); foreach (WOSI.CallButler.ManagementInterface.AudioCodecInformation acInfo in codecs) { CallButler.Telecom.AudioCodecInformation newAcInfo = new CallButler.Telecom.AudioCodecInformation(); newAcInfo.Enabled = acInfo.Enabled; newAcInfo.Name = acInfo.Name; newCodecs.Add(newAcInfo); } telecomProvider.SetAudioCodecs(newCodecs.ToArray()); Properties.Settings.Default.AudioCodecs = newCodecs.ToArray(); Properties.Settings.Default.Save(); }
//public bool FirstTimeRun //{ // get // { // return Properties.Settings.Default.FirstTimeRun; // } // set // { // Properties.Settings.Default.FirstTimeRun = value; // Properties.Settings.Default.Save(); // } //} public AudioCodecInformation[] GetAudioCodecs(CallButlerAuthInfo authInfo) { if (Authenticate(authInfo)) { List<AudioCodecInformation> codecs = new List<AudioCodecInformation>(); foreach (CallButler.Telecom.AudioCodecInformation acInfo in telecomProvider.GetAudioCodecs()) { WOSI.CallButler.ManagementInterface.AudioCodecInformation newAcInfo = new AudioCodecInformation(); newAcInfo.Enabled = acInfo.Enabled; newAcInfo.Name = acInfo.Name; codecs.Add(newAcInfo); } return codecs.ToArray(); } else return null; }
public void SetAudioCodecs(CallButlerAuthInfo authInfo, AudioCodecInformation[] codecs) { if (Authenticate(authInfo)) { SetAudioCodecsInternal(codecs); } }