• 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 */
15import radio from '@ohos.telephony.radio'
16import call from '@ohos.telephony.call'
17import data from '@ohos.telephony.data'
18import observer from '@ohos.telephony.observer'
19
20export default class DetailData {
21  //网络注册状态
22  public networkState: radio.NetworkState
23  //网络信号强度信息
24  public signalInformation: Array<radio.SignalInformation>
25  //通话状态
26  public callState: call.CallState
27  //电话号码
28  public callNumber: string
29  //蜂窝数据链路连接状态
30  public dataConnectState: data.DataConnectState
31  //无线接入技术
32  public ratType: radio.RadioTechnology
33  //蜂窝数据流类型
34  public dataFlowType: data.DataFlowType
35  //SIM卡类型和状态
36  public simStateData: observer.SimStateData
37
38  constructor() {
39    this.networkState = undefined
40    this.signalInformation = undefined
41    this.callState = undefined
42    this.callNumber = undefined
43    this.dataConnectState = undefined
44    this.ratType = undefined
45    this.dataFlowType = undefined
46    this.simStateData = undefined
47  }
48}
49