public class QueryReader extends Reader<Query>
Constructor and Description |
---|
QueryReader(String pathAssistantSid)
Construct a new QueryReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Query> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Query> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Query> |
nextPage(Page<Query> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Query> |
previousPage(Page<Query> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Query> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
QueryReader |
setLanguage(String language)
An ISO language-country string of the sample..
|
QueryReader |
setModelBuild(String modelBuild)
The Model Build Sid or unique name of the Model Build to be queried..
|
QueryReader |
setStatus(String status)
A string that described the query status.
|
public QueryReader(String pathAssistantSid)
pathAssistantSid
- The unique ID of the parent Assistant.public QueryReader setLanguage(String language)
language
- An ISO language-country string of the sample.public QueryReader setModelBuild(String modelBuild)
modelBuild
- The Model Build Sid or unique name of the Model Build to
be queried.public QueryReader setStatus(String status)
status
- A string that described the query status. The values can be:
pending_review, reviewed, discardedpublic ResourceSet<Query> read(TwilioRestClient client)
public Page<Query> firstPage(TwilioRestClient client)
public Page<Query> getPage(String targetUrl, TwilioRestClient client)
public Page<Query> nextPage(Page<Query> page, TwilioRestClient client)
public Page<Query> previousPage(Page<Query> page, TwilioRestClient client)
previousPage
in class Reader<Query>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.