#include <nim_qchat_system_notification_cpp_def.h>
|
| uint64_t | server_id {0} |
| | 消息所属的server id
|
| |
| uint64_t | channel_id {0} |
| | 消息所属的channel id
|
| |
| std::string | msg_id {""} |
| | 消息id
|
| |
| NIMQChatSystemNotificationType | msg_type {kNIMQChatSystemNotificationTypeUnkonwn} |
| | 系统消息类型
|
| |
| std::string | msg_body {""} |
| | 消息内容
|
| |
| std::string | msg_attach {""} |
| | 消息附件
|
| |
| std::string | msg_ext {""} |
| | 消息扩展字段
|
| |
| bool | resend_flag {false} |
| | 重发标记,false:不是重发,true:是重发
|
| |
| std::vector< std::string > | to_accids {} |
| | 通知接受者账号列表
|
| |
| bool | history_enable {false} |
| | false 或者 true, 是否存离线,只有 to_accids 不为空,才能设置为存离线,默认 false
|
| |
| std::string | push_payload {""} |
| | 自定义的推送属性,限制json
|
| |
| std::string | push_content {""} |
| | 自定义的推送内容
|
| |
| bool | push_enable {false} |
| | 是否需要推送, false: 不需要, true: 需要, 默认 false
|
| |
| bool | need_badge {true} |
| | 是否需要消息计数, false: 不需要, true: 需要, 默认 true
|
| |
| bool | need_push_nick {true} |
| | 是否需要推送昵称, false: 不需要, true: 需要, 默认 true
|
| |
| bool | route_enable {true} |
| | 是否需要抄送, false: 不需要, true: 需要, 默认 true
|
| |
| std::string | env {""} |
| | 环境变量,用于指向不同的抄送、第三方回调等配置
|
| |
| NIMQChatSystemNotificationToType | to_type {kNIMQChatSystemNotificationToTypeUnknown} |
| | 消息通知目标
|
| |
| NIMQChatSystemNotificationStatus | status {kNIMQChatSystemNotificationNormal} |
| | 消息状态
|
| |
| uint64_t | msg_server_id {0} |
| | 消息服务器端id
|
| |
| std::string | from_accid {""} |
| | 消息发送者的accid
|
| |
| uint32_t | from_client_type {0} |
| | 消息发送者的客户端类型
|
| |
| std::string | from_device_id {""} |
| | 消息发送者的设备id
|
| |
| std::string | from_nick {""} |
| | 消息发送者的昵称
|
| |
| uint64_t | timestamp {0} |
| | 消息发送时间戳
|
| |
| uint64_t | update_timestamp {0} |
| | 消息更新时间戳
|
| |
| std::shared_ptr< QChatSystemNotificationDataBase > | msg_data {nullptr} |
| | 消息数据
|
| |
| std::string | callback_ext {""} |
| | 回调扩展字段
|
| |
◆ QChatSystemNotification() [1/2]
| nim::QChatSystemNotification::QChatSystemNotification |
( |
| ) |
|
|
default |
◆ QChatSystemNotification() [2/2]
◆ AdaptToType()
| void nim::QChatSystemNotification::AdaptToType |
( |
| ) |
|
|
inline |
◆ ToCParam()
◆ callback_ext
| std::string nim::QChatSystemNotification::callback_ext {""} |
◆ channel_id
| uint64_t nim::QChatSystemNotification::channel_id {0} |
◆ env
| std::string nim::QChatSystemNotification::env {""} |
◆ from_accid
| std::string nim::QChatSystemNotification::from_accid {""} |
◆ from_client_type
| uint32_t nim::QChatSystemNotification::from_client_type {0} |
◆ from_device_id
| std::string nim::QChatSystemNotification::from_device_id {""} |
◆ from_nick
| std::string nim::QChatSystemNotification::from_nick {""} |
◆ history_enable
| bool nim::QChatSystemNotification::history_enable {false} |
false 或者 true, 是否存离线,只有 to_accids 不为空,才能设置为存离线,默认 false
◆ msg_attach
| std::string nim::QChatSystemNotification::msg_attach {""} |
◆ msg_body
| std::string nim::QChatSystemNotification::msg_body {""} |
◆ msg_data
◆ msg_ext
| std::string nim::QChatSystemNotification::msg_ext {""} |
◆ msg_id
| std::string nim::QChatSystemNotification::msg_id {""} |
◆ msg_server_id
| uint64_t nim::QChatSystemNotification::msg_server_id {0} |
◆ msg_type
◆ need_badge
| bool nim::QChatSystemNotification::need_badge {true} |
是否需要消息计数, false: 不需要, true: 需要, 默认 true
◆ need_push_nick
| bool nim::QChatSystemNotification::need_push_nick {true} |
是否需要推送昵称, false: 不需要, true: 需要, 默认 true
◆ push_content
| std::string nim::QChatSystemNotification::push_content {""} |
◆ push_enable
| bool nim::QChatSystemNotification::push_enable {false} |
是否需要推送, false: 不需要, true: 需要, 默认 false
◆ push_payload
| std::string nim::QChatSystemNotification::push_payload {""} |
◆ resend_flag
| bool nim::QChatSystemNotification::resend_flag {false} |
◆ route_enable
| bool nim::QChatSystemNotification::route_enable {true} |
是否需要抄送, false: 不需要, true: 需要, 默认 true
◆ server_id
| uint64_t nim::QChatSystemNotification::server_id {0} |
◆ status
◆ timestamp
| uint64_t nim::QChatSystemNotification::timestamp {0} |
◆ to_accids
| std::vector<std::string> nim::QChatSystemNotification::to_accids {} |
◆ to_accids_json_array
| std::string nim::QChatSystemNotification::to_accids_json_array |
|
mutableprotected |
◆ to_type
◆ update_timestamp
| uint64_t nim::QChatSystemNotification::update_timestamp {0} |
该结构体的文档由以下文件生成: