internal static CfIvrBroadcastConfig FromSoapIvrBroadcastConfig(IvrBroadcastConfig source)
        {
            if (source == null)
            {
                return(null);
            }
            var localTimeZoneRestriction =
                LocalTimeZoneRestrictionMapper.FromSoapLocalTimeZoneRestriction(source.LocalTimeZoneRestriction);
            var retryConfig = BroadcastConfigRetryConfigMapper.FromBroadcastConfigRetryConfig(source.RetryConfig);

            return(new CfIvrBroadcastConfig(source.id, source.Created, source.FromNumber, localTimeZoneRestriction, retryConfig, source.DialplanXml));
        }
        internal static CfTextBroadcastConfig FromSoapTextBroadcastConfig(TextBroadcastConfig source)
        {
            if (source == null)
            {
                return(null);
            }
            var localTimeZoneRestriction =
                LocalTimeZoneRestrictionMapper.FromSoapLocalTimeZoneRestriction(source.LocalTimeZoneRestriction);
            var retryConfig        = BroadcastConfigRetryConfigMapper.FromBroadcastConfigRetryConfig(source.RetryConfig);
            var bigMessageStrategy = EnumeratedMapper.EnumFromSoapEnumerated <CfBigMessageStrategy>(source.BigMessageStrategy.ToString());

            return(new CfTextBroadcastConfig(source.id, source.Created, source.FromNumber, localTimeZoneRestriction, retryConfig, source.Message, bigMessageStrategy));
        }
        internal static CfVoiceBroadcastConfig FromSoapVoiceBroadcastConfig(VoiceBroadcastConfig source)
        {
            if (source == null)
            {
                return(null);
            }
            var localTimeZoneRestriction =
                LocalTimeZoneRestrictionMapper.FromSoapLocalTimeZoneRestriction(source.LocalTimeZoneRestriction);
            var retryConfig            = BroadcastConfigRetryConfigMapper.FromBroadcastConfigRetryConfig(source.RetryConfig);
            var answeringMachineConfig = EnumeratedMapper.EnumFromSoapEnumerated <CfAnsweringMachineConfig>(source.AnsweringMachineConfig.ToString());

            return(new CfVoiceBroadcastConfig(source.id, source.Created, source.FromNumber, localTimeZoneRestriction,
                                              retryConfig, answeringMachineConfig, source.Item, source.LiveSoundTextVoice, source.Item1,
                                              source.MachineSoundTextVoice, source.Item2, source.TransferSoundTextVoice, source.TransferDigit,
                                              source.TransferNumber, source.Item3, source.DncSoundTextVoice, source.DncDigit, source.MaxActiveTransfers));
        }