public TelephonyDTO(LmsCompany instance) { if (instance == null) { throw new ArgumentNullException(nameof(instance)); } ActiveProfile = instance.GetSetting <string>(LmsLicenseSettingNames.Telephony.ActiveProfile); CourseMeetingOption = instance.GetSetting <int>(LmsLicenseSettingNames.Telephony.CourseMeetingOption); OfficeHoursOption = instance.GetSetting <int>(LmsLicenseSettingNames.Telephony.OfficeHoursOption); StudyGroupOption = instance.GetSetting <int>(LmsLicenseSettingNames.Telephony.StudyGroupOption); MeetingOne = new TelephonyMeetingOneDTO { OwningAccountNumber = instance.GetSetting <string>(LmsLicenseSettingNames.Telephony.MeetingOne.OwningAccountNumber), UserName = instance.GetSetting <string>(LmsLicenseSettingNames.Telephony.MeetingOne.UserName), SecretHashKey = instance.GetSetting <string>(LmsLicenseSettingNames.Telephony.MeetingOne.SecretHashKey), }; Arkadin = new TelephonyArkadinDTO { UserName = instance.GetSetting <string>(LmsLicenseSettingNames.Telephony.Arkadin.UserName), }; }
public TelephonyDTO() { ActiveProfile = SupportedProfiles.None; MeetingOne = new TelephonyMeetingOneDTO(); Arkadin = new TelephonyArkadinDTO(); }