• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022 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 */
15import { paramMock } from "../../utils"
16import { SlotType } from "../ohos_notification"
17import { NotificationActionButton } from "./notificationActionButton"
18import { PixelMapMock } from "../ohos_multimedia_image"
19import { NotificationTemplate } from "./notificationTemplate"
20import { NotificationFlags } from "./notificationFlags"
21import { NotificationContent } from "./notificationContent"
22
23export const NotificationRequest = {
24    content: NotificationContent,
25    id: '[PC preview] unknow id',
26    slotType: SlotType,
27    isOngoing: '[PC preview] unknow isOngoing',
28    isUnremovable: '[PC preview] unknow isUnremovable',
29    deliveryTime: '[PC preview] unknow deliveryTime',
30    tapDismissed: '[PC preview] unknow tapDismissed',
31    autoDeletedTime: '[PC preview] unknow autoDeletedTime',
32    wantAgent: '[PC preview] unknow wantAgent',
33    extraInfo: {"key": "unknown any"},
34    color: '[PC preview] unknow color',
35    colorEnabled: '[PC preview] unknow colorEnabled',
36    isAlertOnce: '[PC preview] unknow isAlertOnce',
37    isStopwatch: '[PC preview] unknow isStopwatch',
38    isCountDown: '[PC preview] unknow isCountDown',
39    isFloatingIcon: '[PC preview] unknow isFloatingIcon',
40    label: '[PC preview] unknow label',
41    badgeIconStyle: '[PC preview] unknow badgeIconStyle',
42    showDeliveryTime: '[PC preview] unknow showDeliveryTime',
43    actionButtons: [NotificationActionButton],
44    smallIcon: PixelMapMock,
45    largeIcon: PixelMapMock,
46    groupName: '[PC preview] unknow groupName',
47    creatorBundleName: '[PC preview] unknow creatorBundleName',
48    creatorUid: '[PC preview] unknow creatorUid',
49    creatorPid: '[PC preview] unknow creatorPid',
50    creatorUserId: '[PC preview] unknow creatorUserId',
51    classification: '[PC preview] unknow classification',
52    hashCode: '[PC preview] unknow hashCode',
53    isRemoveAllowed: '[PC preview] unknow isRemveAllowd',
54    source: '[PC preview] unknow source',
55    template: NotificationTemplate,
56    distributedOption: DistributedOptions,
57    deviceId: '[PC preview] unknow deviceId',
58    notificationFlags: NotificationFlags,
59    removalWantAgent: '[PC preview] unknow removalWantAgent',
60    badgeNumber: '[PC preview] unknow badgeNumber',
61}
62export const DistributedOptions = {
63    isDistributed: '[PC preview] unknow isDistributed',
64    supportDisplayDevices: [paramMock.paramStringMock],
65    supportOperateDevices: [paramMock.paramStringMock],
66    remindType: '[PC preview] unknow remindType',
67}
68