1/*
2 * Copyright (c) 2021-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 default class Constants {
17  static readonly RADIO_TECHNOLOGY_UNKNOWN = 0;
18  static readonly RADIO_TECHNOLOGY_GSM = 1;
19  static readonly RADIO_TECHNOLOGY_1XRTT = 2;
20  static readonly RADIO_TECHNOLOGY_WCDMA = 3;
21  static readonly RADIO_TECHNOLOGY_HSPA = 4;
22  static readonly RADIO_TECHNOLOGY_HSPAP = 5;
23  static readonly RADIO_TECHNOLOGY_TD_SCDMA = 6;
24  static readonly RADIO_TECHNOLOGY_EVDO = 7;
25  static readonly RADIO_TECHNOLOGY_EHRPD = 8;
26  static readonly RADIO_TECHNOLOGY_LTE = 9;
27  static readonly RADIO_TECHNOLOGY_LTE_CA = 10;
28  static readonly RADIO_TECHNOLOGY_IWLAN = 11;
29  static readonly RADIO_TECHNOLOGY_NR = 12;
30
31  static readonly REG_STATE_NO_SERVICE = 0;
32  static readonly REG_STATE_IN_SERVICE = 1;
33  static readonly REG_STATE_EMERGENCY_CALL_ONLY = 2;
34  static readonly REG_STATE_POWER_OFF = 3;
35
36  static readonly CELLULAR_SIGNAL_NO = 0;
37  static readonly CELLULAR_SIGNAL_MIN = 1;
38  static readonly CELLULAR_SIGNAL_LOW = 2;
39  static readonly CELLULAR_SIGNAL_HALF = 3;
40  static readonly CELLULAR_SIGNAL_HIGH = 4;
41  static readonly CELLULAR_SIGNAL_FULL = 5;
42  static readonly CELLULAR_NO_SIM_CARD = -1;
43
44  static readonly NET_NULL = 'NULL';
45
46  // Events for Subscribing to Notifications
47  static readonly COMMON_EVENT_SPN_INFO_CHANGED = "usual.event.SPN_INFO_CHANGED";
48}
49