• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * @file Describe the file
3 * Copyright (c) 2023 Huawei Device Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/**
18 * the structure of table Events
19 *
20 * @since 2022-05-28
21 */
22export class Events {
23  id: number;
24  syncId: string;
25  dirty: number;
26  mutators: string;
27  calendarType: number;
28  imageType: string;
29  lastSynced: number;
30  calendarId: number;
31  title: string;
32  eventLocation: string;
33  longitude: string;
34  latitude: string;
35  description: string;
36  eventColor: number;
37  eventColorIndex: string;
38  eventStatus: number;
39  selfAttendeeStatus: number;
40  dtStart: number;
41  dtEnd: number;
42  eventTimeZone: string;
43  duration: string;
44  allDay: number;
45  accessLevel: number;
46  availability: number;
47  hasAlarm: number;
48  hasExtendedProperties: number;
49  rRule: string;
50  rDate: string;
51  exRule: string;
52  exDate: string;
53  originalId: number;
54  originalSyncId: string;
55  originalInstanceTime: number;
56  originalAllDay: number;
57  lastDate: number;
58  eventTimeStamp: number;
59  hasAttendeeData: number;
60  guestsCanModify: number;
61  guestsCanInviteOthers: number;
62  guestsCanSeeGuests: number;
63  organizer: string;
64  isOrganizer: number;
65  deleted: number;
66  eventEndTimezone: string;
67  customAppPackage: string;
68  customAppUri: string;
69  uid2445: string;
70  version: number;
71  eventUuid: string;
72  hwExtAlertType: number;
73  importantEventType: number;
74  // birthdayKind
75  syncData1: string;
76  syncData2: string;
77  syncData3: string;
78  syncData4: string;
79  syncData5: string;
80  syncData6: string;
81  syncData7: string;
82  syncData8: string;
83  syncData9: string;
84  syncData10: string;
85  kvSynced: number;
86  kvSyncTime: number;
87  creator: string;
88
89  constructor() {
90  }
91
92  /**
93   * 判断是否全天日程
94   *
95   * @return true 全天日程 false 非全天日程
96   */
97  public isAllDay(): boolean {
98    return this.allDay != 0;
99  }
100}