• 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
17import { ValuesBucket } from '@ohos.data.ValuesBucket';
18
19/**
20 * the Alerts Message, It is used to describe the scenario where the alerts table needs to be updated
21 *
22 * @since 2022-09-09
23 */
24export class AlertsMessage {
25  private mOperationName: string;
26  private mTableName: string;
27  private mValues: ValuesBucket;
28
29  constructor() {
30    this.mOperationName = undefined;
31    this.mTableName = undefined;
32    this.mValues = undefined;
33  }
34
35  setOperationName(mOperationName: string) {
36    this.mOperationName = mOperationName;
37  }
38
39  setTableName(mTableName: string) {
40    this.mTableName = mTableName;
41  }
42
43  setValues(mValues: ValuesBucket) {
44    this.mValues = mValues;
45  }
46
47  getOperationName(): string {
48    return this.mOperationName;
49  }
50
51  getTableName(): string {
52    return this.mTableName;
53  }
54
55  getValues(): ValuesBucket {
56    return this.mValues;
57  }
58}