• 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 recurrence rule structure
19 *
20 * @since 2022-05-28
21 */
22export class RecurrenceSet {
23  public rRule: string = '';
24  public rDate: string = '';
25  public exRule: string = '';
26  public exDate: string = '';
27
28  constructor(rRule: string, rDate: string, exRule: string, exDate: string) {
29    this.rRule = rRule;
30    this.rDate = rDate;
31    this.exRule = exRule;
32    this.exDate = exDate;
33  }
34
35  /**
36   * 是否含重复规则
37   *
38   * @return true 含重复规则 false 不含重复规则
39   */
40  public hasRecurrence(): boolean {
41    return false;
42  }
43}