Constructor and Description |
---|
LocalReader()
Construct a new LocalReader.
|
LocalReader(String pathAccountSid)
Construct a new LocalReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Local> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Local> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Local> |
nextPage(Page<Local> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Local> |
previousPage(Page<Local> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Local> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
LocalReader |
setBeta(Boolean beta)
Whether to include phone numbers new to the Twilio platform.
|
LocalReader |
setFriendlyName(String friendlyName)
A string that identifies the resources to read..
|
LocalReader |
setOrigin(String origin)
Whether to include phone numbers based on their origin.
|
LocalReader |
setPhoneNumber(PhoneNumber phoneNumber)
The phone numbers of the IncomingPhoneNumber resources to read.
|
LocalReader |
setPhoneNumber(String phoneNumber)
The phone numbers of the IncomingPhoneNumber resources to read.
|
public LocalReader()
public LocalReader(String pathAccountSid)
pathAccountSid
- The SID of the Account that created the resources to
readpublic LocalReader setBeta(Boolean beta)
beta
- Whether to include new phone numberspublic LocalReader setFriendlyName(String friendlyName)
friendlyName
- A string that identifies the resources to readpublic LocalReader setPhoneNumber(PhoneNumber phoneNumber)
phoneNumber
- The phone numbers of the resources to readpublic LocalReader setPhoneNumber(String phoneNumber)
phoneNumber
- The phone numbers of the resources to readpublic LocalReader setOrigin(String origin)
origin
- Include phone numbers based on their origin. By default, phone
numbers of all origin are included.public ResourceSet<Local> read(TwilioRestClient client)
public Page<Local> firstPage(TwilioRestClient client)
public Page<Local> getPage(String targetUrl, TwilioRestClient client)
public Page<Local> nextPage(Page<Local> page, TwilioRestClient client)
public Page<Local> previousPage(Page<Local> page, TwilioRestClient client)
previousPage
in class Reader<Local>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.