NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_qchat_public_def.h
浏览该文件的文档.
1
11#ifndef __NIM_QCHAT_PUBLIC_DEF_H__
12#define __NIM_QCHAT_PUBLIC_DEF_H__
13
14#include <stddef.h>
15#include <cstdint>
16#include "public_defines.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
28
38
46
54
74
78
83
87
91
95
99
107
115
125
133
139
143 uint32_t res_code;
146};
147
155
159 uint64_t server_id;
161 uint64_t channel_id;
162};
163
175 char* env;
178 // 以下字段仅在收到消息时有效
183};
184
202
210 char* cursor;
211};
212
230
242
243#ifdef __cplusplus
244}
245#endif
246
247#endif // __NIM_QCHAT_PUBLIC_DEF_H__
static bool NIMQChatSubscribeTypeIsVisitor(NIMQChatSubscribeType type)
Definition nim_qchat_public_def.h:84
static bool NIMQChatSubscribeTypeIsMsg(NIMQChatSubscribeType type)
Definition nim_qchat_public_def.h:96
static bool NIMQChatSubscribeTypeIsServerVisitor(NIMQChatSubscribeType type)
Definition nim_qchat_public_def.h:88
NIMQChatChannelViewMode
Definition nim_qchat_public_def.h:22
@ kNIMQChatChannelViewModePublic
公开模式
Definition nim_qchat_public_def.h:24
@ kNIMQChatChannelViewModePrivate
私密模式
Definition nim_qchat_public_def.h:26
NIMQChatChannelSyncMode
Definition nim_qchat_public_def.h:40
@ kNIMQChatChannelSyncModeNoSync
不与频道分组同步
Definition nim_qchat_public_def.h:42
@ kNIMQChatChannelSyncModeSync
与频道分组同步
Definition nim_qchat_public_def.h:44
NIMQChatChannelVisitorMode
Definition nim_qchat_public_def.h:30
@ kNIMQChatChannelVisitorModeFollow
跟随模式, 频道公开游客可见, 频道私密游客不可见
Definition nim_qchat_public_def.h:36
@ kNIMQChatChannelVisitorModeInvisible
游客不可见
Definition nim_qchat_public_def.h:34
@ kNIMQChatChannelVisitorModeVisible
游客可见
Definition nim_qchat_public_def.h:32
NIMQChatMessageSearchSort
消息搜索排序规则
Definition nim_qchat_public_def.h:135
@ kNIMQChatMessageSearchSortCreateTime
创建时间排序
Definition nim_qchat_public_def.h:137
NIMQChatSubscribeType
Definition nim_qchat_public_def.h:56
@ kNIMQChatSubscribeTypeUnreadCount
订阅某个channel的【消息未读数】/【通知】
Definition nim_qchat_public_def.h:62
@ kNIMQChatSubscribeTypeTypingEvent
订阅某个channel的【正在输入事件】
Definition nim_qchat_public_def.h:68
@ kNIMQChatSubscribeTypeMsg
订阅某个channel的【消息】/【通知】
Definition nim_qchat_public_def.h:60
@ kNIMQChatSubscribeTypeVisitorMsg
以游客身份订阅某个channel的【消息】/【通知】
Definition nim_qchat_public_def.h:70
@ kNIMQChatSubscribeTypeUnknow
未知
Definition nim_qchat_public_def.h:58
@ kNIMQChatSubscribeTypeVisitorServerNotification
以游客身份订阅某个server的【消息】/【通知】
Definition nim_qchat_public_def.h:72
@ kNIMQChatSubscribeTypeUnreadStatus
订阅某个channel的【消息未读状态】/【通知】
Definition nim_qchat_public_def.h:64
@ kNIMQChatSubscribeTypeServerNotification
订阅某个server的【消息】/【通知】
Definition nim_qchat_public_def.h:66
static bool NIMQChatSubscribeTypeIsServer(NIMQChatSubscribeType type)
Definition nim_qchat_public_def.h:75
NIMQChatServerSearchSort
服务器搜索排序规则
Definition nim_qchat_public_def.h:117
@ kNIMQChatServerSearchSortMemberCOunt
服务器总人数排序
Definition nim_qchat_public_def.h:123
@ kNIMQChatServerSearchSortCreateTime
创建时间排序
Definition nim_qchat_public_def.h:121
@ kNIMQChatServerSearchSortCustom
自定义权重排序(详见服务器端文档)
Definition nim_qchat_public_def.h:119
NIMQChatSearchOrder
搜索排序顺序
Definition nim_qchat_public_def.h:109
@ kNIMQChatSearchOrderAsc
按时间正序
Definition nim_qchat_public_def.h:111
@ kNIMQChatSearchOrderDesc
按时间倒序
Definition nim_qchat_public_def.h:113
static bool NIMQChatSubscribeTypeIsChannel(NIMQChatSubscribeType type)
Definition nim_qchat_public_def.h:79
static bool NIMQChatSubscribeTypeIsChannelVisitor(NIMQChatSubscribeType type)
Definition nim_qchat_public_def.h:92
NIMQChatChannelSearchSort
频道搜索排序规则
Definition nim_qchat_public_def.h:127
@ kNIMQChatChannelSearchSortCreateTime
创建时间排序
Definition nim_qchat_public_def.h:131
@ kNIMQChatChannelSearchSortCustom
自定义权重排序(详见服务器端文档)
Definition nim_qchat_public_def.h:129
NIMQChatBanMemberOpeType
圈组封禁操作类型
Definition nim_qchat_public_def.h:101
@ kNIMQChatBanMemberOpeTypeBan
封禁
Definition nim_qchat_public_def.h:103
@ kNIMQChatBanMemberOpeTypeUnban
解除封禁
Definition nim_qchat_public_def.h:105
NIMQChatSubscribeOpeType
Definition nim_qchat_public_def.h:48
@ kNIMQChatSubscribeOpeTypeUnsubscribe
取消订阅
Definition nim_qchat_public_def.h:52
@ kNIMQChatSubscribeOpeTypeSubscribe
订阅
Definition nim_qchat_public_def.h:50
NIM SDK 及 NIM ChatRoom SDK 公用头文件
Definition nim_qchat_public_def.h:141
uint32_t res_code
操作结果, 参考NIMResCode
Definition nim_qchat_public_def.h:143
void * user_data
自定义用户数据
Definition nim_qchat_public_def.h:145
Definition nim_qchat_public_def.h:149
char * pic_bid
反垃圾图片业务id
Definition nim_qchat_public_def.h:153
char * text_bid
反垃圾文本业务id
Definition nim_qchat_public_def.h:151
Definition nim_qchat_public_def.h:157
uint64_t server_id
server id
Definition nim_qchat_public_def.h:159
uint64_t channel_id
channel id
Definition nim_qchat_public_def.h:161
Definition nim_qchat_public_def.h:186
bool use_custom_content
是否需要使用自定义反垃圾字段(即antiSpamContent), false:不需要, true:需要, 默认0
Definition nim_qchat_public_def.h:188
bool anti_spam_using_yidun
单条消息是否使用易盾反垃圾, false:(在开通易盾的情况下)不过易盾反垃圾, 其他都是按照原来的规则
Definition nim_qchat_public_def.h:190
char * yidun_anti_spam_ext
易盾反垃圾扩展字段, 限制json, 长度限制1024
Definition nim_qchat_public_def.h:200
char * anti_spam_content
反垃圾内容, 开发者自定义的反垃圾字段, 如果提供了这个字段, 在过反垃圾时不会再使用body或者attach
Definition nim_qchat_public_def.h:192
char * anti_spam_bussiness_id
反垃圾业务ID, 对某些单条消息另外的反垃圾的业务ID
Definition nim_qchat_public_def.h:194
char * yidun_callback_url
易盾check的回调URL
Definition nim_qchat_public_def.h:196
char * yidun_anti_cheating
易盾反垃圾增强反作弊专属字段, 限制json, 长度限制1024
Definition nim_qchat_public_def.h:198
Definition nim_qchat_public_def.h:165
char * push_content
推送文案
Definition nim_qchat_public_def.h:171
char * push_payload
推送payload
Definition nim_qchat_public_def.h:173
bool route_enable
是否需要抄送
Definition nim_qchat_public_def.h:177
char * extension
操作扩展字段
Definition nim_qchat_public_def.h:169
char * operator_id
操作者账号
Definition nim_qchat_public_def.h:180
char * env
环境变量,用于指向不同的抄送、第三方回调等配置
Definition nim_qchat_public_def.h:175
uint32_t operator_client_type
操作者客户端类型
Definition nim_qchat_public_def.h:182
char * postscript
操作附言
Definition nim_qchat_public_def.h:167
Definition nim_qchat_public_def.h:204
uint64_t next_timestamp
下一次分页起始时间
Definition nim_qchat_public_def.h:208
bool has_more
是否还有更多
Definition nim_qchat_public_def.h:206
char * cursor
下一次分页起始游标
Definition nim_qchat_public_def.h:210
Definition nim_qchat_public_def.h:232
uint64_t server_id
服务器ID
Definition nim_qchat_public_def.h:234
uint64_t max_unread_count
订阅未读数时的最大未读数
Definition nim_qchat_public_def.h:240
uint64_t unread_count
未读数
Definition nim_qchat_public_def.h:236
uint64_t mentioned_unread_count
被@未读数
Definition nim_qchat_public_def.h:238
Definition nim_qchat_public_def.h:214
uint64_t mentioned_unread_count
被@未读数
Definition nim_qchat_public_def.h:224
uint64_t unread_count
未读数
Definition nim_qchat_public_def.h:222
uint64_t max_unread_count
订阅未读数时的最大未读数
Definition nim_qchat_public_def.h:226
uint64_t channel_id
频道ID
Definition nim_qchat_public_def.h:218
uint64_t ack_timestamp
已读时间戳
Definition nim_qchat_public_def.h:220
uint64_t last_msg_timestamp
最后一条消息时间戳
Definition nim_qchat_public_def.h:228
uint64_t server_id
服务器ID
Definition nim_qchat_public_def.h:216