public VmIVRMenuElementVoiceMessageRecorder(IVRMenuElementVoiceMessageRecorder model) : base(model) { Icon = "/OPSIVRSystem;component/Resources/voicerecorder.png"; PostIntroduction = model.PostIntroduction; PostIntroductionAudio = model.PostIntroductionAudio; }
public override IVRMenuElementBase GetModel() { var res = new IVRMenuElementVoiceMessageRecorder(); InitModelCommonFields(res); res.PostIntroduction = PostIntroduction; res.PostIntroductionAudio = PostIntroductionAudio; return res; }
private IVRMenuElementBase GetIVRMenuFromConfig(IVRMenuBaseConfig menu) { IVRMenuElementBase result; if (menu is IVRMenuCallTransferConfig) { result = new IVRMenuElementCallTransfer((IVRMenuCallTransferConfig)menu); } else if (menu is IVRMenuInfoReaderConfig) { result = new IVRMenuElementInfoReader((IVRMenuInfoReaderConfig)menu); } else { result = new IVRMenuElementVoiceMessageRecorder((IVRMenuVoiceMessageRecorderConfig)menu); } return result; }
private IVRMenuElementVoiceMessageRecorder(IVRMenuElementVoiceMessageRecorder original) : base(original) { PostIntroduction = original.PostIntroduction; PostIntroductionAudio = original.PostIntroduction; }