Exemplo n.º 1
0
 public CfNumber(string number1, string nationalFormat, bool tollFree, CfRegion region, CfNumberStatus?status,
                 CfLeaseInfo leaseInfo, CfNumberConfiguration numberConfiguration)
 {
     Number1             = number1;
     NationalFormat      = nationalFormat;
     TollFree            = tollFree;
     Region              = region;
     Status              = status;
     LeaseInfo           = leaseInfo;
     NumberConfiguration = numberConfiguration;
 }
 public NumberConfiguration(CfNumberConfiguration source)
 {
     if (source.CallFeature.HasValue)
     {
         CallFeature = EnumeratedMapper.ToSoapEnumerated<NumberFeature>(source.CallFeature.Value.ToString());
         CallFeatureSpecified = true;
     }
     if (source.TextFeature.HasValue)
     {
         TextFeature = EnumeratedMapper.ToSoapEnumerated<NumberFeature>(source.TextFeature.Value.ToString());
         TextFeatureSpecified = true;
     }
     if (source.InboundCallConfigurationType.HasValue)
     {
         InboundCallConfigurationType =
             EnumeratedMapper.ToSoapEnumerated<InboundType>(source.InboundCallConfigurationType.Value.ToString());
         InboundCallConfigurationTypeSpecified = true;
     }
     InboundCallConfiguration = NumberConfigurationInboundCallConfigurationMapper
         .ToNumberConfigurationInboundCallConfiguration(source.InboundCallConfiguration);
 }
Exemplo n.º 3
0
 public CfNumber(string number1, string nationalFormat, bool tollFree, CfRegion region, CfNumberStatus? status, 
     CfLeaseInfo leaseInfo, CfNumberConfiguration numberConfiguration)
 {
     Number1 = number1;
     NationalFormat = nationalFormat;
     TollFree = tollFree;
     Region = region;
     Status = status;
     LeaseInfo = leaseInfo;
     NumberConfiguration = numberConfiguration;
 }
 internal static NumberConfiguration ToNumberConfiguration(CfNumberConfiguration source)
 {
     return source == null ? null : new NumberConfiguration(source);
 }
 public CfConfigureNumber(string number, CfNumberConfiguration numberConfiguration)
 {
     Number = number;
     NumberConfiguration = numberConfiguration;
 }