1/**
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15import { PhoneNumber } from '../../../../../feature/phonenumber/src/main/ets/PhoneNumber';
16import SmartSearchList from './entity/SmartSearchList';
17
18/**
19 * Dialpad object, which provides dialpad-related services.
20 */
21export default class DialPad {
22  private input: string;
23  private dialKey: [];
24  constructor() {
25  }
26
27  inputKey(key: string) {
28    this.playTone(key);
29    this.input = this.input + key;
30    return this.input;
31  }
32
33  private playTone(tone: string) {
34  }
35
36  call() {
37    PhoneNumber.fromString(this.input).dial();
38    this.clearInput();
39  }
40
41  clearInput() {
42    this.input = '';
43  }
44
45  getDialKey() {
46
47  }
48
49  getSmartSearchResult() {
50    return new SmartSearchList();
51  }
52}