| 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.
|
SessionReader |
setStatus(Session.Status status)
The Status of this Session.
|
SessionReader |
setUniqueName(String uniqueName)
Provides a unique and addressable name to be assigned to this Session,
assigned by the developer, to be optionally used in addition to SID..
|
public SessionReader(String pathServiceSid)
pathServiceSid - Service Sid.public SessionReader setUniqueName(String uniqueName)
uniqueName - A unique, developer assigned name of this Session.public SessionReader setStatus(Session.Status status)
status - The Status of this Sessionpublic 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 © 2016 Twilio, Inc. All Rights Reserved.