Class TaskChannelReader
- java.lang.Object
-
- com.twilio.base.Reader<TaskChannel>
-
- com.twilio.rest.taskrouter.v1.workspace.TaskChannelReader
-
public class TaskChannelReader extends Reader<TaskChannel>
-
-
Constructor Summary
Constructors Constructor Description TaskChannelReader(String pathWorkspaceSid)
Construct a new TaskChannelReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<TaskChannel>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<TaskChannel>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<TaskChannel>
nextPage(Page<TaskChannel> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<TaskChannel>
previousPage(Page<TaskChannel> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<TaskChannel>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
-
-
Constructor Detail
-
TaskChannelReader
public TaskChannelReader(String pathWorkspaceSid)
Construct a new TaskChannelReader.- Parameters:
pathWorkspaceSid
- The unique ID of the Workspace that this TaskChannel belongs to.
-
-
Method Detail
-
read
public ResourceSet<TaskChannel> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
read
in classReader<TaskChannel>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- TaskChannel ResourceSet
-
firstPage
public Page<TaskChannel> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
firstPage
in classReader<TaskChannel>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- TaskChannel ResourceSet
-
getPage
public Page<TaskChannel> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.- Specified by:
getPage
in classReader<TaskChannel>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the request- Returns:
- TaskChannel ResourceSet
-
nextPage
public Page<TaskChannel> nextPage(Page<TaskChannel> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.- Specified by:
nextPage
in classReader<TaskChannel>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Next Page
-
previousPage
public Page<TaskChannel> previousPage(Page<TaskChannel> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<TaskChannel>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-