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