Class UserChannelReader
- java.lang.Object
-
- com.twilio.base.Reader<UserChannel>
-
- com.twilio.rest.ipmessaging.v2.service.user.UserChannelReader
-
public class UserChannelReader extends Reader<UserChannel>
-
-
Constructor Summary
Constructors Constructor Description UserChannelReader(String pathServiceSid, String pathUserSid)
Construct a new UserChannelReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<UserChannel>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<UserChannel>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<UserChannel>
nextPage(Page<UserChannel> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<UserChannel>
previousPage(Page<UserChannel> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<UserChannel>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
-
-
Method Detail
-
read
public ResourceSet<UserChannel> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
read
in classReader<UserChannel>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- UserChannel ResourceSet
-
firstPage
public Page<UserChannel> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
firstPage
in classReader<UserChannel>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- UserChannel ResourceSet
-
getPage
public Page<UserChannel> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.- Specified by:
getPage
in classReader<UserChannel>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the request- Returns:
- UserChannel ResourceSet
-
nextPage
public Page<UserChannel> nextPage(Page<UserChannel> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.- Specified by:
nextPage
in classReader<UserChannel>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Next Page
-
previousPage
public Page<UserChannel> previousPage(Page<UserChannel> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<UserChannel>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-