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