Skip to content

qchat_def.system_notification_def.QChatSystemNotification

Zvicii edited this page Jul 7, 2023 · 6 revisions

Interface: QChatSystemNotification

qchat_def/system_notification_def.QChatSystemNotification

QChatSystemNotification

Table of contents

Properties

Properties

to_type

to_type: NIMQChatSystemNotificationToType

消息通知目标

Defined in

ts/qchat_def/system_notification_def.ts:7


server_id

Optional server_id: string

消息所属的server id

Defined in

ts/qchat_def/system_notification_def.ts:9


channel_id

Optional channel_id: string

消息所属的channel id

Defined in

ts/qchat_def/system_notification_def.ts:11


msg_id

Optional msg_id: string

消息id

Defined in

ts/qchat_def/system_notification_def.ts:13


msg_type

Optional msg_type: NIMQChatSystemNotificationType

系统消息类型

Defined in

ts/qchat_def/system_notification_def.ts:15


msg_body

Optional msg_body: string

消息内容

Defined in

ts/qchat_def/system_notification_def.ts:17


msg_attach

Optional msg_attach: string

消息附件

Defined in

ts/qchat_def/system_notification_def.ts:19


msg_ext

Optional msg_ext: string

消息扩展字段

Defined in

ts/qchat_def/system_notification_def.ts:21


resend_flag

Optional resend_flag: boolean

重发标记,false:不是重发,true:是重发

Defined in

ts/qchat_def/system_notification_def.ts:23


to_accids

Optional to_accids: string[]

通知接受者账号列表

Defined in

ts/qchat_def/system_notification_def.ts:25


history_enable

Optional history_enable: boolean

false 或者 true, 是否存离线,只有 to_accids 不为空,才能设置为存离线,默认 false

Defined in

ts/qchat_def/system_notification_def.ts:27


push_payload

Optional push_payload: string

自定义的推送属性,限制json

Defined in

ts/qchat_def/system_notification_def.ts:29


push_content

Optional push_content: string

自定义的推送内容

Defined in

ts/qchat_def/system_notification_def.ts:31


push_enable

Optional push_enable: boolean

是否需要推送, false: 不需要, true: 需要, 默认 false

Defined in

ts/qchat_def/system_notification_def.ts:33


need_badge

Optional need_badge: boolean

是否需要消息计数, false: 不需要, true: 需要, 默认 true

Defined in

ts/qchat_def/system_notification_def.ts:35


need_push_nick

Optional need_push_nick: boolean

是否需要推送昵称, false: 不需要, true: 需要, 默认 true

Defined in

ts/qchat_def/system_notification_def.ts:37


route_enable

Optional route_enable: boolean

是否需要抄送, false: 不需要, true: 需要, 默认 true

Defined in

ts/qchat_def/system_notification_def.ts:39


env

Optional env: string

环境变量,用于指向不同的抄送、第三方回调等配置

Defined in

ts/qchat_def/system_notification_def.ts:41


status

Optional status: NIMQChatSystemNotificationStatus

消息状态

Defined in

ts/qchat_def/system_notification_def.ts:44


msg_server_id

Optional msg_server_id: string

消息服务器端id

Defined in

ts/qchat_def/system_notification_def.ts:46


from_accid

Optional from_accid: string

消息发送者的accid

Defined in

ts/qchat_def/system_notification_def.ts:48


from_client_type

Optional from_client_type: number

消息发送者的客户端类型

Defined in

ts/qchat_def/system_notification_def.ts:50


from_device_id

Optional from_device_id: string

消息发送者的设备id

Defined in

ts/qchat_def/system_notification_def.ts:52


from_nick

Optional from_nick: string

消息发送者的昵称

Defined in

ts/qchat_def/system_notification_def.ts:54


timestamp

Optional timestamp: number

消息发送时间戳

Defined in

ts/qchat_def/system_notification_def.ts:56


update_timestamp

Optional update_timestamp: number

消息更新时间戳

Defined in

ts/qchat_def/system_notification_def.ts:58


callback_ext

Optional callback_ext: string

回调扩展字段

Defined in

ts/qchat_def/system_notification_def.ts:60

Clone this wiki locally