public class DeviceReader extends Reader<Device>
Constructor and Description |
---|
DeviceReader(String pathFleetSid)
Construct a new DeviceReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Device> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Device> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Device> |
nextPage(Page<Device> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Device> |
previousPage(Page<Device> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Device> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
DeviceReader |
setDeploymentSid(String deploymentSid)
Filters the resulting list of Devices by a unique string identifier of the
Deployment they are associated with..
|
public DeviceReader(String pathFleetSid)
pathFleetSid
- The fleet_sidpublic DeviceReader setDeploymentSid(String deploymentSid)
deploymentSid
- Find all Devices grouped under the specified Deployment.public ResourceSet<Device> read(TwilioRestClient client)
public Page<Device> firstPage(TwilioRestClient client)
public Page<Device> getPage(String targetUrl, TwilioRestClient client)
public Page<Device> nextPage(Page<Device> page, TwilioRestClient client)
public Page<Device> previousPage(Page<Device> page, TwilioRestClient client)
previousPage
in class Reader<Device>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.