From de02efaa3161c58ad82b0f12475142e369962d02 Mon Sep 17 00:00:00 2001 From: liuyanzhi Date: Mon, 17 Jan 2022 16:59:09 +0800 Subject: [PATCH] add soltType Signed-off-by: liuyanzhi Change-Id: I324d5192773352460f7742796351ef321038c099 --- .../main/extend/systemplugin/napi/notification.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/runtime/main/extend/systemplugin/napi/notification.js b/runtime/main/extend/systemplugin/napi/notification.js index a8200324..819af57b 100644 --- a/runtime/main/extend/systemplugin/napi/notification.js +++ b/runtime/main/extend/systemplugin/napi/notification.js @@ -276,6 +276,20 @@ export function mockNotification() { template: '[PC preview] unknow template' }; const notification = { + SlotType: { + UNKNOWN_TYPE : 0, + SOCIAL_COMMUNICATION: 1, + SERVICE_INFORMATION: 2, + CONTENT_INFORMATION: 3, + OTHER_TYPES: 0xFFFF, + }, + ContentType: { + NOTIFICATION_CONTENT_BASIC_TEXT: 0, + NOTIFICATION_CONTENT_LONG_TEXT: 1, + NOTIFICATION_CONTENT_PICTURE: 2, + NOTIFICATION_CONTENT_CONVERSATION: 3, + NOTIFICATION_CONTENT_MULTILINE: 4, + }, publish: function(...args) { console.warn('notification.publish interface mocked in the Previewer. How this interface works on the' + ' Previewer may be different from that on a real device.');