Interface DisconnectedCallEvent
- All Superinterfaces:
VoiceWebhookCallEvent
,VoiceWebhookEvent
The request body of a Disconnected Call Event.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Dedicated Builderstatic class
The reason the call was disconnected.static class
Must have the valuedice
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Getting builderThe unique application key.If the call was initiated by a Sinch SDK client, call headers are the headers specified by the caller client.A string that can be used to pass custom information related to the call.getDebit()
Get debitThe duration of the call in seconds.getFrom()
Information about the initiator of the call.The reason the call was disconnected.Get resultThe timestamp in UTC format.getTo()
Get toGet userRateMethods inherited from interface com.sinch.sdk.domains.voice.models.v1.webhooks.VoiceWebhookEvent
getCallid, getVersion
-
Method Details
-
getTimestamp
Instant getTimestamp()The timestamp in UTC format.- Specified by:
getTimestamp
in interfaceVoiceWebhookCallEvent
- Returns:
- timestamp
-
getCustom
String getCustom()A string that can be used to pass custom information related to the call.- Specified by:
getCustom
in interfaceVoiceWebhookCallEvent
- Returns:
- custom
-
getApplicationKey
String getApplicationKey()The unique application key. You can find it in the Sinch dashboard.- Specified by:
getApplicationKey
in interfaceVoiceWebhookCallEvent
- Returns:
- applicationKey
-
getReason
DisconnectedCallEvent.ReasonEnum getReason()The reason the call was disconnected.- Returns:
- reason
-
getResult
CallResult getResult()Get result- Returns:
- result
-
getDebit
Price getDebit()Get debit- Returns:
- debit
-
getUserRate
Price getUserRate()Get userRate- Returns:
- userRate
-
getTo
Destination getTo()Get to- Returns:
- to
-
getDuration
Integer getDuration()The duration of the call in seconds.- Returns:
- duration
-
getFrom
String getFrom()Information about the initiator of the call.- Returns:
- from
-
getCallHeaders
List<CallHeader> getCallHeaders()If the call was initiated by a Sinch SDK client, call headers are the headers specified by the caller client. Read more about call headers here.- Returns:
- callHeaders
-
builder
Getting builder- Returns:
- New Builder instance
-