| Constructor and Description |
|---|
MediaReader(String pathMessageSid)
Construct a new MediaReader.
|
MediaReader(String pathAccountSid,
String pathMessageSid)
Construct a new MediaReader.
|
| Modifier and Type | Method and Description |
|---|---|
Page<Media> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Media> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Media> |
nextPage(Page<Media> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Media> |
previousPage(Page<Media> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Media> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
MediaReader |
setDateCreated(org.joda.time.DateTime absoluteDateCreated)
Only show media created on the given date, or before/after using date
inequalities..
|
MediaReader |
setDateCreated(com.google.common.collect.Range<org.joda.time.DateTime> rangeDateCreated)
Only show media created on the given date, or before/after using date
inequalities..
|
public MediaReader(String pathMessageSid)
pathMessageSid - The message_sidpublic MediaReader setDateCreated(org.joda.time.DateTime absoluteDateCreated)
absoluteDateCreated - Filter by date createdpublic MediaReader setDateCreated(com.google.common.collect.Range<org.joda.time.DateTime> rangeDateCreated)
rangeDateCreated - Filter by date createdpublic ResourceSet<Media> read(TwilioRestClient client)
public Page<Media> firstPage(TwilioRestClient client)
public Page<Media> getPage(String targetUrl, TwilioRestClient client)
public Page<Media> nextPage(Page<Media> page, TwilioRestClient client)
public Page<Media> previousPage(Page<Media> page, TwilioRestClient client)
previousPage in class Reader<Media>page - current pageclient - TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.