• 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
16import DataColumns from './DataColumns';
17
18export enum DataItemType {
19  EMAIL = 1,
20  IM = 2,
21  NICKNAME = 3,
22  ORGANIZATION = 4,
23  PHONE = 5,
24  NAME = 6,
25  STRUCTURED_POSTAL = 7,
26  PHOTO = 8,
27  GROUP_MEMBERSHIP = 9,
28  NOTE = 10,
29  EVENT = 11,
30  WEBSITE = 12,
31  RELATION = 13,
32  CONTACT_MISC = 14,
33  HI_CALL_DEVICE = 15,
34  CAM_CARD = 16,
35  SIP_ADDRESS = 17
36}
37
38/**
39 * Basic Data Type
40 */
41export default class DataType {
42  static readonly TYPE_CUSTOM: number = 0;
43  static readonly TYPE_INVALID: number = -1;
44  static readonly DATA: string = DataColumns.DETAIL_INFO;
45  static readonly LABEL_ID: string = DataColumns.EXTEND7;
46  static readonly LABEL_NAME: string = DataColumns.CUSTOM_DATA;
47}