-
Notifications
You must be signed in to change notification settings - Fork 181
/
OutboundCallWithAnswerURL.ts
43 lines (39 loc) · 1.21 KB
/
OutboundCallWithAnswerURL.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
39
40
41
42
43
import { PhoneEndpointObject } from '../interfaces/Endpoint/PhoneEndpointObject';
import { CallEndpoint } from '../types';
import { OutboundCall } from './OutboundCall';
import debug from 'debug';
debug('@vonage/voice')(
'This class is deprecated. Please update to use the CallWithAnswerURL type',
);
/**
* Represents an outbound call with an answer URL.
*
* @deprecated This class is deprecated. Please update to use the CallWithAnswerURL type
*/
export class OutboundCallWithAnswerURL
extends OutboundCall
{
/**
* The list of answer URLs.
*/
/* tslint:disable-next-line */
answer_url: string[];
/**
* The list of answer URLs.
*
* @deprecated Use `answer_url` instead.
*/
answerUrl: string[];
/**
* Creates a new outbound call with an answer URL.
*
* @param {string} answerUrl - The answer URL 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(answerUrl: string, to: CallEndpoint, from?: PhoneEndpointObject) {
super(to, from);
this.answer_url = [answerUrl];
this.answerUrl = [answerUrl];
}
}