Example #1
0
        internal static CfKeyword FromKeyword(Keyword source)
        {
            if (source == null)
            {
                return(null);
            }
            var state     = EnumeratedMapper.EnumFromSoapEnumerated <CfNumberStatus>(source.Status.ToString());
            var leaseInfo = LeaseInfoMapper.FromLeaseInfo(source.LeaseInfo);

            return(new CfKeyword(source.ShortCode, source.Keyword1, state, leaseInfo));
        }
Example #2
0
        internal static CfNumber FromNumber(Number source)
        {
            if (source == null)
            {
                return(null);
            }
            var region              = RegionMapper.FromRegion(source.Region);
            var status              = EnumeratedMapper.EnumFromSoapEnumerated <CfNumberStatus>(source.Status.ToString());
            var leaseInfo           = LeaseInfoMapper.FromLeaseInfo(source.LeaseInfo);
            var numberConfiguration = NumberConfigurationMapper.FromNumberConfiguration(source.NumberConfiguration);

            return(new CfNumber(source.Number1, source.NationalFormat, source.TollFree, region, status, leaseInfo, numberConfiguration));
        }