protected void SetConfigCommonField(IVRMenuBaseConfig config)
 {
     config.Id           = Id;
     config.ParentId     = ParentId;
     config.Name         = Name;
     config.TouchToneKey = TouchToneKey;
     config.Introduction = Introduction;
     config.AudioFile    = AudioFile;
     config.NarratorType = NarratorType;
 }
 public IVRMenuElementBase(IVRMenuBaseConfig config)
 {
     Id           = config.Id;
     ParentId     = config.ParentId;
     Name         = config.Name;
     TouchToneKey = config.TouchToneKey;
     Introduction = config.Introduction;
     AudioFile    = config.AudioFile;
     NarratorType = config.NarratorType;
     ChildMenus   = new List <IVRMenuElementBase>();
 }
Exemplo n.º 3
0
 public VmIVRMenuElementBase(IVRMenuBaseConfig model)
 {
     Id           = model.Id;
     ParentId     = model.ParentId;
     Name         = model.Name;
     TouchToneKey = model.TouchToneKey;
     Introduction = model.Introduction;
     AudioFile    = model.AudioFile;
     NarratorType = model.NarratorType;
     ChildMenus   = new List <VmIVRMenuElementBase>();
 }
Exemplo n.º 4
0
        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);
        }