| Constructor and Description |
|---|
RecordReader()
Construct a new RecordReader.
|
RecordReader(String pathAccountSid)
Construct a new RecordReader.
|
| Modifier and Type | Method and Description |
|---|---|
Page<Record> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Record> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Record> |
nextPage(Page<Record> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Record> |
previousPage(Page<Record> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Record> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
RecordReader |
setCategory(Record.Category category)
Only include usage of a given category.
|
RecordReader |
setEndDate(org.joda.time.LocalDate endDate)
Only include usage that has occurred on or after this date.
|
RecordReader |
setStartDate(org.joda.time.LocalDate startDate)
Only include usage that has occurred on or after this date.
|
public RecordReader()
public RecordReader(String pathAccountSid)
pathAccountSid - The account_sidpublic RecordReader setCategory(Record.Category category)
category - Only include usage of a given categorypublic RecordReader setStartDate(org.joda.time.LocalDate startDate)
startDate - Filter by start datepublic RecordReader setEndDate(org.joda.time.LocalDate endDate)
endDate - Filter by end datepublic ResourceSet<Record> read(TwilioRestClient client)
public Page<Record> firstPage(TwilioRestClient client)
public Page<Record> getPage(String targetUrl, TwilioRestClient client)
public Page<Record> nextPage(Page<Record> page, TwilioRestClient client)
public Page<Record> previousPage(Page<Record> page, TwilioRestClient client)
previousPage in class Reader<Record>page - current pageclient - TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.