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 16import { CallLog } from '../entity/CallLog'; 17 18export default class MergedCallLog { 19 id: number; 20 createTime: string; 21 count: number; 22 ids: number[]; 23 isHD: boolean; 24 callType: number; 25 phoneNumber: string; 26 displayName: string; 27 quickSearchKey: string; 28 numberLocation: string; 29 formattedNumber: string; 30 simType: number; 31 simId: number; 32 constructor(callLog: CallLog) { 33 this.id = callLog.id; 34 this.callType = callLog.callType; 35 this.isHD = callLog.isHD; 36 this.phoneNumber = callLog.phoneNumber; 37 this.displayName = callLog.displayName; 38 this.quickSearchKey = callLog.quickSearchKey; 39 this.numberLocation = callLog.numberLocation; 40 this.formattedNumber = callLog.formattedNumber; 41 this.simType = callLog.simType; 42 this.simId = callLog.simId; 43 this.ids = []; 44 } 45}