| Constructor and Description |
|---|
ShortCodeReader()
Construct a new ShortCodeReader.
|
ShortCodeReader(String pathAccountSid)
Construct a new ShortCodeReader.
|
| Modifier and Type | Method and Description |
|---|---|
Page<ShortCode> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<ShortCode> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<ShortCode> |
nextPage(Page<ShortCode> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<ShortCode> |
previousPage(Page<ShortCode> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<ShortCode> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
ShortCodeReader |
setFriendlyName(String friendlyName)
Only show the ShortCode resources with friendly names that exactly match this
name.
|
ShortCodeReader |
setShortCode(String shortCode)
Only show the ShortCode resources that match this pattern.
|
public ShortCodeReader()
public ShortCodeReader(String pathAccountSid)
pathAccountSid - The account_sidpublic ShortCodeReader setFriendlyName(String friendlyName)
friendlyName - Filter by friendly namepublic ShortCodeReader setShortCode(String shortCode)
shortCode - Filter by ShortCodepublic ResourceSet<ShortCode> read(TwilioRestClient client)
public Page<ShortCode> firstPage(TwilioRestClient client)
public Page<ShortCode> getPage(String targetUrl, TwilioRestClient client)
public Page<ShortCode> nextPage(Page<ShortCode> page, TwilioRestClient client)
public Page<ShortCode> previousPage(Page<ShortCode> page, TwilioRestClient client)
previousPage in class Reader<ShortCode>page - current pageclient - TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.