public static ResourceList < AvailableNumber > list ( final BandwidthClient client , final int page , final int size ) throws IOException { final String availableNumbersUri = client . getUserResourceUri ( BandwidthConstants . AVAILABLE_NUMBERS_URI_PATH ) ; // TODO add new ResourceList ctor to allow arbitrary params final ResourceList < AvailableNumber > availableNumbers = new ResourceList < AvailableNumber > ( page , size , availableNumbersUri , AvailableNumber . class ) ; availableNumbers . setClient ( client ) ; availableNumbers . initialize ( ) ; return availableNumbers ; }
Factory method for AvailableNumber list returns list of AvailableNumber objects with page size preferences with a given client