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> |
nextPage(Page<UsageRecord> page,
TwilioRestClient client)
Retrieve the next 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> nextPage(Page<UsageRecord> page, TwilioRestClient client)
nextPage
in class Reader<UsageRecord>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.