Package com.twilio.rest.flexapi.v1
Class InsightsConversationsReader
- java.lang.Object
-
- com.twilio.base.Reader<InsightsConversations>
-
- com.twilio.rest.flexapi.v1.InsightsConversationsReader
-
public class InsightsConversationsReader extends Reader<InsightsConversations>
-
-
Constructor Summary
Constructors Constructor Description InsightsConversationsReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<InsightsConversations>
firstPage(TwilioRestClient client)
Fetch the first page of resources using specified client.Page<InsightsConversations>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page of resources.Page<InsightsConversations>
nextPage(Page<InsightsConversations> page, TwilioRestClient client)
Fetch the following page of resources using specified client.Page<InsightsConversations>
previousPage(Page<InsightsConversations> page, TwilioRestClient client)
Fetch the prior page of resources using specified client.ResourceSet<InsightsConversations>
read(TwilioRestClient client)
Execute a request using specified client.InsightsConversationsReader
setAuthorization(String authorization)
InsightsConversationsReader
setPageSize(Long pageSize)
InsightsConversationsReader
setSegmentId(String segmentId)
-
-
-
Method Detail
-
setAuthorization
public InsightsConversationsReader setAuthorization(String authorization)
-
setSegmentId
public InsightsConversationsReader setSegmentId(String segmentId)
-
setPageSize
public InsightsConversationsReader setPageSize(Long pageSize)
-
read
public ResourceSet<InsightsConversations> read(TwilioRestClient client)
Description copied from class:Reader
Execute a request using specified client.- Specified by:
read
in classReader<InsightsConversations>
- Parameters:
client
- client used to make request- Returns:
- ResourceSet of objects
-
firstPage
public Page<InsightsConversations> firstPage(TwilioRestClient client)
Description copied from class:Reader
Fetch the first page of resources using specified client.- Specified by:
firstPage
in classReader<InsightsConversations>
- Parameters:
client
- client used to fetch- Returns:
- Page containing the first pageSize of resources
-
previousPage
public Page<InsightsConversations> previousPage(Page<InsightsConversations> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the prior page of resources using specified client.- Specified by:
previousPage
in classReader<InsightsConversations>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<InsightsConversations> nextPage(Page<InsightsConversations> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the following page of resources using specified client.- Specified by:
nextPage
in classReader<InsightsConversations>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the next pageSize of resources
-
getPage
public Page<InsightsConversations> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:Reader
Retrieve the target page of resources.- Specified by:
getPage
in classReader<InsightsConversations>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- client used to fetch- Returns:
- Page containing the target pageSize of resources
-
-