Interface CallInformation
public interface CallInformation
CallInformation
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Dedicated Builderstatic class
Must bepstn
for PSTN.static class
Contains the reason why a call ended.static class
The status of the call. -
Method Summary
Modifier and TypeMethodDescriptionstatic CallInformation.Builder
builder()
Getting builderThe unique identifier of the call.A string that can be used to pass custom information related to the call.getDebit()
Get debitMust bepstn
for PSTN.The duration of the call in seconds.getFrom()
Get fromContains the reason why a call ended.Get resultThe status of the call.The date and time of the call.getTo()
Get toGet userRate
-
Method Details
-
getFrom
CallInformationFrom getFrom()Get from- Returns:
- from
-
getTo
CallInformationTo getTo()Get to- Returns:
- to
-
getDomain
CallInformation.DomainEnum getDomain()Must bepstn
for PSTN.- Returns:
- domain
-
getCallId
String getCallId()The unique identifier of the call.- Returns:
- callId
-
getDuration
Integer getDuration()The duration of the call in seconds.- Returns:
- duration
-
getStatus
CallInformation.StatusEnum getStatus()The status of the call. EitherONGOING
orFINAL
- Returns:
- status
-
getResult
CallResult getResult()Get result- Returns:
- result
-
getReason
CallInformation.ReasonEnum getReason()Contains the reason why a call ended.- Returns:
- reason
-
getTimestamp
Instant getTimestamp()The date and time of the call.- Returns:
- timestamp
-
getCustom
String getCustom()A string that can be used to pass custom information related to the call.- Returns:
- custom
-
getUserRate
Price getUserRate()Get userRate- Returns:
- userRate
-
getDebit
Price getDebit()Get debit- Returns:
- debit
-
builder
Getting builder- Returns:
- New Builder instance
-