1/*
2 * Copyright (c) 2021-2023 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
16/**
17 * @file Provides sorting information about an active notification
18 * @kit NotificationKit
19 */
20
21import { NotificationSlot } from './notificationSlot';
22
23/**
24 * Provides sorting information about an active notification.
25 *
26 * @typedef NotificationSorting
27 * @syscap SystemCapability.Notification.Notification
28 * @systemapi
29 * @since 7
30 */
31export interface NotificationSorting {
32  /**
33   * Notify the channel content.
34   *
35   * @type { NotificationSlot }
36   * @readonly
37   * @syscap SystemCapability.Notification.Notification
38   * @systemapi
39   * @since 7
40   */
41  readonly slot: NotificationSlot;
42
43  /**
44   * Notify the unique ID.
45   *
46   * @type { string }
47   * @readonly
48   * @syscap SystemCapability.Notification.Notification
49   * @systemapi
50   * @since 7
51   */
52  readonly hashCode: string;
53
54  /**
55   * Notify the sort number.
56   *
57   * @type { number }
58   * @readonly
59   * @syscap SystemCapability.Notification.Notification
60   * @systemapi
61   * @since 7
62   */
63  readonly ranking: number;
64}
65