Constructor and Description |
---|
ActivityReader(String pathWorkspaceSid)
Construct a new ActivityReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Activity> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Activity> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Activity> |
nextPage(Page<Activity> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Activity> |
previousPage(Page<Activity> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Activity> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
ActivityReader |
setAvailable(String available)
Whether return only Activity resources that are available or unavailable.
|
ActivityReader |
setFriendlyName(String friendlyName)
The `friendly_name` of the Activity resources to read..
|
public ActivityReader(String pathWorkspaceSid)
pathWorkspaceSid
- The SID of the Workspace with the Activity resources
to readpublic ActivityReader setFriendlyName(String friendlyName)
friendlyName
- The friendly_name of the Activity resources to readpublic ActivityReader setAvailable(String available)
available
- Whether to return activities that are available or
unavailablepublic ResourceSet<Activity> read(TwilioRestClient client)
public Page<Activity> firstPage(TwilioRestClient client)
public Page<Activity> getPage(String targetUrl, TwilioRestClient client)
public Page<Activity> nextPage(Page<Activity> page, TwilioRestClient client)
public Page<Activity> previousPage(Page<Activity> page, TwilioRestClient client)
previousPage
in class Reader<Activity>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.