Class: PhoneCall

domain/PhoneCall.PhoneCall

Constructors

constructor

new PhoneCall(callId, callNumber, callState, disconnectCause)

Model class for the phone call.

Parameters

Name

Type

Description

callId

string

the unique id of the call

callNumber

string

the phone number that the call is connecting to

callState

PhoneCallState

the state of the call. See PhoneCallState

disconnectCause

CallDisconnectCause

The cause of the termination of a call. See CallDisconnectCause.

Properties

callId

callId: string

the unique id of the call


callNumber

callNumber: string

the phone number that the call is connecting to


callState

callState: PhoneCallState

the state of the call. See PhoneCallState


disconnectCause

disconnectCause: CallDisconnectCause

The cause of the termination of a call. See CallDisconnectCause.

Methods

fromJSON

Static fromJSON(data): PhoneCall

Parameters

Name

Type

data

any

Returns

PhoneCall