18779efd5Sopenharmony_ci/**
28779efd5Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd.
38779efd5Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
48779efd5Sopenharmony_ci * you may not use this file except in compliance with the License.
58779efd5Sopenharmony_ci * You may obtain a copy of the License at
68779efd5Sopenharmony_ci *
78779efd5Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
88779efd5Sopenharmony_ci *
98779efd5Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
108779efd5Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
118779efd5Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
128779efd5Sopenharmony_ci * See the License for the specific language governing permissions and
138779efd5Sopenharmony_ci * limitations under the License.
148779efd5Sopenharmony_ci */
158779efd5Sopenharmony_ci
168779efd5Sopenharmony_ciexport enum AnswerState {
178779efd5Sopenharmony_ci  MISSED = 0,
188779efd5Sopenharmony_ci  RECEIVED = 1,
198779efd5Sopenharmony_ci  REJECT = 2
208779efd5Sopenharmony_ci}
218779efd5Sopenharmony_ci
228779efd5Sopenharmony_ciexport enum Direction {
238779efd5Sopenharmony_ci  IN = 0,
248779efd5Sopenharmony_ci  OUT = 1
258779efd5Sopenharmony_ci}
268779efd5Sopenharmony_ci
278779efd5Sopenharmony_ciexport default class Calls {
288779efd5Sopenharmony_ci  static readonly CONTENT_URI: string = 'datashare:///com.ohos.calllogability';
298779efd5Sopenharmony_ci  static readonly CALL_LOG_URI: string = Calls.CONTENT_URI + '/calls/calllog';
308779efd5Sopenharmony_ci  static readonly ID: string = 'id';
318779efd5Sopenharmony_ci  static readonly PHONE_NUMBER: string = 'phone_number';
328779efd5Sopenharmony_ci  static readonly DISPLAY_NAME: string = 'display_name';
338779efd5Sopenharmony_ci  static readonly CALL_DIRECTION: string = 'call_direction';
348779efd5Sopenharmony_ci  static readonly VOICEMAIL_URI: string = 'voicemail_uri';
358779efd5Sopenharmony_ci  static readonly SIM_ID: string = 'slot_id'
368779efd5Sopenharmony_ci  static readonly SIM_TYPE: string = 'sim_type';
378779efd5Sopenharmony_ci  static readonly IS_HD: string = 'is_hd';
388779efd5Sopenharmony_ci  static readonly IS_READ: string = 'is_read';
398779efd5Sopenharmony_ci  static readonly RING_DURATION: string = 'ring_duration';
408779efd5Sopenharmony_ci  static readonly TALK_DURATION: string = 'talk_duration';
418779efd5Sopenharmony_ci  static readonly FORMAT_NUMBER: string = 'format_number';
428779efd5Sopenharmony_ci  static readonly QUICK_SEARCH_KEY: string = 'quicksearch_key';
438779efd5Sopenharmony_ci  static readonly NUMBER_TYPE: string = 'number_type';
448779efd5Sopenharmony_ci  static readonly NUMBER_TYPE_NAME: string = 'number_type_name';
458779efd5Sopenharmony_ci  static readonly BEGIN_TIME: string = 'begin_time';
468779efd5Sopenharmony_ci  static readonly END_TIME: string = 'end_time';
478779efd5Sopenharmony_ci  static readonly ANSWER_STATE: string = 'answer_state';
488779efd5Sopenharmony_ci  static readonly CREATE_TIME: string = 'create_time';
498779efd5Sopenharmony_ci  static readonly NUMBER_LOCATION: string = 'number_location';
508779efd5Sopenharmony_ci  static readonly PHOTO_ID: string = 'photo_id';
518779efd5Sopenharmony_ci  static readonly PHOTO_URI: string = 'photo_uri';
528779efd5Sopenharmony_ci  static readonly COUNTRY_ISO_CODE: string = 'country_iso_code';
538779efd5Sopenharmony_ci  static readonly EXTRA1: string = 'extra1';
548779efd5Sopenharmony_ci  static readonly EXTRA2: string = 'extra2';
558779efd5Sopenharmony_ci  static readonly EXTRA3: string = 'extra3';
568779efd5Sopenharmony_ci  static readonly EXTRA4: string = 'extra4';
578779efd5Sopenharmony_ci  static readonly EXTRA5: string = 'extra5';
588779efd5Sopenharmony_ci  static readonly EXTRA6: string = 'extra6';
598779efd5Sopenharmony_ci  constructor() {
608779efd5Sopenharmony_ci  }
618779efd5Sopenharmony_ci}