Class CallInformation
- java.lang.Object
-
- com.sinch.sdk.domains.voice.models.response.CallInformation
-
public class CallInformation extends Object
Information related to a specific call
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCallInformation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CallInformation.Builderbuilder()Create a builder instanceStringgetCallId()The unique identifier of the callStringgetCustom()Custom data passed onto calloutPricegetDebit()The total amount charged for the callDomainTypegetDomain()The domain typeIntegergetDuration()The duration of the call in secondsDestinationgetFrom()The caller informationCallReasonTypegetReason()Contains the reason why a call endedCallResultTypegetResult()Contains the result of a call.CallStatusTypegetStatus()The status of the call.InstantgetTimeStamp()The date and time of the callDestinationgetTo()The callee informationPricegetUserRate()The rate per minute that was charged for the call.StringtoString()
-
-
-
Method Detail
-
getFrom
public Destination getFrom()
The caller information- Returns:
- Destination instance describing caller
-
getTo
public Destination getTo()
The callee information- Returns:
- Destination instance describing callee
-
getDomain
public DomainType getDomain()
The domain type- Returns:
- Domain type
-
getCallId
public String getCallId()
The unique identifier of the call- Returns:
- Call identifier
-
getDuration
public Integer getDuration()
The duration of the call in seconds- Returns:
- Call duration
-
getStatus
public CallStatusType getStatus()
The status of the call.- Returns:
- Call status
-
getResult
public CallResultType getResult()
Contains the result of a call.- Returns:
- Call result
-
getReason
public CallReasonType getReason()
Contains the reason why a call ended- Returns:
- Call ended reason
-
getTimeStamp
public Instant getTimeStamp()
The date and time of the call- Returns:
- Date time information related to call
-
getCustom
public String getCustom()
Custom data passed onto callout- Returns:
- The custom data value
-
getUserRate
public Price getUserRate()
The rate per minute that was charged for the call.- Returns:
- Price information
-
getDebit
public Price getDebit()
The total amount charged for the call- Returns:
- Price information
-
builder
public static CallInformation.Builder builder()
Create a builder instance- Returns:
- Dedicated builder
-
-