• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 */
15
16export enum AnswerState {
17  MISSED = 0,
18  RECEIVED = 1,
19  REJECT = 2
20}
21
22export enum Direction {
23  IN = 0,
24  OUT = 1
25}
26
27export default class Calls {
28  static readonly CONTENT_URI: string = 'datashare:///com.ohos.calllogability';
29  static readonly CALL_LOG_URI: string = Calls.CONTENT_URI + '/calls/calllog';
30  static readonly ID: string = 'id';
31  static readonly PHONE_NUMBER: string = 'phone_number';
32  static readonly DISPLAY_NAME: string = 'display_name';
33  static readonly CALL_DIRECTION: string = 'call_direction';
34  static readonly VOICEMAIL_URI: string = 'voicemail_uri';
35  static readonly SIM_ID: string = 'slot_id'
36  static readonly SIM_TYPE: string = 'sim_type';
37  static readonly IS_HD: string = 'is_hd';
38  static readonly IS_READ: string = 'is_read';
39  static readonly RING_DURATION: string = 'ring_duration';
40  static readonly TALK_DURATION: string = 'talk_duration';
41  static readonly FORMAT_NUMBER: string = 'format_number';
42  static readonly QUICK_SEARCH_KEY: string = 'quicksearch_key';
43  static readonly NUMBER_TYPE: string = 'number_type';
44  static readonly NUMBER_TYPE_NAME: string = 'number_type_name';
45  static readonly BEGIN_TIME: string = 'begin_time';
46  static readonly END_TIME: string = 'end_time';
47  static readonly ANSWER_STATE: string = 'answer_state';
48  static readonly CREATE_TIME: string = 'create_time';
49  static readonly NUMBER_LOCATION: string = 'number_location';
50  static readonly PHOTO_ID: string = 'photo_id';
51  static readonly PHOTO_URI: string = 'photo_uri';
52  static readonly COUNTRY_ISO_CODE: string = 'country_iso_code';
53  static readonly EXTRA1: string = 'extra1';
54  static readonly EXTRA2: string = 'extra2';
55  static readonly EXTRA3: string = 'extra3';
56  static readonly EXTRA4: string = 'extra4';
57  static readonly EXTRA5: string = 'extra5';
58  static readonly EXTRA6: string = 'extra6';
59  constructor() {
60  }
61}