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.
|
public DataSessionReader(String pathSimSid)
pathSimSid
- The SID of the Sim resource with the Data Sessions to readpublic 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 © 2019 Twilio, Inc. All Rights Reserved.