public class UsageRecordReader extends Reader<UsageRecord>
| Constructor and Description |
|---|
UsageRecordReader(String pathSimSid)
Construct a new UsageRecordReader.
|
| Modifier and Type | Method and Description |
|---|---|
Page<UsageRecord> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<UsageRecord> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<UsageRecord> |
nextPage(Page<UsageRecord> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<UsageRecord> |
previousPage(Page<UsageRecord> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<UsageRecord> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
UsageRecordReader |
setEnd(org.joda.time.DateTime end)
The end.
|
UsageRecordReader |
setGranularity(UsageRecord.Granularity granularity)
The granularity.
|
UsageRecordReader |
setStart(org.joda.time.DateTime start)
The start.
|
public UsageRecordReader(String pathSimSid)
pathSimSid - The sim_sidpublic UsageRecordReader setEnd(org.joda.time.DateTime end)
end - The endpublic UsageRecordReader setStart(org.joda.time.DateTime start)
start - The startpublic UsageRecordReader setGranularity(UsageRecord.Granularity granularity)
granularity - The granularitypublic ResourceSet<UsageRecord> read(TwilioRestClient client)
read in class Reader<UsageRecord>client - TwilioRestClient with which to make the requestpublic Page<UsageRecord> firstPage(TwilioRestClient client)
firstPage in class Reader<UsageRecord>client - TwilioRestClient with which to make the requestpublic Page<UsageRecord> getPage(String targetUrl, TwilioRestClient client)
getPage in class Reader<UsageRecord>targetUrl - API-generated URL for the requested results pageclient - TwilioRestClient with which to make the requestpublic Page<UsageRecord> nextPage(Page<UsageRecord> page, TwilioRestClient client)
nextPage in class Reader<UsageRecord>page - current pageclient - TwilioRestClient with which to make the requestpublic Page<UsageRecord> previousPage(Page<UsageRecord> page, TwilioRestClient client)
previousPage in class Reader<UsageRecord>page - current pageclient - TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.