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 {EmailBean} from './EmailBean';
17import {RemDayBean} from './RemDayBean';
18import {AssociatedPersonBean} from './AssociatedPersonBean';
19import {AIMBean} from './AIMBean';
20import {HouseBean} from './HouseBean';
21import {GroupBean} from './GroupBean';
22import {PhoneNumBean} from './PhoneNumBean';
23
24export class ContactBean {
25  /**
26   * Contact ID primary key.
27   */
28  id: string;
29
30  /**
31   * Contact Name
32   */
33  name: string;
34
35  /**
36   * The Company
37   */
38  company: string;
39
40  /**
41   * Position
42   */
43  position: string;
44
45  /**
46   * Mobile Number List
47   */
48  phoneNumList: PhoneNumBean[];
49
50  /**
51   * Mailbox List
52   */
53  emailBeanList: EmailBean[];
54
55  /**
56   * Nickname
57   */
58  nickName: string
59
60  /**
61   * Website List
62   */
63  webSitList: string[]
64
65  /**
66   * Anniversaries List
67   */
68  remembranceDayList: RemDayBean[]
69
70  /**
71   * Ringtone
72   */
73  ringtone: string
74
75  /**
76   * Associated Person List
77   */
78  associatedPersonList: AssociatedPersonBean[]
79
80  /**
81   * Remarks
82   */
83  remarks: string
84
85  /**
86   * AIM List
87   */
88  aimList: AIMBean[]
89
90  /**
91   * Address List
92   */
93  houseList: HouseBean[]
94
95  /**
96   * Group List
97   */
98  groupList: GroupBean[]
99
100  constructor(
101    id: string,
102    name: string,
103    company: string,
104    position: string,
105    phoneNumList: PhoneNumBean[],
106    emailBeanList: EmailBean[],
107    nickName: string,
108    webSitList: string[],
109    remembranceDayList: RemDayBean[],
110    ringtone: string,
111    associatedPersonList: AssociatedPersonBean[],
112    remarks: string,
113    aimList: AIMBean[],
114    houseList: HouseBean[],
115    groupList: GroupBean[]) {
116    this.id = id;
117    this.name = name;
118    this.company = company;
119    this.position = position;
120    this.phoneNumList = phoneNumList;
121    this.emailBeanList = emailBeanList;
122    this.nickName = nickName;
123    this.webSitList = webSitList;
124    this.remembranceDayList = remembranceDayList;
125    this.ringtone = ringtone;
126    this.associatedPersonList = associatedPersonList;
127    this.remarks = remarks;
128    this.aimList = aimList;
129    this.houseList = houseList;
130    this.groupList = groupList;
131  }
132}
133