Constructor and Description |
---|
YesterdayReader()
Construct a new YesterdayReader.
|
YesterdayReader(String pathAccountSid)
Construct a new YesterdayReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Yesterday> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Yesterday> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Yesterday> |
nextPage(Page<Yesterday> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Yesterday> |
previousPage(Page<Yesterday> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Yesterday> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
YesterdayReader |
setCategory(Yesterday.Category category)
The usage
category of the UsageRecord resources to read.
|
YesterdayReader |
setEndDate(LocalDate endDate)
Only include usage that occurred on or before this date.
|
YesterdayReader |
setIncludeSubaccounts(Boolean includeSubaccounts)
Whether to include usage from the master account and all its subaccounts.
|
YesterdayReader |
setStartDate(LocalDate startDate)
Only include usage that has occurred on or after this date.
|
public YesterdayReader()
public YesterdayReader(String pathAccountSid)
pathAccountSid
- The SID of the Account that created the resources to
readpublic YesterdayReader setCategory(Yesterday.Category category)
category
- The usage category of the UsageRecord resources to readpublic YesterdayReader setStartDate(LocalDate startDate)
startDate
- Only include usage that has occurred on or after this datepublic YesterdayReader setEndDate(LocalDate endDate)
endDate
- Only include usage that occurred on or before this datepublic YesterdayReader setIncludeSubaccounts(Boolean includeSubaccounts)
includeSubaccounts
- Whether to include usage from the master account
and all its subaccountspublic ResourceSet<Yesterday> read(TwilioRestClient client)
public Page<Yesterday> firstPage(TwilioRestClient client)
public Page<Yesterday> getPage(String targetUrl, TwilioRestClient client)
public Page<Yesterday> nextPage(Page<Yesterday> page, TwilioRestClient client)
public Page<Yesterday> previousPage(Page<Yesterday> page, TwilioRestClient client)
previousPage
in class Reader<Yesterday>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.