Exemplo n.º 1
0
 public async Task <Numbers> Buy_Add_NumberAsync(string number = null, string type = null, string country_iso2 = null, string region = null, string pattern = null, string service = null)
 {
     if (number == null)
     {
         var countryIso = country_iso2;
         var numbers    = PhoneNumberI.List(countryIso, type, pattern, region);
         number = numbers.Objects[0].Number;
     }
     return(await((PowerpackInterface)Interface)
            .Add_NumberAsync(number_pool_id, number, service, true));
 }
Exemplo n.º 2
0
 public Numbers Buy_Add_Number(string number = null, string type = null, string country_iso2 = null, string region = null, string pattern = null)
 {
     if (number == null)
     {
         var countryIso = country_iso2;
         var numbers    = PhoneNumberI.List(countryIso, type, pattern, region);
         number = numbers.Objects[0].Number;
     }
     return(PowerpackI
            .Add_Number(numberpooluuid, number, true));
 }