Package com.twilio.rest.video.v1
Class CompositionReader
- java.lang.Object
-
- com.twilio.base.Reader<Composition>
-
- com.twilio.rest.video.v1.CompositionReader
-
public class CompositionReader extends Reader<Composition>
-
-
Constructor Summary
Constructors Constructor Description CompositionReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Composition>firstPage(TwilioRestClient client)Fetch the first page of resources using specified client.Page<Composition>getPage(String targetUrl, TwilioRestClient client)Retrieve the target page of resources.Page<Composition>nextPage(Page<Composition> page, TwilioRestClient client)Fetch the following page of resources using specified client.Page<Composition>previousPage(Page<Composition> page, TwilioRestClient client)Fetch the prior page of resources using specified client.ResourceSet<Composition>read(TwilioRestClient client)Execute a request using specified client.CompositionReadersetDateCreatedAfter(ZonedDateTime dateCreatedAfter)CompositionReadersetDateCreatedBefore(ZonedDateTime dateCreatedBefore)CompositionReadersetPageSize(Integer pageSize)CompositionReadersetRoomSid(String roomSid)CompositionReadersetStatus(Composition.Status status)
-
-
-
Method Detail
-
setStatus
public CompositionReader setStatus(Composition.Status status)
-
setDateCreatedAfter
public CompositionReader setDateCreatedAfter(ZonedDateTime dateCreatedAfter)
-
setDateCreatedBefore
public CompositionReader setDateCreatedBefore(ZonedDateTime dateCreatedBefore)
-
setRoomSid
public CompositionReader setRoomSid(String roomSid)
-
setPageSize
public CompositionReader setPageSize(Integer pageSize)
-
read
public ResourceSet<Composition> read(TwilioRestClient client)
Description copied from class:ReaderExecute a request using specified client.- Specified by:
readin classReader<Composition>- Parameters:
client- client used to make request- Returns:
- ResourceSet of objects
-
firstPage
public Page<Composition> firstPage(TwilioRestClient client)
Description copied from class:ReaderFetch the first page of resources using specified client.- Specified by:
firstPagein classReader<Composition>- Parameters:
client- client used to fetch- Returns:
- Page containing the first pageSize of resources
-
previousPage
public Page<Composition> previousPage(Page<Composition> page, TwilioRestClient client)
Description copied from class:ReaderFetch the prior page of resources using specified client.- Specified by:
previousPagein classReader<Composition>- Parameters:
page- current page of resourcesclient- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<Composition> nextPage(Page<Composition> page, TwilioRestClient client)
Description copied from class:ReaderFetch the following page of resources using specified client.- Specified by:
nextPagein classReader<Composition>- Parameters:
page- current page of resourcesclient- client used to fetch- Returns:
- Page containing the next pageSize of resources
-
getPage
public Page<Composition> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:ReaderRetrieve the target page of resources.- Specified by:
getPagein classReader<Composition>- Parameters:
targetUrl- API-generated URL for the requested results pageclient- client used to fetch- Returns:
- Page containing the target pageSize of resources
-
-