Example #1
0
 public async Task <ListResponse <Numbers> > ListAsync(
     string starts_with = null, string country_iso2 = null,
     string type        = null, uint?limit = null, uint?offset = null)
 {
     return(await PowerpackI
            .List_NumbersAsync(numberpooluuid, starts_with, country_iso2, type, limit, offset));
 }
Example #2
0
 public Numbers Buy_Add_Number(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(PowerpackI
            .Add_Number(numberpooluuid, number, service, true));
 }
Example #3
0
 public async Task <Numbers> Buy_Add_NumberAsync(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(await PowerpackI
            .Add_NumberAsync(numberpooluuid, number, true));
 }
Example #4
0
 public uint Count(string starts_with = null, string country_iso2 = null,
                   string type        = null, uint?limit = null, uint?offset = null)
 {
     return(PowerpackI
            .Count_Number(numberpooluuid, starts_with, country_iso2, type, limit, offset));
 }
Example #5
0
 public ListResponse <Numbers> List(string starts_with = null, string country_iso2 = null,
                                    string type        = null, uint?limit = null, uint?offset = null)
 {
     return(PowerpackI.List_Numbers(numberpooluuid, starts_with, country_iso2, type, limit, offset));
 }
Example #6
0
 public async Task <Numbers> FindAsync(
     string number)
 {
     return(await PowerpackI
            .Find_NumberAsync(numberpooluuid, number));
 }
Example #7
0
 public Numbers Find(string number)
 {
     return(PowerpackI
            .Find_Number(numberpooluuid, number));
 }
Example #8
0
 public async Task <DeleteResponse <Numbers> > RemoveAsync(
     string number, bool?unrent = null)
 {
     return(await PowerpackI
            .Remove_NumberAsync(numberpooluuid, number, unrent));
 }
Example #9
0
 public DeleteResponse <Numbers> Remove(string number, bool?unrent = null)
 {
     return(PowerpackI
            .Remove_Number(numberpooluuid, number, unrent));
 }
Example #10
0
 public Numbers Add(string number)
 {
     return(PowerpackI
            .Add_Number(numberpooluuid, number));
 }