Constructor and Description |
---|
SessionReader(String pathServiceSid)
Construct a new SessionReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Session> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Session> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Session> |
nextPage(Page<Session> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Session> |
previousPage(Page<Session> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Session> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
public SessionReader(String pathServiceSid)
pathServiceSid
- The SID of the Service to fetch the resource frompublic ResourceSet<Session> read(TwilioRestClient client)
public Page<Session> firstPage(TwilioRestClient client)
public Page<Session> getPage(String targetUrl, TwilioRestClient client)
public Page<Session> nextPage(Page<Session> page, TwilioRestClient client)
public Page<Session> previousPage(Page<Session> page, TwilioRestClient client)
previousPage
in class Reader<Session>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.