-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathISpeedDialsAdapter.ts
More file actions
50 lines (34 loc) · 1.04 KB
/
ISpeedDialsAdapter.ts
File metadata and controls
50 lines (34 loc) · 1.04 KB
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
44
45
46
47
48
49
50
import { Observable } from 'rxjs';
export interface ISpeedDialRecord {
/** The id for reference */
id: string;
/** The display name */
displayName: string;
/** The status to display Online/Offline */
status?: string;
/** The number to display */
number?: string;
/** The call type (audio/video) */
callType?: string;
/** The phone number to display */
phone?: string;
/** The phone number type (work,mobile,mail) */
phoneType?: string;
/** Callback address to pass to call action */
currentCallAddress?: string;
mail?: string;
mobilePhone?: string;
businessPhones?: string[];
surname?: string;
givenName?: string;
photo?: string;
}
export interface ISpeedDialsAdapter {
refresh?(ID?: string): void;
getAll(ID?: string): Observable<ISpeedDialRecord[]>;
getOne(ID?: string): Observable<ISpeedDialRecord>;
getContacts?(query?: string): Observable<ISpeedDialRecord[]>;
add?(speedDial: ISpeedDialRecord): void;
update?(speedDial: ISpeedDialRecord): void;
remove?(speedDial: ISpeedDialRecord): void;
}