public class FieldValueReader extends Reader<FieldValue>
Constructor and Description |
---|
FieldValueReader(String pathAssistantSid,
String pathFieldTypeSid)
Construct a new FieldValueReader.
|
Modifier and Type | Method and Description |
---|---|
Page<FieldValue> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<FieldValue> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<FieldValue> |
nextPage(Page<FieldValue> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<FieldValue> |
previousPage(Page<FieldValue> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<FieldValue> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
FieldValueReader |
setLanguage(String language)
The ISO
language-country tag that specifies the language of the value.
|
public FieldValueReader(String pathAssistantSid, String pathFieldTypeSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
FieldType associated with the resources to readpathFieldTypeSid
- The SID of the Field Type associated with the Field
Value to readpublic FieldValueReader setLanguage(String language)
language
- The ISO language-country tag that identifies the language of
the valuepublic ResourceSet<FieldValue> read(TwilioRestClient client)
read
in class Reader<FieldValue>
client
- TwilioRestClient with which to make the requestpublic Page<FieldValue> firstPage(TwilioRestClient client)
firstPage
in class Reader<FieldValue>
client
- TwilioRestClient with which to make the requestpublic Page<FieldValue> getPage(String targetUrl, TwilioRestClient client)
getPage
in class Reader<FieldValue>
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the requestpublic Page<FieldValue> nextPage(Page<FieldValue> page, TwilioRestClient client)
nextPage
in class Reader<FieldValue>
page
- current pageclient
- TwilioRestClient with which to make the requestpublic Page<FieldValue> previousPage(Page<FieldValue> page, TwilioRestClient client)
previousPage
in class Reader<FieldValue>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.