Constructor and Description |
---|
CallReader()
Construct a new CallReader.
|
CallReader(String pathAccountSid)
Construct a new CallReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Call> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Call> |
nextPage(Page<Call> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
ResourceSet<Call> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
CallReader |
setEndTime(org.joda.time.DateTime absoluteEndTime)
Only show call that ended on this date.
|
CallReader |
setEndTime(com.google.common.collect.Range<org.joda.time.DateTime> rangeEndTime)
Only show call that ended on this date.
|
CallReader |
setFrom(PhoneNumber from)
Only show calls from this phone number or Client identifier.
|
CallReader |
setParentCallSid(String parentCallSid)
Only show calls spawned by the call with this Sid.
|
CallReader |
setStartTime(org.joda.time.DateTime absoluteStartTime)
Only show calls that started on this date.
|
CallReader |
setStartTime(com.google.common.collect.Range<org.joda.time.DateTime> rangeStartTime)
Only show calls that started on this date.
|
CallReader |
setStatus(Call.Status status)
Only show calls currently in this status.
|
CallReader |
setTo(PhoneNumber to)
Only show calls to this phone number or Client identifier.
|
public CallReader()
public CallReader(String pathAccountSid)
pathAccountSid
- The account_sidpublic CallReader setTo(PhoneNumber to)
to
- Phone number or Client identifier to filter `to` onpublic CallReader setFrom(PhoneNumber from)
from
- Phone number or Client identifier to filter `from` onpublic CallReader setParentCallSid(String parentCallSid)
parentCallSid
- Parent Call Sid to filter onpublic CallReader setStatus(Call.Status status)
status
- Status to filter onpublic CallReader setStartTime(org.joda.time.DateTime absoluteStartTime)
absoluteStartTime
- StartTime to filter onpublic CallReader setStartTime(com.google.common.collect.Range<org.joda.time.DateTime> rangeStartTime)
rangeStartTime
- StartTime to filter onpublic CallReader setEndTime(org.joda.time.DateTime absoluteEndTime)
absoluteEndTime
- EndTime to filter onpublic CallReader setEndTime(com.google.common.collect.Range<org.joda.time.DateTime> rangeEndTime)
rangeEndTime
- EndTime to filter onpublic ResourceSet<Call> read(TwilioRestClient client)
public Page<Call> firstPage(TwilioRestClient client)
Copyright © 2016 Twilio, Inc. All Rights Reserved.