![]() |
NIM 跨平台 C++ SDK
|
#include <nim_qchat_system_notification_def.h>
Public 属性 | |
| NIMQChatSystemNotificationToType | to_type |
| 消息通知目标 | |
| uint64_t | server_id |
| 消息所属的server id | |
| uint64_t | channel_id |
| 消息所属的channel id | |
| NIMQChatSystemNotificationType | msg_type |
| 系统通知类型 | |
| char * | msg_body |
| 消息内容 | |
| char * | msg_attach |
| 消息附件 | |
| char * | msg_ext |
| 消息扩展字段 | |
| bool | resend_flag |
| 重发标记,false:不是重发,true:是重发 | |
| char * | to_accids |
| 通知接受者账号列表, json array | |
| bool | history_enable |
| false 或者 true, 是否存离线,只有 to_accids 不为空,才能设置为存离线,默认 false | |
| char * | push_payload |
| 自定义的推送属性,限制json | |
| char * | push_content |
| 自定义的推送内容 | |
| bool | push_enable |
| 是否需要推送, false: 不需要, true: 需要, 默认 false | |
| bool | need_badge |
| 是否需要消息计数, false: 不需要, true: 需要, 默认 true | |
| bool | need_push_nick |
| 是否需要推送昵称, false: 不需要, true: 需要, 默认 true | |
| bool | route_enable |
| 是否需要抄送, false: 不需要, true: 需要, 默认 true | |
| char * | env |
| 环境变量,用户可以根据不同的env配置不同的抄送和回调地址 | |
| NIMQChatSystemNotificationStatus | status |
| 消息状态 | |
| char * | msg_id |
| 消息id | |
| uint64_t | msg_server_id |
| 消息服务器 id | |
| char * | from_accid |
| 消息发送者的accid | |
| uint32_t | from_client_type |
| 消息发送者的客户端类型 | |
| char * | from_device_id |
| 消息发送者的设备id | |
| char * | from_nick |
| 消息发送者的昵称 | |
| uint64_t | timestamp |
| 消息发送时间戳 | |
| uint64_t | update_timestamp |
| 消息更新时间戳 | |
| void * | msg_data |
| 系统通知数据, 根据不同的系统通知类型,数据结构不同 | |
| char * | callback_ext |
| 回调扩展字段 | |
| char* NIMQChatSystemNotification::callback_ext |
回调扩展字段
| uint64_t NIMQChatSystemNotification::channel_id |
消息所属的channel id
| char* NIMQChatSystemNotification::env |
环境变量,用户可以根据不同的env配置不同的抄送和回调地址
| char* NIMQChatSystemNotification::from_accid |
消息发送者的accid
| uint32_t NIMQChatSystemNotification::from_client_type |
消息发送者的客户端类型
| char* NIMQChatSystemNotification::from_device_id |
消息发送者的设备id
| char* NIMQChatSystemNotification::from_nick |
消息发送者的昵称
| bool NIMQChatSystemNotification::history_enable |
false 或者 true, 是否存离线,只有 to_accids 不为空,才能设置为存离线,默认 false
| char* NIMQChatSystemNotification::msg_attach |
消息附件
| char* NIMQChatSystemNotification::msg_body |
消息内容
| void* NIMQChatSystemNotification::msg_data |
系统通知数据, 根据不同的系统通知类型,数据结构不同
| char* NIMQChatSystemNotification::msg_ext |
消息扩展字段
| char* NIMQChatSystemNotification::msg_id |
消息id
| uint64_t NIMQChatSystemNotification::msg_server_id |
消息服务器 id
| NIMQChatSystemNotificationType NIMQChatSystemNotification::msg_type |
系统通知类型
| bool NIMQChatSystemNotification::need_badge |
是否需要消息计数, false: 不需要, true: 需要, 默认 true
| bool NIMQChatSystemNotification::need_push_nick |
是否需要推送昵称, false: 不需要, true: 需要, 默认 true
| char* NIMQChatSystemNotification::push_content |
自定义的推送内容
| bool NIMQChatSystemNotification::push_enable |
是否需要推送, false: 不需要, true: 需要, 默认 false
| char* NIMQChatSystemNotification::push_payload |
自定义的推送属性,限制json
| bool NIMQChatSystemNotification::resend_flag |
重发标记,false:不是重发,true:是重发
| bool NIMQChatSystemNotification::route_enable |
是否需要抄送, false: 不需要, true: 需要, 默认 true
| uint64_t NIMQChatSystemNotification::server_id |
消息所属的server id
| NIMQChatSystemNotificationStatus NIMQChatSystemNotification::status |
消息状态
| uint64_t NIMQChatSystemNotification::timestamp |
消息发送时间戳
| char* NIMQChatSystemNotification::to_accids |
通知接受者账号列表, json array
| NIMQChatSystemNotificationToType NIMQChatSystemNotification::to_type |
消息通知目标
| uint64_t NIMQChatSystemNotification::update_timestamp |
消息更新时间戳