Interface DisconnectedCallEvent

All Superinterfaces:
VoiceWebhookCallEvent, VoiceWebhookEvent

public interface DisconnectedCallEvent extends VoiceWebhookEvent, VoiceWebhookCallEvent
The request body of a Disconnected Call Event.
  • Method Details

    • getTimestamp

      Instant getTimestamp()
      The timestamp in UTC format.
      Specified by:
      getTimestamp in interface VoiceWebhookCallEvent
      Returns:
      timestamp
    • getCustom

      String getCustom()
      A string that can be used to pass custom information related to the call.
      Specified by:
      getCustom in interface VoiceWebhookCallEvent
      Returns:
      custom
    • getApplicationKey

      String getApplicationKey()
      The unique application key. You can find it in the Sinch dashboard.
      Specified by:
      getApplicationKey in interface VoiceWebhookCallEvent
      Returns:
      applicationKey
    • 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