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