Class SyncListPermissionReader
- java.lang.Object
-
- com.twilio.base.Reader<SyncListPermission>
-
- com.twilio.rest.preview.sync.service.synclist.SyncListPermissionReader
-
public class SyncListPermissionReader extends Reader<SyncListPermission>
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
-
-
Constructor Summary
Constructors Constructor Description SyncListPermissionReader(String pathServiceSid, String pathListSid)
Construct a new SyncListPermissionReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<SyncListPermission>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<SyncListPermission>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<SyncListPermission>
nextPage(Page<SyncListPermission> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<SyncListPermission>
previousPage(Page<SyncListPermission> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<SyncListPermission>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
-
-
Method Detail
-
read
public ResourceSet<SyncListPermission> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
read
in classReader<SyncListPermission>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- SyncListPermission ResourceSet
-
firstPage
public Page<SyncListPermission> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
firstPage
in classReader<SyncListPermission>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- SyncListPermission ResourceSet
-
getPage
public Page<SyncListPermission> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.- Specified by:
getPage
in classReader<SyncListPermission>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the request- Returns:
- SyncListPermission ResourceSet
-
nextPage
public Page<SyncListPermission> nextPage(Page<SyncListPermission> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.- Specified by:
nextPage
in classReader<SyncListPermission>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Next Page
-
previousPage
public Page<SyncListPermission> previousPage(Page<SyncListPermission> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<SyncListPermission>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-