-
Notifications
You must be signed in to change notification settings - Fork 181
/
OutboundCallWithNCCO.ts
38 lines (35 loc) · 1.06 KB
/
OutboundCallWithNCCO.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { PhoneEndpointObject } from '../interfaces/Endpoint/PhoneEndpointObject';
import { CallEndpoint, NCCOAction } from '../types';
import { OutboundCall } from './OutboundCall';
import debug from 'debug';
debug('@vonage/voice')(
'This class is deprecated. Please update to use the CallWithNCCO type',
);
/**
* Represents an outbound call with NCCO (Nexmo Call Control Object).
*
* @deprecated This class is deprecated. Please update to use the CallWithNCCO type
*/
export class OutboundCallWithNCCO
extends OutboundCall
{
/**
* The list of NCCO actions.
*/
ncco: Array<NCCOAction>;
/**
* Creates a new outbound call with NCCO.
*
* @param {Array<NCCOAction>} ncco - The NCCO actions for the call.
* @param {CallEndpoint} to - The call endpoint to which the outbound call will be made.
* @param {PhoneEndpointObject} [from] - The phone endpoint object representing the caller's information.
*/
constructor(
ncco: Array<NCCOAction>,
to: CallEndpoint,
from?: PhoneEndpointObject,
) {
super(to, from);
this.ncco = ncco;
}
}