NIM SDK API  8.5.0
nim_chatroom_def.h
Go to the documentation of this file.
1 
7 #ifndef NIM_CHATROOM_SDK_EXPORT_HEADERS_NIM_CHATROOM_DEF_H_
8 #define NIM_CHATROOM_SDK_EXPORT_HEADERS_NIM_CHATROOM_DEF_H_
9 
10 #include "public_defines.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
27 typedef void (*nim_chatroom_enter_cb_func)(int64_t room_id,
28  int enter_step,
29  int error_code,
30  const char* result,
31  const char* json_extension,
32  const void* user_data);
33 
43 typedef void (*nim_chatroom_exit_cb_func)(int64_t room_id, int error_code, int exit_type, const char* json_extension, const void* user_data);
44 
53 typedef void (*nim_chatroom_link_condition_cb_func)(int64_t room_id, int condition, const char* json_extension, const void* user_data);
54 
64 typedef void (
65  *nim_chatroom_sendmsg_arc_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
66 
75 typedef void (*nim_chatroom_receive_msg_cb_func)(int64_t room_id, const char* result, const char* json_extension, const void* user_data);
76 
85 typedef void (*nim_chatroom_receive_notification_cb_func)(int64_t room_id, const char* result, const char* json_extension, const void* user_data);
86 
97 typedef void (
98  *nim_chatroom_get_members_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
99 
110 typedef void (*nim_chatroom_get_msg_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
111 
122 typedef void (*nim_chatroom_set_member_attribute_cb_func)(int64_t room_id,
123  int error_code,
124  const char* result,
125  const char* json_extension,
126  const void* user_data);
127 
138 typedef void (*nim_chatroom_get_info_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
139 
148 typedef void (*nim_chatroom_kick_member_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
149 
160 typedef void (
161  *nim_chatroom_temp_mute_member_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
162 
176 typedef void (*nim_chatroom_query_members_count_by_tag_cb_func)(int64_t room_id,
177  int error_code,
178  uint64_t count,
179  const char* json_extension,
180  const void* user_data);
181 
192 typedef void (*nim_chatroom_temp_mute_member_by_tag_cb_func)(int64_t room_id,
193  int error_code,
194  const char* result,
195  const char* json_extension,
196  const void* user_data);
197 
206 typedef void (*nim_chatroom_update_room_info_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
207 
216 typedef void (*nim_chatroom_update_my_role_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
217 
226 typedef void (*nim_chatroom_queue_offer_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
227 
238 typedef void (
239  *nim_chatroom_queue_poll_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
240 
251 typedef void (
252  *nim_chatroom_queue_list_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
253 
264 typedef void (
265  *nim_chatroom_queue_header_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
266 
275 typedef void (*nim_chatroom_queue_drop_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
276 
285 typedef void (*nim_chatroom_queue_init_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
286 
295 typedef void (*nim_chatroom_query_robots_cb_func)(int rescode, const char* result, const char* json_extension, const void* user_data);
296 
306 typedef void (*nim_chatroom_batch_update_cb)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
307 
311 static const char* kNIMChatRoomEnterKeyNick = "nick";
314 static const char* kNIMChatRoomEnterKeyAvatar = "avatar";
316 static const char* kNIMChatRoomEnterKeyExt = "ext";
318 static const char* kNIMChatRoomEnterKeyNotifyExt = "notify_ext";
320 static const char* kNIMChatRoomEnterLoginTags = "login_tags";
322 static const char* kNIMChatRoomEnterNotifyTags = "notify_tags"; // 进入聊天室的可选填信息Json Keys
324 
328 static const char* kNIMChatRoomEnterKeyAppKey = "app_key";
333 static const char* kNIMChatRoomEnterKeyAppDataPath = "app_data_path";
335 static const char* kNIMChatRoomEnterKeyLogLevel = "log_level";
337 static const char* kNIMChatRoomEnterKeyAddress = "address";
339 static const char* kNIMChatRoomEnterKeyRandomID = "random_id";
341 static const char* kNIMChatRoomEnterKeyAccID = "accid";
343 static const char* kNIMChatRoomEnterKeyToken = "token"; // 独立聊天室进入的信息Json Keys
345 
349 // 协议定义
351 static const char* kNIMChatRoomMsgKeyType = "msg_type";
353 static const char* kNIMChatRoomMsgKeyAttach = "msg_attach";
355 static const char* kNIMChatRoomMsgKeyClientMsgid = "client_msg_id";
357 static const char* kNIMChatRoomMsgKeyResendFlag = "resend_flag";
359 static const char* kNIMChatRoomMsgKeyExt = "ext";
361 static const char* kNIMChatRoomMsgKeyAntiSpamEnable = "anti_spam_enable";
363 static const char* kNIMChatRoomMsgKeyAntiSpamContent = "anti_spam_content";
365 static const char* kNIMChatRoomMsgKeyAntiSpamBizId = "anti_spam_business_id";
367 static const char* kNIMChatRoomMsgKeyHistorySave = "history_save";
369 static const char* kNIMChatRoomMsgKeyAntiSpamUsingYiDun = "anti_spam_using_yidun";
371 static const char* kNIMChatRoomMsgKeyBody = "body";
373 static const char* kNIMChatRoomMsgKeyThirdPartyCBEXT = "third_party_callback_ext";
375 static const char* kNIMChatRoomMsgKeySubType = "msg_sub_type";
377 static const char* kNIMChatRoomMsgKeyYiDunAntiCheating = "yidun_anti_cheating";
379 static const char* kNIMChatRoomMsgKeyEnvConfig = "env_config";
381 static const char* kNIMChatRoomMsgKeyNotifyTags = "notify_tags";
382 
383 // 以下定义对于客户端只读
385 static const char* kNIMChatRoomMsgKeyRoomID = "room_id";
387 static const char* kNIMChatRoomMsgKeyFromAccount = "from_id";
389 static const char* kNIMChatRoomMsgKeyTime = "time";
391 static const char* kNIMChatRoomMsgKeyFromClientType = "from_client_type";
393 static const char* kNIMChatRoomMsgKeyFromNick = "from_nick";
395 static const char* kNIMChatRoomMsgKeyFromAvatar = "from_avator";
397 static const char* kNIMChatRoomMsgKeyFromExt = "from_ext";
399 static const char* kNIMChatRoomMsgKeyHighPriorityFlag = "high_priority_flag";
400 
401 // 本地定义
403 static const char* kNIMChatRoomMsgKeyLocalFilePath = "local_res_path";
405 static const char* kNIMChatRoomMsgKeyLocalResId = "res_id";
407 static const int iNIMMaxBatchQueue = 100; // 消息结构 Json Keys
409 
417 };
418 
432 };
433 
444 };
445 
449 static const char* kNIMChatRoomEnterCallbackKeyRoomInfo = "room_info";
452 static const char* kNIMChatRoomEnterCallbackKeyMyInfo = "my_info";
453  // 进入回调结果Json Keys
455 
459 static const char* kNIMChatRoomInfoKeyID = "id";
462 static const char* kNIMChatRoomInfoKeyName = "name";
464 static const char* kNIMChatRoomInfoKeyAnnouncement = "announcement";
466 static const char* kNIMChatRoomInfoKeyBroadcastUrl = "broadcast_url";
468 static const char* kNIMChatRoomInfoKeyCreatorID = "creator_id";
470 static const char* kNIMChatRoomInfoKeyValidFlag = "valid_flag";
472 static const char* kNIMChatRoomInfoKeyExt = "ext";
474 static const char* kNIMChatRoomInfoKeyOnlineCount = "online_count";
476 static const char* kNIMChatRoomInfoKeyMuteAll = "mute_all";
478 static const char* kNIMChatRoomInfoKeyQueuelevel = "queuelevel"; // 聊天室Info Json Keys
480 
489 };
490 
494 static const char* kNIMChatRoomMemberInfoKeyRoomID = "room_id";
497 static const char* kNIMChatRoomMemberInfoKeyAccID = "account_id";
499 static const char* kNIMChatRoomMemberInfoKeyType = "type";
501 static const char* kNIMChatRoomMemberInfoKeyLevel = "level";
503 static const char* kNIMChatRoomMemberInfoKeyNick = "nick";
505 static const char* kNIMChatRoomMemberInfoKeyAvatar = "avatar";
507 static const char* kNIMChatRoomMemberInfoKeyExt = "ext";
509 static const char* kNIMChatRoomMemberInfoKeyTag = "tags";
511 static const char* kNIMChatRoomMemberInfoKeyNotifyTags = "notify_tags";
513 static const char* kNIMChatRoomMemberInfoKeyOnlineState = "online_state";
515 static const char* kNIMChatRoomMemberInfoKeyGuestFlag = "guest_flag";
517 static const char* kNIMChatRoomMemberInfoKeyEnterTimetag = "enter_timetag";
518 // 以下字段仅在返回前端时使用
520 static const char* kNIMChatRoomMemberInfoKeyBlacklist = "is_blacklist";
522 static const char* kNIMChatRoomMemberInfoKeyMuted = "is_muted";
524 static const char* kNIMChatRoomMemberInfoKeyValid = "valid";
526 static const char* kNIMChatRoomMemberInfoKeyUpdateTimetag = "update_timetag";
528 static const char* kNIMChatRoomMemberInfoKeyTempMute = "temp_mute";
530 static const char* kNIMChatRoomMemberInfoKeyTempMuteRestDuration = "temp_mute_rest_duration"; // 聊天室个人Info Json Keys
532 
536 static const char* kNIMChatRoomUpdateMyRoleExtNeedSave = "need_save"; // 更新我的信息扩展字段 Json Keys
539 
544 };
545 
550 };
551 
556 };
557 
565  1,
568 };
569 
576 };
577 
581 static const char* kNIMChatRoomGetMembersKeyType = "type";
584 static const char* kNIMChatRoomGetMembersKeyTag = "tag";
586 static const char* kNIMChatRoomGetMembersKeyOffset = "offset";
588 static const char* kNIMChatRoomGetMembersKeyLimit = "limit"; // 分页获取成员列表条件Keys
590 
594 static const char* kNIMChatRoomGetMsgHistoryKeyStartTime = "start";
597 static const char* kNIMChatRoomGetMsgHistoryKeyLimit = "limit";
599 static const char* kNIMChatRoomGetMsgHistoryKeyReverse = "reverse";
601 static const char* kNIMChatRoomGetMsgHistoryKeyMsgtypes = "msgtypes"; // 分获取历史消息条件Keys
603 
607 static const char* kNIMChatRoomSetMemberAttributeKeyAccoutID = "account_id";
610 static const char* kNIMChatRoomSetMemberAttributeKeyAttribute = "attribute";
612 static const char* kNIMChatRoomSetMemberAttributeKeyOpt = "opt";
614 static const char* kNIMChatRoomSetMemberAttributeKeyNotifyExt = "notify_ext"; // 设定聊天室成员标记身份条件Keys
616 
620 static const char* kChatRoomNotificationKeyData = "data";
623 static const char* kChatRoomNotificationKeyID = "id";
625 static const char* kChatRoomNotificationDataKeyExt = "ext";
627 static const char* kChatRoomNotificationDataKeyOpt = "operator";
629 static const char* kChatRoomNotificationDataKeyOptNick = "opeNick";
631 static const char* kChatRoomNotificationDataKeyTargetNick = "tarNick";
633 static const char* kChatRoomNotificationDataKeyTarget = "target";
635 static const char* kChatRoomNotificationDataKeyTempMuteDuration = "muteDuration";
637 static const char* kChatRoomNotificationDataKeyMuteFlag = "muted";
639 static const char* kChatRoomNotificationDataKeyTempMutedFlag = "tempMuted";
643 static const char* kChatRoomNotificationDataKeyQueueChange = "queueChange"; // 聊天室通知Keys
645 
649 static const char* kNIMChatRoomQueueElementKey = "key";
652 static const char* kNIMChatRoomQueueElementValue = "value"; // 聊天室麦序队列元素Keys
654 
658 static const char* kNIMChatRoomNotificationQueueChangedType_OFFER = "OFFER";
665 static const char* kNIMChatRoomNotificationQueueChangedType_PARTCLEAR = "PARTCLEAR"; // 麦序队列变更通知扩展字段type取值
667 
671 static const char* kNIMChatRoomNotificationQueueChangedKeyType = "_e";
676 static const char* kNIMChatRoomNotificationQueueChangedKeyValue = "content"; // 聊天室通知 麦序队列变更通知扩展字段queueChange keys
678 
683 static const char* kNIMChatRoomNotificationQueueBatchChangedKeyType = "_e";
690 static const char* kNIMChatRoomNotificationQueueBatchChangedKeyObject = "kvObject"; // 聊天室通知 麦序队列中有批量变更通知扩展字段queueBatchChange keys
692 
716 };
717 
723 };
724 
732 };
733 
741 };
742 
747 // 协议定义
749 static const char* kNIMRobotInfoKeyAccid = "accid";
751 static const char* kNIMRobotInfoKeyName = "name";
753 static const char* kNIMRobotInfoKeyIcon = "icon";
755 static const char* kNIMRobotInfoKeyIntro = "intro";
757 static const char* kNIMRobotInfoKeyRobotId = "rid";
759 static const char* kNIMRobotInfoKeyCreateTime = "create_timetag";
761 static const char* kNIMRobotInfoKeyUpdateTime = "update_timetag"; // 机器人信息 Json Keys
763 
767 static const char* kEnterKeyPublicConfigRoot = "public_config";
770 static const char* kEnterKeyDedicatedClusteFlag = "dedicated_cluste_flag";
772 static const char* kEnterKeyNegoKeyNECA = "nego_key_neca";
774 static const char* kEnterKeyCommNECA = "comm_enca";
776 static const char* kEnterKeyHandShakeType = "hand_shake_type";
781 static const char* kEnterKeyPrivateConfigRoot = "private_config";
784 static const char* kEnterKeyNegoKeyNECAKeyPA = "nego_key_enca_key_parta";
786 static const char* kEnterKeyNegoKeyNECAKeyPB = "nego_key_enca_key_partb";
788 static const char* kEnterKeyNegoKeyNECAKeyV = "nego_key_enca_key_version";
790 typedef char* NIMChatRoomConfigGetter;
791 #define EmptyNIMChatRoomConfigGetter ("")
792 #ifdef __cplusplus
793 };
794 #endif // __cplusplus
795 #endif // NIM_CHATROOM_SDK_EXPORT_HEADERS_NIM_CHATROOM_DEF_H_
kNIMChatRoomEnterCallbackKeyMyInfo
static const char * kNIMChatRoomEnterCallbackKeyMyInfo
json value, 见聊天室个人Info Json Keys
Definition: nim_chatroom_def.h:452
kNIMChatRoomGetMembersKeyLimit
static const char * kNIMChatRoomGetMembersKeyLimit
int 数量
Definition: nim_chatroom_def.h:588
kNIMChatRoomNotificationIdMemberTempUnMute
@ kNIMChatRoomNotificationIdMemberTempUnMute
Definition: nim_chatroom_def.h:710
kNIMRobotInfoKeyName
static const char * kNIMRobotInfoKeyName
string 名字
Definition: nim_chatroom_def.h:751
NIMChatRoomLoginState
NIMChatRoomLoginState
Definition: nim_chatroom_def.h:541
kNIMChatRoomMsgKeyHistorySave
static const char * kNIMChatRoomMsgKeyHistorySave
int,(可选)该消息是否存储云端历史,可选,0:不是,1:是, 默认1
Definition: nim_chatroom_def.h:367
kChatRoomNotificationDataKeyTempMuteDuration
static const char * kChatRoomNotificationDataKeyTempMuteDuration
long 当通知为临时禁言相关时有该值,禁言时kNIMChatRoomNotificationIdMemberTempMute代表本次禁言的时长(秒)
Definition: nim_chatroom_def.h:635
kNIMChatRoomNotificationQueueBatchChangedKeyType
static const char * kNIMChatRoomNotificationQueueBatchChangedKeyType
string 变更类型,目前有OFFER,POLL,DROP,PARTCLEAR四个类型
Definition: nim_chatroom_def.h:684
kNIMChatRoomMsgKeyClientMsgid
static const char * kNIMChatRoomMsgKeyClientMsgid
string,客户端消息id
Definition: nim_chatroom_def.h:355
kNIMChatRoomEnterKeyNick
static const char * kNIMChatRoomEnterKeyNick
string, (匿名登录时必填)进入聊天室后展示的昵称,选填,聊天室成员收到聊天室进入通知中可以获取该数据
Definition: nim_chatroom_def.h:312
kNIMChatRoomExitReasonExit
@ kNIMChatRoomExitReasonExit
Definition: nim_chatroom_def.h:483
kNIMChatRoomNotificationQueueChangedType_DROP
static const char * kNIMChatRoomNotificationQueueChangedType_DROP
清理队列操作
Definition: nim_chatroom_def.h:663
NIMChatRoomExitReason
NIMChatRoomExitReason
Definition: nim_chatroom_def.h:482
kNIMSDKLogLevelWarn
@ kNIMSDKLogLevelWarn
Definition: nim_chatroom_def.h:414
kNIMChatRoomNotificationIdRemoveMute
@ kNIMChatRoomNotificationIdRemoveMute
Definition: nim_chatroom_def.h:701
kNIMChatRoomMemberInfoKeyNotifyTags
static const char * kNIMChatRoomMemberInfoKeyNotifyTags
string 聊天室成员登录时指定的 notify_tags 信息
Definition: nim_chatroom_def.h:511
kEnterKeyPublicConfigRoot
static const char * kEnterKeyPublicConfigRoot
json obj 公共配置root key
Definition: nim_chatroom_def.h:768
nim_chatroom_get_members_cb_func
void(* nim_chatroom_get_members_cb_func)(int64_t room_id, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:98
kNIMChatRoomMemberInfoKeyUpdateTimetag
static const char * kNIMChatRoomMemberInfoKeyUpdateTimetag
long 固定成员的记录更新时间,用于固定成员列表的排列查询
Definition: nim_chatroom_def.h:526
kNIMChatRoomMemberInfoKeyAvatar
static const char * kNIMChatRoomMemberInfoKeyAvatar
string 聊天室内的头像,预留字段, 可从Uinfo中取icon
Definition: nim_chatroom_def.h:505
kEnterKeyNegoKeyNECAKeyV
static const char * kEnterKeyNegoKeyNECAKeyV
int 非对称加密算法的 key version 自定义时则必填
Definition: nim_chatroom_def.h:788
kNIMChatRoomMemberInfoKeyRoomID
static const char * kNIMChatRoomMemberInfoKeyRoomID
long 聊天室id
Definition: nim_chatroom_def.h:495
kNIMChatRoomMsgKeyFromAvatar
static const char * kNIMChatRoomMsgKeyFromAvatar
string, 消息发送方头像,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:395
kNIMChatRoomMsgTypeRobot
@ kNIMChatRoomMsgTypeRobot
Definition: nim_chatroom_def.h:428
kNIMChatRoomMemberInfoKeyType
static const char * kNIMChatRoomMemberInfoKeyType
成员类型, -1:受限用户; 0:普通;1:创建者;2:管理员;3:临时用户,非固定成员;4:匿名非注册用户,非云信注册用户
Definition: nim_chatroom_def.h:499
kChatRoomNotificationDataKeyOpt
static const char * kChatRoomNotificationDataKeyOpt
string 操作者的账号accid
Definition: nim_chatroom_def.h:627
kNIMChatRoomGuestFlagGuest
@ kNIMChatRoomGuestFlagGuest
Definition: nim_chatroom_def.h:555
kNIMChatRoomProxyHttp11
@ kNIMChatRoomProxyHttp11
Definition: nim_chatroom_def.h:737
nim_chatroom_exit_cb_func
void(* nim_chatroom_exit_cb_func)(int64_t room_id, int error_code, int exit_type, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:43
NIMChatRoomMemberAttribute
NIMChatRoomMemberAttribute
Definition: nim_chatroom_def.h:571
kNIMChatRoomMemberInfoKeyMuted
static const char * kNIMChatRoomMemberInfoKeyMuted
int 是禁言用户
Definition: nim_chatroom_def.h:522
kNIMChatRoomGetMemberTypeTemp
@ kNIMChatRoomGetMemberTypeTemp
Definition: nim_chatroom_def.h:564
kNIMChatRoomMsgTypeVideo
@ kNIMChatRoomMsgTypeVideo
Definition: nim_chatroom_def.h:424
kNIMRobotInfoKeyRobotId
static const char * kNIMRobotInfoKeyRobotId
string 机器人ID
Definition: nim_chatroom_def.h:757
kNIMChatRoomMsgKeySubType
static const char * kNIMChatRoomMsgKeySubType
(可选)int,消息的子类型,客户端定义,服务器透传
Definition: nim_chatroom_def.h:375
kNIMChatRoomNotificationQueueChangedType_POLL
static const char * kNIMChatRoomNotificationQueueChangedType_POLL
从队列中取出新队列
Definition: nim_chatroom_def.h:661
kNIMChatRoomQueueElementKey
static const char * kNIMChatRoomQueueElementKey
string 元素key
Definition: nim_chatroom_def.h:650
kNIMChatRoomEnterStepRoomAuthOver
@ kNIMChatRoomEnterStepRoomAuthOver
Definition: nim_chatroom_def.h:731
kNIMChatRoomGetMembersKeyType
static const char * kNIMChatRoomGetMembersKeyType
NIMChatRoomGetMemberType 成员类型
Definition: nim_chatroom_def.h:582
kEnterKeyNegoKeyNECAKeyPA
static const char * kEnterKeyNegoKeyNECAKeyPA
string "交换密钥"协议加密算法密钥 part A 自定义时则必填 BigNumHex string 不含0x RSA:module,SM2:X
Definition: nim_chatroom_def.h:784
kNIMChatRoomClientTypePCWindows
@ kNIMChatRoomClientTypePCWindows
Definition: nim_chatroom_def.h:439
kNIMChatRoomMsgKeyExt
static const char * kNIMChatRoomMsgKeyExt
string, 第三方扩展字段, 长度限制4096, 必须为可以解析为Json的非格式化的字符串
Definition: nim_chatroom_def.h:359
kNIMChatRoomNotificationIdMemberIn
@ kNIMChatRoomNotificationIdMemberIn
Definition: nim_chatroom_def.h:696
kNIMChatRoomNotificationIdMemberExit
@ kNIMChatRoomNotificationIdMemberExit
Definition: nim_chatroom_def.h:697
kNIMChatRoomMemberInfoKeyValid
static const char * kNIMChatRoomMemberInfoKeyValid
int 记录有效标记位
Definition: nim_chatroom_def.h:524
kNIMChatRoomMemberInfoKeyGuestFlag
static const char * kNIMChatRoomMemberInfoKeyGuestFlag
NIMChatRoomGuestFlag 是否是普通游客类型,0:不是游客,1:是游客; 游客身份在聊天室中没有持久化, 只有在线时才会有内存状态
Definition: nim_chatroom_def.h:515
nim_chatroom_enter_cb_func
void(* nim_chatroom_enter_cb_func)(int64_t room_id, int enter_step, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:27
kNIMChatRoomNotificationQueueChangedKeyType
static const char * kNIMChatRoomNotificationQueueChangedKeyType
string 变更类型,目前有OFFER,POLL,DROP,BATCH_UPDATE 类型
Definition: nim_chatroom_def.h:672
kNIMChatRoomMsgKeyAntiSpamContent
static const char * kNIMChatRoomMsgKeyAntiSpamContent
string, (可选)开发者自定义的反垃圾字段, 长度限制2048
Definition: nim_chatroom_def.h:363
kNIMChatRoomMsgKeyFromClientType
static const char * kNIMChatRoomMsgKeyFromClientType
int,消息发送方客户端类型(NIMChatRoomClientType),服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:391
kNIMChatRoomQueueElementValue
static const char * kNIMChatRoomQueueElementValue
string 元素value
Definition: nim_chatroom_def.h:652
kChatRoomNotificationDataKeyTarget
static const char * kChatRoomNotificationDataKeyTarget
string json array 被操作者的accid
Definition: nim_chatroom_def.h:633
kNIMChatRoomProxySocks4
@ kNIMChatRoomProxySocks4
Definition: nim_chatroom_def.h:738
kChatRoomNotificationDataKeyMuteFlag
static const char * kChatRoomNotificationDataKeyMuteFlag
int 当通知为kNIMChatRoomNotificationIdMemberIn才有,代表是否禁言状态,1:是 缺省或0:不是
Definition: nim_chatroom_def.h:637
kNIMChatRoomMemberInfoKeyEnterTimetag
static const char * kNIMChatRoomMemberInfoKeyEnterTimetag
long 进入聊天室的时间点,对于离线成员该字段为空
Definition: nim_chatroom_def.h:517
kNIMChatRoomInfoKeyAnnouncement
static const char * kNIMChatRoomInfoKeyAnnouncement
string, 聊天室公告
Definition: nim_chatroom_def.h:464
kNIMChatRoomLinkConditionDeadAndRetry
@ kNIMChatRoomLinkConditionDeadAndRetry
Definition: nim_chatroom_def.h:721
nim_chatroom_queue_poll_cb_func
void(* nim_chatroom_queue_poll_cb_func)(int64_t room_id, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:239
NIMChatRoomProxyType
NIMChatRoomProxyType
Definition: nim_chatroom_def.h:735
kNIMChatRoomClientTypeAndroid
@ kNIMChatRoomClientTypeAndroid
Definition: nim_chatroom_def.h:437
kNIMChatRoomNotificationIdInfoUpdated
@ kNIMChatRoomNotificationIdInfoUpdated
Definition: nim_chatroom_def.h:707
kEnterKeyHandShakeType
static const char * kEnterKeyHandShakeType
int 登录时使用的握手协议类型 0:支持配置多种对称与非对称加密算法,1:只支持RAS + RC4,缺省 1
Definition: nim_chatroom_def.h:776
kNIMChatRoomUpdateMyRoleExtNeedSave
static const char * kNIMChatRoomUpdateMyRoleExtNeedSave
bool 我的资料是否需要持久化保存,默认false
Definition: nim_chatroom_def.h:537
NIMChatRoomEnterStep
NIMChatRoomEnterStep
Definition: nim_chatroom_def.h:726
kNIMChatRoomInfoKeyExt
static const char * kNIMChatRoomInfoKeyExt
string, 第三方扩展字段, 必须为可以解析为Json的非格式化的字符串, 长度4k
Definition: nim_chatroom_def.h:472
kNIMChatRoomNotificationQueueChangedKeyKey
static const char * kNIMChatRoomNotificationQueueChangedKeyKey
string 变更元素的key
Definition: nim_chatroom_def.h:674
kNIMChatRoomEnterStepRoomAuthing
@ kNIMChatRoomEnterStepRoomAuthing
Definition: nim_chatroom_def.h:730
kNIMChatRoomGetMsgHistoryKeyLimit
static const char * kNIMChatRoomGetMsgHistoryKeyLimit
int 本次返回的消息数量
Definition: nim_chatroom_def.h:597
kNIMChatRoomMsgKeyHighPriorityFlag
static const char * kNIMChatRoomMsgKeyHighPriorityFlag
int, 高优先级消息标记,1:是; 非高优先级消息不带该字段,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:399
kNIMChatRoomMsgKeyLocalFilePath
static const char * kNIMChatRoomMsgKeyLocalFilePath
string, 暂时不用,多媒体消息资源本地绝对路径,SDK本地维护,发送多媒体消息时必填
Definition: nim_chatroom_def.h:403
kNIMChatRoomInfoKeyMuteAll
static const char * kNIMChatRoomInfoKeyMuteAll
int, 聊天室禁言标志 1:禁言,0:解除禁言
Definition: nim_chatroom_def.h:476
nim_chatroom_query_members_count_by_tag_cb_func
void(* nim_chatroom_query_members_count_by_tag_cb_func)(int64_t room_id, int error_code, uint64_t count, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:176
kNIMRobotInfoKeyCreateTime
static const char * kNIMRobotInfoKeyCreateTime
long 创建时间戳 毫秒
Definition: nim_chatroom_def.h:759
kNIMChatRoomMsgKeyType
static const char * kNIMChatRoomMsgKeyType
int, 消息类型(NIMChatRoomMsgType)
Definition: nim_chatroom_def.h:351
kNIMChatRoomGetMsgHistoryKeyMsgtypes
static const char * kNIMChatRoomGetMsgHistoryKeyMsgtypes
array:数组 要查询的消息类型,取值NIMChatRoomMsgType中所枚举类型
Definition: nim_chatroom_def.h:601
kNIMChatRoomGetMemberTypeSolid
@ kNIMChatRoomGetMemberTypeSolid
Definition: nim_chatroom_def.h:560
NIMChatRoomGetMemberType
NIMChatRoomGetMemberType
Definition: nim_chatroom_def.h:559
kNIMChatRoomEnterKeyAppDataPath
static const char * kNIMChatRoomEnterKeyAppDataPath
Definition: nim_chatroom_def.h:333
kNIMChatRoomGetMsgHistoryKeyStartTime
static const char * kNIMChatRoomGetMsgHistoryKeyStartTime
long 开始时间,单位毫秒
Definition: nim_chatroom_def.h:595
kChatRoomNotificationDataKeyTempMutedFlag
static const char * kChatRoomNotificationDataKeyTempMutedFlag
int 当通知为kNIMChatRoomNotificationIdMemberIn才有,代表是否临时禁言状态,1:是 缺省或0:不是
Definition: nim_chatroom_def.h:639
kNIMChatRoomMsgKeyResendFlag
static const char * kNIMChatRoomMsgKeyResendFlag
int,消息重发标记位,第一次发送0,重发1
Definition: nim_chatroom_def.h:357
kChatRoomNotificationKeyData
static const char * kChatRoomNotificationKeyData
string 通知内容
Definition: nim_chatroom_def.h:621
kNIMChatRoomNotificationIdAddFixed
@ kNIMChatRoomNotificationIdAddFixed
Definition: nim_chatroom_def.h:704
kNIMChatRoomMsgKeyAntiSpamBizId
static const char * kNIMChatRoomMsgKeyAntiSpamBizId
string, (可选)用户配置的对某些单条消息另外的反垃圾的业务ID
Definition: nim_chatroom_def.h:365
kEnterKeyNegoKeyNECAKeyPB
static const char * kEnterKeyNegoKeyNECAKeyPB
string "交换密钥"协议加密算法密钥 part B 自定义时则必填 BigNumHex string 不含0x RSA:EXP,SM2:Y
Definition: nim_chatroom_def.h:786
kNIMChatRoomMemberInfoKeyTempMute
static const char * kNIMChatRoomMemberInfoKeyTempMute
int 临时禁言
Definition: nim_chatroom_def.h:528
kNIMChatRoomMsgTypeText
@ kNIMChatRoomMsgTypeText
Definition: nim_chatroom_def.h:421
kNIMChatRoomMsgTypeFile
@ kNIMChatRoomMsgTypeFile
Definition: nim_chatroom_def.h:427
kNIMChatRoomMsgTypeNotification
@ kNIMChatRoomMsgTypeNotification
Definition: nim_chatroom_def.h:426
kNIMChatRoomMsgKeyFromAccount
static const char * kNIMChatRoomMsgKeyFromAccount
string, 消息发送者的账号,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:387
kNIMChatRoomClientTypeMacOS
@ kNIMChatRoomClientTypeMacOS
Definition: nim_chatroom_def.h:443
kNIMChatRoomMsgKeyTime
static const char * kNIMChatRoomMsgKeyTime
long, 消息发送的时间戳(毫秒),服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:389
kNIMChatRoomSetMemberAttributeKeyNotifyExt
static const char * kNIMChatRoomSetMemberAttributeKeyNotifyExt
string 自定义的事件通知扩展字段, 必须为可以解析为Json的非格式化的字符串
Definition: nim_chatroom_def.h:614
kNIMChatRoomNotificationQueueChangedType_OFFER
static const char * kNIMChatRoomNotificationQueueChangedType_OFFER
放元素到新队列
Definition: nim_chatroom_def.h:659
nim_chatroom_queue_list_cb_func
void(* nim_chatroom_queue_list_cb_func)(int64_t room_id, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:252
kNIMChatRoomNotificationIdRemoveManager
@ kNIMChatRoomNotificationIdRemoveManager
Definition: nim_chatroom_def.h:703
NIMChatRoomNotificationId
NIMChatRoomNotificationId
Definition: nim_chatroom_def.h:695
kNIMSDKLogLevelPro
@ kNIMSDKLogLevelPro
Definition: nim_chatroom_def.h:416
NIMChatRoomMsgType
NIMChatRoomMsgType
Definition: nim_chatroom_def.h:420
nim_chatroom_receive_notification_cb_func
void(* nim_chatroom_receive_notification_cb_func)(int64_t room_id, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:85
kNIMChatRoomProxySocks5
@ kNIMChatRoomProxySocks5
Definition: nim_chatroom_def.h:740
kNIMChatRoomSetMemberAttributeKeyAccoutID
static const char * kNIMChatRoomSetMemberAttributeKeyAccoutID
string 成员ID
Definition: nim_chatroom_def.h:608
kNIMRobotInfoKeyAccid
static const char * kNIMRobotInfoKeyAccid
string 帐号
Definition: nim_chatroom_def.h:749
kNIMChatRoomEnterKeyAppKey
static const char * kNIMChatRoomEnterKeyAppKey
string, 应用appkey,匿名登录时必填
Definition: nim_chatroom_def.h:329
kNIMChatRoomSetMemberAttributeKeyAttribute
static const char * kNIMChatRoomSetMemberAttributeKeyAttribute
NIMChatRoomMemberAttribute.
Definition: nim_chatroom_def.h:610
kNIMChatRoomNotificationIdAddManager
@ kNIMChatRoomNotificationIdAddManager
Definition: nim_chatroom_def.h:702
kNIMChatRoomNotificationIdMemberKicked
@ kNIMChatRoomNotificationIdMemberKicked
Definition: nim_chatroom_def.h:708
nim_chatroom_kick_member_cb_func
void(* nim_chatroom_kick_member_cb_func)(int64_t room_id, int error_code, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:148
kNIMRobotInfoKeyIntro
static const char * kNIMRobotInfoKeyIntro
string 介绍
Definition: nim_chatroom_def.h:755
kNIMChatRoomNotificationIdQueueBatchChanged
@ kNIMChatRoomNotificationIdQueueBatchChanged
Definition: nim_chatroom_def.h:715
kNIMChatRoomOnlineStateOffline
@ kNIMChatRoomOnlineStateOffline
Definition: nim_chatroom_def.h:548
kNIMChatRoomEnterKeyLogLevel
static const char * kNIMChatRoomEnterKeyLogLevel
int,匿名登录时选填,定义见NIMSDKLogLevel(选填,SDK默认的内置级别为kNIMSDKLogLevelPro)
Definition: nim_chatroom_def.h:335
kNIMChatRoomNotificationQueueChangedKeyValue
static const char * kNIMChatRoomNotificationQueueChangedKeyValue
string 变更元素的内容
Definition: nim_chatroom_def.h:676
kNIMChatRoomProxySocks4a
@ kNIMChatRoomProxySocks4a
Definition: nim_chatroom_def.h:739
nim_chatroom_temp_mute_member_by_tag_cb_func
void(* nim_chatroom_temp_mute_member_by_tag_cb_func)(int64_t room_id, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:192
NIMSDKLogLevel
NIMSDKLogLevel
Definition: nim_chatroom_def.h:411
nim_chatroom_get_info_cb_func
void(* nim_chatroom_get_info_cb_func)(int64_t room_id, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:138
kNIMChatRoomMsgKeyAntiSpamUsingYiDun
static const char * kNIMChatRoomMsgKeyAntiSpamUsingYiDun
int, (可选) 单条消息是否使用易盾反垃圾 0:(在开通易盾的情况下)不过易盾反垃圾而是通用反垃圾 其他都是按照原来的规则
Definition: nim_chatroom_def.h:369
kNIMChatRoomEnterKeyNotifyExt
static const char * kNIMChatRoomEnterKeyNotifyExt
string, 进入聊天室通知开发者扩展字段,必须为可以解析为Json的非格式化的字符串,选填,聊天室成员收到聊天室进入通知中可以获取该数据
Definition: nim_chatroom_def.h:318
kNIMChatRoomNotificationIdAddMute
@ kNIMChatRoomNotificationIdAddMute
Definition: nim_chatroom_def.h:700
kNIMChatRoomMsgKeyLocalResId
static const char * kNIMChatRoomMsgKeyLocalResId
string, 暂时不用,多媒体资源id,发送方选填,接收方收到的是客户端消息id
Definition: nim_chatroom_def.h:405
kNIMChatRoomMemberInfoKeyTempMuteRestDuration
static const char * kNIMChatRoomMemberInfoKeyTempMuteRestDuration
long 临时禁言的解除时长,单位秒
Definition: nim_chatroom_def.h:530
kNIMChatRoomMemberInfoKeyTag
static const char * kNIMChatRoomMemberInfoKeyTag
string 聊天室成员所属的 tag 信息
Definition: nim_chatroom_def.h:509
kNIMChatRoomEnterKeyExt
static const char * kNIMChatRoomEnterKeyExt
string, 聊天室可用的扩展字段,必须为可以解析为Json的非格式化的字符串,选填,设置后通过获取聊天室成员信息接口可以获取该数据
Definition: nim_chatroom_def.h:316
kNIMChatRoomLinkConditionDead
@ kNIMChatRoomLinkConditionDead
Definition: nim_chatroom_def.h:722
nim_chatroom_queue_drop_cb_func
void(* nim_chatroom_queue_drop_cb_func)(int64_t room_id, int error_code, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:275
kChatRoomNotificationDataKeyExt
static const char * kChatRoomNotificationDataKeyExt
string 上层开发自定义的事件通知扩展字段, 必须为可以解析为Json的非格式化的字符串
Definition: nim_chatroom_def.h:625
kNIMChatRoomLinkConditionAlive
@ kNIMChatRoomLinkConditionAlive
Definition: nim_chatroom_def.h:720
NIMChatRoomGuestFlag
NIMChatRoomGuestFlag
Definition: nim_chatroom_def.h:553
nim_chatroom_batch_update_cb
void(* nim_chatroom_batch_update_cb)(int64_t room_id, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:306
NIMChatRoomClientType
NIMChatRoomClientType
Definition: nim_chatroom_def.h:435
kNIMSDKLogLevelError
@ kNIMSDKLogLevelError
Definition: nim_chatroom_def.h:413
nim_chatroom_update_my_role_cb_func
void(* nim_chatroom_update_my_role_cb_func)(int64_t room_id, int error_code, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:216
kNIMChatRoomGetMembersKeyOffset
static const char * kNIMChatRoomGetMembersKeyOffset
long 时间戳,填0会使用当前服务器最新时间开始查询,即第一页
Definition: nim_chatroom_def.h:586
kNIMChatRoomClientTypeDefault
@ kNIMChatRoomClientTypeDefault
Definition: nim_chatroom_def.h:436
kNIMChatRoomEnterKeyAvatar
static const char * kNIMChatRoomEnterKeyAvatar
string, (匿名登录时必填)设置后通过获取聊天室成员信息接口可以获取该数据
Definition: nim_chatroom_def.h:314
kNIMChatRoomMemberInfoKeyNick
static const char * kNIMChatRoomMemberInfoKeyNick
string 聊天室内的昵称字段,预留字段, 可从Uinfo中取
Definition: nim_chatroom_def.h:503
kNIMSDKLogLevelApp
@ kNIMSDKLogLevelApp
Definition: nim_chatroom_def.h:415
kNIMChatRoomMsgKeyNotifyTags
static const char * kNIMChatRoomMsgKeyNotifyTags
(可选)String 消息的目标标签表达式,参见TagPattern和TagCalculator v8.4.0 新增
Definition: nim_chatroom_def.h:381
kNIMChatRoomMsgKeyThirdPartyCBEXT
static const char * kNIMChatRoomMsgKeyThirdPartyCBEXT
(可选)string第三方回调回来的自定义扩展字段 v7.8 新增
Definition: nim_chatroom_def.h:373
kNIMChatRoomNotificationIdRemoveBlack
@ kNIMChatRoomNotificationIdRemoveBlack
Definition: nim_chatroom_def.h:699
kNIMChatRoomNotificationIdRemoveFixed
@ kNIMChatRoomNotificationIdRemoveFixed
Definition: nim_chatroom_def.h:705
kNIMChatRoomMsgKeyAntiSpamEnable
static const char * kNIMChatRoomMsgKeyAntiSpamEnable
int, 是否需要过易盾反垃圾, 0:不需要,1:需要, 默认0
Definition: nim_chatroom_def.h:361
kNIMChatRoomMsgTypeCustom
@ kNIMChatRoomMsgTypeCustom
Definition: nim_chatroom_def.h:430
kNIMChatRoomInfoKeyCreatorID
static const char * kNIMChatRoomInfoKeyCreatorID
string, 聊天室创建者账号
Definition: nim_chatroom_def.h:468
nim_chatroom_get_msg_cb_func
void(* nim_chatroom_get_msg_cb_func)(int64_t room_id, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:110
public_defines.h
NIM SDK 及 NIM ChatRoom SDK 公用头文件
kChatRoomNotificationDataKeyMemberInTempMutedDuration
static const char * kChatRoomNotificationDataKeyMemberInTempMutedDuration
long 当通知为kNIMChatRoomNotificationIdMemberIn,代表临时禁言时长(秒), 其他通知事件不带该数据
Definition: nim_chatroom_def.h:641
kNIMChatRoomNotificationQueueChangedType_PARTCLEAR
static const char * kNIMChatRoomNotificationQueueChangedType_PARTCLEAR
部分清理操作(发生在提交元素的用户掉线时,清理这个用户对应的key
Definition: nim_chatroom_def.h:665
kNIMChatRoomMsgTypeUnknown
@ kNIMChatRoomMsgTypeUnknown
Definition: nim_chatroom_def.h:431
kEnterKeyPrivateConfigRoot
static const char * kEnterKeyPrivateConfigRoot
json obj 私有配置root key
Definition: nim_chatroom_def.h:782
NIMChatRoomLinkCondition
NIMChatRoomLinkCondition
Definition: nim_chatroom_def.h:719
kNIMChatRoomExitReasonRoomInvalid
@ kNIMChatRoomExitReasonRoomInvalid
Definition: nim_chatroom_def.h:484
kNIMChatRoomExitReasonKickByManager
@ kNIMChatRoomExitReasonKickByManager
Definition: nim_chatroom_def.h:485
kNIMChatRoomInfoKeyOnlineCount
static const char * kNIMChatRoomInfoKeyOnlineCount
int, 当前在线用户数量
Definition: nim_chatroom_def.h:474
kNIMChatRoomMsgTypeLocation
@ kNIMChatRoomMsgTypeLocation
Definition: nim_chatroom_def.h:425
kNIMChatRoomClientTypeWeb
@ kNIMChatRoomClientTypeWeb
Definition: nim_chatroom_def.h:441
kNIMChatRoomMsgKeyBody
static const char * kNIMChatRoomMsgKeyBody
string,(可选)文本消息内容(聊天室机器人文本消息)
Definition: nim_chatroom_def.h:371
kNIMChatRoomNotificationIdQueueChanged
@ kNIMChatRoomNotificationIdQueueChanged
Definition: nim_chatroom_def.h:712
kNIMChatRoomMemberInfoKeyAccID
static const char * kNIMChatRoomMemberInfoKeyAccID
string 成员账号
Definition: nim_chatroom_def.h:497
kNIMRobotInfoKeyIcon
static const char * kNIMRobotInfoKeyIcon
string 头像
Definition: nim_chatroom_def.h:753
kNIMChatRoomNotificationIdRoomMuted
@ kNIMChatRoomNotificationIdRoomMuted
Definition: nim_chatroom_def.h:713
kNIMChatRoomExitReasonKickByMultiSpot
@ kNIMChatRoomExitReasonKickByMultiSpot
Definition: nim_chatroom_def.h:486
kNIMChatRoomGetMemberTypeTempOL
@ kNIMChatRoomGetMemberTypeTempOL
Definition: nim_chatroom_def.h:567
kNIMChatRoomNotificationQueueBatchChangedKeyKey
static const char * kNIMChatRoomNotificationQueueBatchChangedKeyKey
string 变更元素的key
Definition: nim_chatroom_def.h:686
nim_chatroom_update_room_info_cb_func
void(* nim_chatroom_update_room_info_cb_func)(int64_t room_id, int error_code, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:206
kNIMChatRoomEnterKeyAccID
static const char * kNIMChatRoomEnterKeyAccID
string,登录聊天室的账号非匿名模式下使用
Definition: nim_chatroom_def.h:341
nim_chatroom_queue_offer_cb_func
void(* nim_chatroom_queue_offer_cb_func)(int64_t room_id, int error_code, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:226
nim_chatroom_receive_msg_cb_func
void(* nim_chatroom_receive_msg_cb_func)(int64_t room_id, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:75
kEnterKeyCommNECA
static const char * kEnterKeyCommNECA
int 通信加密算法 {1(RC4),2(AES128),4(SM4)} def:1(RC4) 对称加密
Definition: nim_chatroom_def.h:774
kNIMChatRoomExitReasonBeBlacklisted
@ kNIMChatRoomExitReasonBeBlacklisted
Definition: nim_chatroom_def.h:488
kEnterKeyNegoKeyNECA
static const char * kEnterKeyNegoKeyNECA
int "交换密钥"协议加密算法 {1(RSA),2(SM2)}, def:1(RSA) 非对称加密
Definition: nim_chatroom_def.h:772
kNIMChatRoomNotificationQueueBatchChangedKeyValue
static const char * kNIMChatRoomNotificationQueueBatchChangedKeyValue
string 变更元素的内容
Definition: nim_chatroom_def.h:688
kNIMChatRoomLoginStateUnLogin
@ kNIMChatRoomLoginStateUnLogin
Definition: nim_chatroom_def.h:543
kNIMChatRoomNotificationIdRoomDeMuted
@ kNIMChatRoomNotificationIdRoomDeMuted
Definition: nim_chatroom_def.h:714
kNIMChatRoomMemberInfoKeyExt
static const char * kNIMChatRoomMemberInfoKeyExt
string 开发者扩展字段, 长度限制2k, 必须为可以解析为Json的非格式化的字符串
Definition: nim_chatroom_def.h:507
kNIMChatRoomEnterStepInit
@ kNIMChatRoomEnterStepInit
Definition: nim_chatroom_def.h:727
kNIMChatRoomInfoKeyBroadcastUrl
static const char * kNIMChatRoomInfoKeyBroadcastUrl
string, 视频直播拉流地址
Definition: nim_chatroom_def.h:466
kNIMChatRoomNotificationIdMyRoleUpdated
@ kNIMChatRoomNotificationIdMyRoleUpdated
Definition: nim_chatroom_def.h:711
kNIMChatRoomClientTypeiOS
@ kNIMChatRoomClientTypeiOS
Definition: nim_chatroom_def.h:438
kNIMSDKLogLevelFatal
@ kNIMSDKLogLevelFatal
Definition: nim_chatroom_def.h:412
kNIMChatRoomMsgKeyFromNick
static const char * kNIMChatRoomMsgKeyFromNick
string, 消息发送方昵称,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:393
kNIMChatRoomEnterStepServerConnectOver
@ kNIMChatRoomEnterStepServerConnectOver
Definition: nim_chatroom_def.h:729
kNIMChatRoomSetMemberAttributeKeyOpt
static const char * kNIMChatRoomSetMemberAttributeKeyOpt
boolean: true:是,false:否
Definition: nim_chatroom_def.h:612
kChatRoomNotificationKeyID
static const char * kChatRoomNotificationKeyID
string 通知类型ID
Definition: nim_chatroom_def.h:623
kNIMChatRoomEnterKeyAddress
static const char * kNIMChatRoomEnterKeyAddress
string array,聊天室地址,地址通过应用服务器接口获取
Definition: nim_chatroom_def.h:337
nim_chatroom_queue_init_cb_func
void(* nim_chatroom_queue_init_cb_func)(int64_t room_id, int error_code, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:285
nim_chatroom_query_robots_cb_func
void(* nim_chatroom_query_robots_cb_func)(int rescode, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:295
kNIMChatRoomGetMembersKeyTag
static const char * kNIMChatRoomGetMembersKeyTag
获取成员时指定的 tag
Definition: nim_chatroom_def.h:584
kNIMChatRoomExitReasonIllegalState
@ kNIMChatRoomExitReasonIllegalState
Definition: nim_chatroom_def.h:487
kNIMChatRoomInfoKeyID
static const char * kNIMChatRoomInfoKeyID
long, 聊天室ID
Definition: nim_chatroom_def.h:460
nim_chatroom_queue_header_cb_func
void(* nim_chatroom_queue_header_cb_func)(int64_t room_id, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:265
kEnterKeyDedicatedClusteFlag
static const char * kEnterKeyDedicatedClusteFlag
int 是否为专属集群 1:是 0: 否
Definition: nim_chatroom_def.h:770
kNIMChatRoomMemberInfoKeyLevel
static const char * kNIMChatRoomMemberInfoKeyLevel
int 成员级别: >=0表示用户开发者可以自定义的级别
Definition: nim_chatroom_def.h:501
kNIMChatRoomMsgTypeTips
@ kNIMChatRoomMsgTypeTips
Definition: nim_chatroom_def.h:429
kNIMChatRoomMemberInfoKeyBlacklist
static const char * kNIMChatRoomMemberInfoKeyBlacklist
int 是黑名单
Definition: nim_chatroom_def.h:520
kNIMChatRoomInfoKeyName
static const char * kNIMChatRoomInfoKeyName
string, 聊天室名称
Definition: nim_chatroom_def.h:462
kNIMChatRoomMemberAttributeAdminister
@ kNIMChatRoomMemberAttributeAdminister
Definition: nim_chatroom_def.h:572
kNIMChatRoomEnterNotifyTags
static const char * kNIMChatRoomEnterNotifyTags
string 登录登出通知的目标标签
Definition: nim_chatroom_def.h:322
kNIMChatRoomInfoKeyQueuelevel
static const char * kNIMChatRoomInfoKeyQueuelevel
int, 队列管理权限:0:所有人都有权限变更队列,1:只有主播管理员才能操作变更
Definition: nim_chatroom_def.h:478
kNIMChatRoomMsgKeyEnvConfig
static const char * kNIMChatRoomMsgKeyEnvConfig
(可选)String, 自定义抄送配置 v8.0.0 新增
Definition: nim_chatroom_def.h:379
kNIMChatRoomMsgKeyAttach
static const char * kNIMChatRoomMsgKeyAttach
string, 消息内容,长度限制2048, 如果约定的是json字符串,必须为可以解析为json的非格式化的字符串
Definition: nim_chatroom_def.h:353
kNIMChatRoomMsgKeyYiDunAntiCheating
static const char * kNIMChatRoomMsgKeyYiDunAntiCheating
(可选)String, 易盾反垃圾增强反作弊专属字段, 限制json,长度限制1024
Definition: nim_chatroom_def.h:377
kNIMChatRoomMsgTypeAudio
@ kNIMChatRoomMsgTypeAudio
Definition: nim_chatroom_def.h:423
kNIMRobotInfoKeyUpdateTime
static const char * kNIMRobotInfoKeyUpdateTime
long 更新时间戳 毫秒
Definition: nim_chatroom_def.h:761
nim_chatroom_temp_mute_member_cb_func
void(* nim_chatroom_temp_mute_member_cb_func)(int64_t room_id, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:161
nim_chatroom_set_member_attribute_cb_func
void(* nim_chatroom_set_member_attribute_cb_func)(int64_t room_id, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:122
kNIMChatRoomMsgKeyFromExt
static const char * kNIMChatRoomMsgKeyFromExt
string, 消息发送方身份扩展字段,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:397
kNIMChatRoomClientTypeWindowsPhone
@ kNIMChatRoomClientTypeWindowsPhone
Definition: nim_chatroom_def.h:440
NIMChatRoomOnlineState
NIMChatRoomOnlineState
Definition: nim_chatroom_def.h:547
kNIMChatRoomEnterLoginTags
static const char * kNIMChatRoomEnterLoginTags
string array 登录标签,可以设置多个,json array 格式,例子:["tag1", "tag2"]
Definition: nim_chatroom_def.h:320
kNIMChatRoomClientTypeRestAPI
@ kNIMChatRoomClientTypeRestAPI
Definition: nim_chatroom_def.h:442
kChatRoomNotificationDataKeyOptNick
static const char * kChatRoomNotificationDataKeyOptNick
string 操作者的账号nick
Definition: nim_chatroom_def.h:629
kNIMChatRoomMemberInfoKeyOnlineState
static const char * kNIMChatRoomMemberInfoKeyOnlineState
NIMChatRoomOnlineState 成员是否处于在线状态, 仅特殊成员才可能离线, 对游客/匿名用户而言只能是在线
Definition: nim_chatroom_def.h:513
kNIMChatRoomMemberAttributeBlackList
@ kNIMChatRoomMemberAttributeBlackList
Definition: nim_chatroom_def.h:574
kNIMChatRoomEnterKeyRandomID
static const char * kNIMChatRoomEnterKeyRandomID
int,是否开启随机ID模式,默认为关闭(0),建议默认值
Definition: nim_chatroom_def.h:339
kNIMChatRoomOnlineStateOnline
@ kNIMChatRoomOnlineStateOnline
Definition: nim_chatroom_def.h:549
kNIMChatRoomGetMemberTypeSolidOL
@ kNIMChatRoomGetMemberTypeSolidOL
Definition: nim_chatroom_def.h:566
kNIMChatRoomMemberAttributeNomalMember
@ kNIMChatRoomMemberAttributeNomalMember
Definition: nim_chatroom_def.h:573
kNIMChatRoomMemberAttributeMuteList
@ kNIMChatRoomMemberAttributeMuteList
Definition: nim_chatroom_def.h:575
kNIMChatRoomNotificationQueueBatchChangedKeyObject
static const char * kNIMChatRoomNotificationQueueBatchChangedKeyObject
map 变更元素的内容
Definition: nim_chatroom_def.h:690
kNIMChatRoomEnterCallbackKeyRoomInfo
static const char * kNIMChatRoomEnterCallbackKeyRoomInfo
json value, 见聊天室Info Json Keys
Definition: nim_chatroom_def.h:450
nim_chatroom_link_condition_cb_func
void(* nim_chatroom_link_condition_cb_func)(int64_t room_id, int condition, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:53
kNIMChatRoomMsgKeyRoomID
static const char * kNIMChatRoomMsgKeyRoomID
long, 消息所属的聊天室id,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:385
kNIMChatRoomGuestFlagNoGuest
@ kNIMChatRoomGuestFlagNoGuest
Definition: nim_chatroom_def.h:554
kNIMChatRoomEnterKeyToken
static const char * kNIMChatRoomEnterKeyToken
string,登录聊天室的密码非匿名模式下使用
Definition: nim_chatroom_def.h:343
kNIMChatRoomGetMsgHistoryKeyReverse
static const char * kNIMChatRoomGetMsgHistoryKeyReverse
boolean: true:按时间正序起查,正序排列,false:按时间逆序起查,逆序排列
Definition: nim_chatroom_def.h:599
kNIMChatRoomInfoKeyValidFlag
static const char * kNIMChatRoomInfoKeyValidFlag
int, 聊天室有效标记, 1:有效,0:无效
Definition: nim_chatroom_def.h:470
kNIMChatRoomNotificationIdClosed
@ kNIMChatRoomNotificationIdClosed
Definition: nim_chatroom_def.h:706
nim_chatroom_sendmsg_arc_cb_func
void(* nim_chatroom_sendmsg_arc_cb_func)(int64_t room_id, int error_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:65
kChatRoomNotificationDataKeyTargetNick
static const char * kChatRoomNotificationDataKeyTargetNick
string json array 被操作者的nick列表
Definition: nim_chatroom_def.h:631
kChatRoomNotificationDataKeyQueueChange
static const char * kChatRoomNotificationDataKeyQueueChange
string 当通知为kNIMChatRoomNotificationIdQueueChange,代表队列变更具体内容,内容解析 参考麦序队列变更通知扩展字段queueChange
Definition: nim_chatroom_def.h:643
kNIMChatRoomProxyNone
@ kNIMChatRoomProxyNone
Definition: nim_chatroom_def.h:736
kNIMChatRoomMsgTypeImage
@ kNIMChatRoomMsgTypeImage
Definition: nim_chatroom_def.h:422
kNIMChatRoomEnterStepServerConnecting
@ kNIMChatRoomEnterStepServerConnecting
Definition: nim_chatroom_def.h:728
kNIMChatRoomLoginStateLogin
@ kNIMChatRoomLoginStateLogin
Definition: nim_chatroom_def.h:542
iNIMMaxBatchQueue
static const int iNIMMaxBatchQueue
int 聊天室更新的批量最大数
Definition: nim_chatroom_def.h:407
kNIMChatRoomNotificationIdMemberTempMute
@ kNIMChatRoomNotificationIdMemberTempMute
Definition: nim_chatroom_def.h:709
kNIMChatRoomNotificationIdAddBlack
@ kNIMChatRoomNotificationIdAddBlack
Definition: nim_chatroom_def.h:698