Interface CallInformation
public interface CallInformation
CallInformation
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDedicated Builderstatic classMust bepstnfor PSTN.static classContains the reason why a call ended.static classThe status of the call. -
Method Summary
Modifier and TypeMethodDescriptionstatic CallInformation.Builderbuilder()Getting builderThe unique identifier of the call.A string that can be used to pass custom information related to the call.getDebit()Get debitMust bepstnfor 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 bepstnfor 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. EitherONGOINGorFINAL- 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
-