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