NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_chatroom_def.h
浏览该文件的文档.
1
7#ifndef NIM_CHATROOM_NIM_CHATROOM_DEFINES_NIM_CHATROOM_DEF_H_
8#define NIM_CHATROOM_NIM_CHATROOM_DEFINES_NIM_CHATROOM_DEF_H_
9
10#include "public_defines.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
18 float x_;
20 float y_;
22 float z_;
24 float distance_;
26
29 char* tags_;
35 char* ext_;
37
49typedef void (*nim_chatroom_enter_cb_func)(int64_t room_id,
50 int enter_step,
51 int error_code,
52 const char* result,
53 const char* json_extension,
54 const void* user_data);
55
65typedef void (*nim_chatroom_exit_cb_func)(int64_t room_id, int error_code, int exit_type, const char* json_extension, const void* user_data);
66
75typedef void (*nim_chatroom_link_condition_cb_func)(int64_t room_id, int condition, const char* json_extension, const void* user_data);
76
86typedef void (
87 *nim_chatroom_sendmsg_arc_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
88
97typedef void (*nim_chatroom_receive_msg_cb_func)(int64_t room_id, const char* result, const char* json_extension, const void* user_data);
98
107typedef void (*nim_chatroom_receive_notification_cb_func)(int64_t room_id, const char* result, const char* json_extension, const void* user_data);
108
119typedef void (
120 *nim_chatroom_get_members_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
121
132typedef 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);
133
144typedef void (*nim_chatroom_set_member_attribute_cb_func)(int64_t room_id,
145 int error_code,
146 const char* result,
147 const char* json_extension,
148 const void* user_data);
149
160typedef 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);
161
170typedef void (*nim_chatroom_kick_member_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
171
182typedef void (
183 *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);
184
199 int error_code,
200 uint64_t count,
201 const char* json_extension,
202 const void* user_data);
203
214typedef void (*nim_chatroom_temp_mute_member_by_tag_cb_func)(int64_t room_id,
215 int error_code,
216 const char* result,
217 const char* json_extension,
218 const void* user_data);
219
228typedef void (*nim_chatroom_update_room_info_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
229
238typedef void (*nim_chatroom_update_my_role_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
239
248typedef void (*nim_chatroom_queue_offer_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
249
260typedef void (
261 *nim_chatroom_queue_poll_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
262
273typedef void (
274 *nim_chatroom_queue_list_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
275
286typedef void (
287 *nim_chatroom_queue_header_cb_func)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
288
297typedef void (*nim_chatroom_queue_drop_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
298
307typedef void (*nim_chatroom_queue_init_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
308
317typedef void (*nim_chatroom_query_robots_cb_func)(int rescode, const char* result, const char* json_extension, const void* user_data);
318
328typedef void (*nim_chatroom_batch_update_cb)(int64_t room_id, int error_code, const char* result, const char* json_extension, const void* user_data);
329
338typedef void (*nim_chatroom_update_location_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
339
348typedef void (*nim_chatroom_custom_token_cb_func)(char* auth_token, const uint32_t length, const char* json_params, const void* user_data);
349
360typedef void (*nim_chatroom_request_login_token_cb_func)(const char* app_key,
361 const char* account,
362 char* token,
363 const uint32_t length,
364 const char* json_params,
365 const void* user_data);
366
378typedef void (*nim_chatroom_request_login_extension_cb_func)(const char* app_key,
379 const char* account,
380 char* login_extension,
381 const uint32_t length,
382 const char* json_params,
383 const void* user_data);
384
393typedef void (*nim_chatroom_tags_changed_cb_func)(int64_t room_id, const char* new_tags, const char* json_extension, const void* user_data);
394
403typedef void (*nim_chatroom_update_tags_cb_func)(int64_t room_id, int error_code, const char* json_extension, const void* user_data);
404
411typedef void (*nim_chatroom_sdk_log_cb_func)(const char* log_content, const void* user_data);
412
417static const char* kNIMChatRoomEnterKeyNick = "nick";
419static const char* kNIMChatRoomEnterKeyAvatar = "avatar";
421static const char* kNIMChatRoomEnterKeyExt = "ext";
423static const char* kNIMChatRoomEnterKeyNotifyExt = "notify_ext";
425static const char* kNIMChatRoomEnterLoginTags = "login_tags";
427static const char* kNIMChatRoomEnterNotifyTags = "notify_tags";
429static const char* kNIMChatRoomEnterAuthType = "auth_type";
431static const char* kNIMChatRoomEnterLoginExt = "login_ext";
433static const char* kNIMChatRoomEnterAntiSpamBusinessID = "anti_spam_business_id";
435static const char* kNIMChatRoomEnterEnableLocation = "enable_location";
436static const char* kNIMChatRoomEnterLocationX = "location_x";
437static const char* kNIMChatRoomEnterLocationY = "location_y";
438static const char* kNIMChatRoomEnterLocationZ = "location_z";
439static const char* kNIMChatRoomEnterLocationDistance = "location_distance"; // 进入聊天室的可选填信息Json Keys
441
446static const char* kNIMChatRoomEnterKeyAppKey = "app_key";
450static const char* kNIMChatRoomEnterKeyAppDataPath = "app_data_path";
452static const char* kNIMChatRoomEnterKeyLogLevel = "log_level";
454static const char* kNIMChatRoomEnterKeyAddress = "address";
456static const char* kNIMChatRoomEnterKeyRandomID = "random_id";
458static const char* kNIMChatRoomEnterKeyAccID = "accid";
460static const char* kNIMChatRoomEnterKeyToken = "token"; // 独立聊天室进入的信息Json Keys
462
466// 协议定义
468static const char* kNIMChatRoomMsgKeyType = "msg_type";
470static const char* kNIMChatRoomMsgKeyAttach = "msg_attach";
472static const char* kNIMChatRoomMsgKeyClientMsgid = "client_msg_id";
474static const char* kNIMChatRoomMsgKeyResendFlag = "resend_flag";
476static const char* kNIMChatRoomMsgKeyExt = "ext";
478static const char* kNIMChatRoomMsgKeyAntiSpamEnable = "anti_spam_enable";
480static const char* kNIMChatRoomMsgKeyAntiSpamContent = "anti_spam_content";
482static const char* kNIMChatRoomMsgKeyAntiSpamBizId = "anti_spam_business_id";
484static const char* kNIMChatRoomMsgKeyHistorySave = "history_save";
486static const char* kNIMChatRoomMsgKeyAntiSpamUsingYiDun = "anti_spam_using_yidun";
488static const char* kNIMChatRoomMsgKeyBody = "body";
490static const char* kNIMChatRoomMsgKeyThirdPartyCBEXT = "third_party_callback_ext";
492static const char* kNIMChatRoomMsgKeySubType = "msg_sub_type";
494static const char* kNIMChatRoomMsgKeyYiDunAntiCheating = "yidun_anti_cheating";
496static const char* kNIMChatRoomMsgKeyEnvConfig = "env_config";
498static const char* kNIMChatRoomMsgKeyNotifyTags = "notify_tags";
500static const char* kNIMChatRoomMsgKeyAntiSpamExt = "anti_spam_ext";
502static const char* kNIMChatRoomMsgKeyAntiSpamRes = "anti_spam_res";
504static const char* kNIMChatRoomMsgKeyLocationX = "location_x";
506static const char* kNIMChatRoomMsgKeyLocationY = "location_y";
508static const char* kNIMChatRoomMsgKeyLocationZ = "location_z";
510static const char* kNIMChatRoomMsgKeyToAccids = "to_accids";
512static const char* kNIMChatRoomMsgNeedHighPriorityAck = "need_high_priority_ack";
513
514// 以下定义对于客户端只读
516static const char* kNIMChatRoomMsgKeyRoomID = "room_id";
518static const char* kNIMChatRoomMsgKeyFromAccount = "from_id";
520static const char* kNIMChatRoomMsgKeyTime = "time";
522static const char* kNIMChatRoomMsgKeyFromClientType = "from_client_type";
524static const char* kNIMChatRoomMsgKeyFromNick = "from_nick";
526static const char* kNIMChatRoomMsgKeyFromAvatar = "from_avator";
528static const char* kNIMChatRoomMsgKeyFromExt = "from_ext";
530static const char* kNIMChatRoomMsgKeyHighPriorityFlag = "high_priority_flag";
531
532// 本地定义
534static const char* kNIMChatRoomMsgKeyLocalFilePath = "local_res_path";
536static const char* kNIMChatRoomMsgKeyLocalResId = "res_id";
538static const int iNIMMaxBatchQueue = 100; // 消息结构 Json Keys
540
548};
549
563};
564
576};
577
582static const char* kNIMChatRoomEnterCallbackKeyRoomInfo = "room_info";
584static const char* kNIMChatRoomEnterCallbackKeyMyInfo = "my_info";
585 // 进入回调结果Json Keys
587
592static const char* kNIMChatRoomInfoKeyID = "id";
594static const char* kNIMChatRoomInfoKeyName = "name";
596static const char* kNIMChatRoomInfoKeyAnnouncement = "announcement";
598static const char* kNIMChatRoomInfoKeyBroadcastUrl = "broadcast_url";
600static const char* kNIMChatRoomInfoKeyCreatorID = "creator_id";
602static const char* kNIMChatRoomInfoKeyValidFlag = "valid_flag";
604static const char* kNIMChatRoomInfoKeyExt = "ext";
606static const char* kNIMChatRoomInfoKeyOnlineCount = "online_count";
608static const char* kNIMChatRoomInfoKeyMuteAll = "mute_all";
610static const char* kNIMChatRoomInfoKeyQueuelevel = "queuelevel"; // 聊天室Info Json Keys
612
621};
622
627static const char* kNIMChatRoomMemberInfoKeyRoomID = "room_id";
629static const char* kNIMChatRoomMemberInfoKeyAccID = "account_id";
631static const char* kNIMChatRoomMemberInfoKeyType = "type";
633static const char* kNIMChatRoomMemberInfoKeyLevel = "level";
635static const char* kNIMChatRoomMemberInfoKeyNick = "nick";
637static const char* kNIMChatRoomMemberInfoKeyAvatar = "avatar";
639static const char* kNIMChatRoomMemberInfoKeyExt = "ext";
641static const char* kNIMChatRoomMemberInfoKeyTag = "tags";
643static const char* kNIMChatRoomMemberInfoKeyNotifyTags = "notify_tags";
645static const char* kNIMChatRoomMemberInfoKeyOnlineState = "online_state";
647static const char* kNIMChatRoomMemberInfoKeyGuestFlag = "guest_flag";
649static const char* kNIMChatRoomMemberInfoKeyEnterTimetag = "enter_timetag";
650// 以下字段仅在返回前端时使用
652static const char* kNIMChatRoomMemberInfoKeyBlacklist = "is_blacklist";
654static const char* kNIMChatRoomMemberInfoKeyMuted = "is_muted";
656static const char* kNIMChatRoomMemberInfoKeyValid = "valid";
658static const char* kNIMChatRoomMemberInfoKeyUpdateTimetag = "update_timetag";
660static const char* kNIMChatRoomMemberInfoKeyTempMute = "temp_mute";
662static const char* kNIMChatRoomMemberInfoKeyTempMuteRestDuration = "temp_mute_rest_duration";
664static const char* kNIMChatRoomAntiSpamBusinessID = "anti_spam_business_id";
666static const char* kNIMChatRoomMsgKeyStatistics = "statistics";
668static const char* kNIMChatRoomMsgKeyAPICallingTime = "apiCallingTime";
670static const char* kNIMChatRoomMsgKeyAttachUploadDuration = "attachUploadDuration";
672static const char* kNIMChatRoomMsgKeySendTime = "sendTime"; // 聊天室个人Info Json Keys
674
679static const char* kNIMChatRoomUpdateMyRoleExtNeedSave = "need_save"; // 更新我的信息扩展字段 Json Keys
681
686};
687
692};
693
698};
699
710};
711
718};
719
724static const char* kNIMChatRoomGetMembersKeyType = "type";
726static const char* kNIMChatRoomGetMembersKeyTag = "tag";
728static const char* kNIMChatRoomGetMembersKeyOffset = "offset";
730static const char* kNIMChatRoomGetMembersKeyLimit = "limit"; // 分页获取成员列表条件Keys
732
737static const char* kNIMChatRoomGetMsgHistoryKeyTags = "tags";
739static const char* kNIMChatRoomGetMsgHistoryKeyStartTime = "start";
741static const char* kNIMChatRoomGetMsgHistoryKeyEndTime = "end";
743static const char* kNIMChatRoomGetMsgHistoryKeyLimit = "limit";
745static const char* kNIMChatRoomGetMsgHistoryKeyReverse = "reverse";
747static const char* kNIMChatRoomGetMsgHistoryKeyMsgtypes = "msgtypes"; // 分获取历史消息条件Keys
749
754static const char* kNIMChatRoomSetMemberAttributeKeyAccoutID = "account_id";
756static const char* kNIMChatRoomSetMemberAttributeKeyAttribute = "attribute";
758static const char* kNIMChatRoomSetMemberAttributeKeyOpt = "opt";
760static const char* kNIMChatRoomSetMemberAttributeKeyNotifyExt = "notify_ext"; // 设定聊天室成员标记身份条件Keys
762
767static const char* kChatRoomNotificationKeyData = "data";
769static const char* kChatRoomNotificationKeyID = "id";
771static const char* kChatRoomNotificationDataKeyExt = "ext";
773static const char* kChatRoomNotificationDataKeyOpt = "operator";
775static const char* kChatRoomNotificationDataKeyOptNick = "opeNick";
777static const char* kChatRoomNotificationDataKeyTargetNick = "tarNick";
779static const char* kChatRoomNotificationDataKeyTarget = "target";
781static const char* kChatRoomNotificationDataKeyTempMuteDuration = "muteDuration";
783static const char* kChatRoomNotificationDataKeyMuteFlag = "muted";
785static const char* kChatRoomNotificationDataKeyTempMutedFlag = "tempMuted";
789static const char* kChatRoomNotificationDataKeyQueueChange = "queueChange";
791static const char* kChatRoomNotificationDataKeyTargetTag = "targetTag";
793static const char* kChatRoomNotificationDataKeyMsgTimetag = "msgTime";
795static const char* kChatRoomNotificationDataKeyMsgId = "msgId";
797static const char* kChatRoomNotificationDataKeyTags = "tags";
799 // 聊天室通知Keys
800
805static const char* kNIMChatRoomQueueElementKey = "key";
807static const char* kNIMChatRoomQueueElementValue = "value"; // 聊天室麦序队列元素Keys
809
815static const char* kNIMChatRoomQueueOfferOptionTransient = "transient";
817static const char* kNIMChatRoomQueueOfferOptionElementAccId = "element_accid"; // 聊天室添加、更新队列元素选项
819
830static const char* kNIMChatRoomNotificationQueueChangedType_PARTCLEAR = "PARTCLEAR"; // 麦序队列变更通知扩展字段type取值
832
841static const char* kNIMChatRoomNotificationQueueChangedKeyValue = "content"; // 聊天室通知 麦序队列变更通知扩展字段queueChange keys
843
855static const char* kNIMChatRoomNotificationQueueBatchChangedKeyObject = "kvObject"; // 聊天室通知 麦序队列中有批量变更通知扩展字段queueBatchChange keys
857
889
895};
896
904};
905
913};
914
919// 协议定义
921static const char* kNIMRobotInfoKeyAccid = "accid";
923static const char* kNIMRobotInfoKeyName = "name";
925static const char* kNIMRobotInfoKeyIcon = "icon";
927static const char* kNIMRobotInfoKeyIntro = "intro";
929static const char* kNIMRobotInfoKeyRobotId = "rid";
931static const char* kNIMRobotInfoKeyCreateTime = "create_timetag";
933static const char* kNIMRobotInfoKeyUpdateTime = "update_timetag"; // 机器人信息 Json Keys
935
940static const char* kEnterKeyPublicConfigRoot = "public_config";
942static const char* kEnterKeyDedicatedClusteFlag = "dedicated_cluste_flag";
944static const char* kEnterKeyNegoKeyNECA = "nego_key_neca";
946static const char* kEnterKeyCommNECA = "comm_enca";
948static const char* kEnterKeyHandShakeType = "hand_shake_type";
954static const char* kEnterKeyPrivateConfigRoot = "private_config";
956static const char* kEnterKeyNegoKeyNECAKeyPA = "nego_key_enca_key_parta";
958static const char* kEnterKeyNegoKeyNECAKeyPB = "nego_key_enca_key_partb";
960static const char* kEnterKeyNegoKeyNECAKeyV = "nego_key_enca_key_version";
962typedef const char* NIMChatRoomConfigGetter;
963#define EmptyNIMChatRoomConfigGetter ("")
964#ifdef __cplusplus
965};
966#endif // __cplusplus
967#endif // NIM_CHATROOM_NIM_CHATROOM_DEFINES_NIM_CHATROOM_DEF_H_
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:214
static const char * kNIMChatRoomMsgKeyAntiSpamRes
String, 易盾反垃圾返回的结果字段
Definition: nim_chatroom_def.h:502
static const char * kNIMChatRoomMemberInfoKeyTag
string 聊天室成员所属的 tag 信息
Definition: nim_chatroom_def.h:641
static const char * kNIMChatRoomGetMembersKeyLimit
int 数量
Definition: nim_chatroom_def.h:730
static const char * kNIMChatRoomSetMemberAttributeKeyOpt
boolean: true:是,false:否
Definition: nim_chatroom_def.h:758
static const char * kNIMChatRoomMemberInfoKeyLevel
int 成员级别: >=0表示用户开发者可以自定义的级别
Definition: nim_chatroom_def.h:633
static const char * kNIMChatRoomSetMemberAttributeKeyAccoutID
string 成员ID
Definition: nim_chatroom_def.h:754
NIMChatRoomEnterStep
Definition: nim_chatroom_def.h:898
@ kNIMChatRoomEnterStepRoomAuthing
Definition: nim_chatroom_def.h:902
@ kNIMChatRoomEnterStepInit
Definition: nim_chatroom_def.h:899
@ kNIMChatRoomEnterStepRoomAuthOver
Definition: nim_chatroom_def.h:903
@ kNIMChatRoomEnterStepServerConnecting
Definition: nim_chatroom_def.h:900
@ kNIMChatRoomEnterStepServerConnectOver
Definition: nim_chatroom_def.h:901
static const char * kNIMChatRoomGetMembersKeyTag
获取成员时指定的 tag
Definition: nim_chatroom_def.h:726
static const char * kNIMChatRoomMemberInfoKeyEnterTimetag
long 进入聊天室的时间点,对于离线成员该字段为空
Definition: nim_chatroom_def.h:649
static const char * kNIMChatRoomMsgKeyYiDunAntiCheating
(可选)String, 易盾反垃圾增强反作弊专属字段, 限制json,长度限制1024
Definition: nim_chatroom_def.h:494
static const char * kNIMChatRoomGetMembersKeyType
NIMChatRoomGetMemberType 成员类型
Definition: nim_chatroom_def.h:724
void(* nim_chatroom_tags_changed_cb_func)(int64_t room_id, const char *new_tags, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:393
static const char * kChatRoomNotificationDataKeyExt
string 上层开发自定义的事件通知扩展字段, 必须为可以解析为Json的非格式化的字符串
Definition: nim_chatroom_def.h:771
static const char * kChatRoomNotificationDataKeyTags
string 当通知为 kNIMChatRoomNotificationIdMemberTagChanged 时,代表变更后的 tags 信息
Definition: nim_chatroom_def.h:797
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:238
static const char * kNIMChatRoomEnterLocationDistance
Definition: nim_chatroom_def.h:439
struct _tagNIMChatRoomLocation NIMChatRoomLocation
static const char * kNIMChatRoomNotificationQueueChangedKeyType
string 变更类型,目前有OFFER,POLL,DROP,BATCH_UPDATE 类型
Definition: nim_chatroom_def.h:837
static const char * kChatRoomNotificationDataKeyMuteFlag
int 当通知为 kNIMChatRoomNotificationIdMemberIn才有,代表是否禁言状态,1:是 缺省或0:不是
Definition: nim_chatroom_def.h:783
NIMChatRoomLoginState
Definition: nim_chatroom_def.h:683
@ kNIMChatRoomLoginStateLogin
Definition: nim_chatroom_def.h:684
@ kNIMChatRoomLoginStateUnLogin
Definition: nim_chatroom_def.h:685
static const char * kChatRoomNotificationDataKeyTarget
string json array 被操作者的accid
Definition: nim_chatroom_def.h:779
static const char * kNIMChatRoomEnterKeyAppKey
string, 应用appkey,匿名登录时必填
Definition: nim_chatroom_def.h:446
static const char * kNIMChatRoomEnterLoginExt
string, 登录自定义字段,用于提交给用户的第三方回调服务进行登录检测,不会同步给其他端
Definition: nim_chatroom_def.h:431
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:287
static const char * kNIMChatRoomMsgKeyType
int, 消息类型(NIMChatRoomMsgType)
Definition: nim_chatroom_def.h:468
static const char * kNIMChatRoomMemberInfoKeyMuted
int 是禁言用户
Definition: nim_chatroom_def.h:654
static const char * kEnterKeyNegoKeyNECAKeyPB
string "交换密钥"协议加密算法密钥 part B 自定义时则必填 BigNumHex string 不含0x RSA:EXP,SM2:Y
Definition: nim_chatroom_def.h:958
static const char * kNIMChatRoomMsgKeyHistorySave
int,(可选)该消息是否存储云端历史,可选,0:不是,1:是, 默认1
Definition: nim_chatroom_def.h:484
static const char * kNIMChatRoomInfoKeyQueuelevel
int, 队列管理权限:0:所有人都有权限变更队列,1:只有主播管理员才能操作变更
Definition: nim_chatroom_def.h:610
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:49
static const char * kNIMRobotInfoKeyAccid
string 帐号
Definition: nim_chatroom_def.h:921
void(* nim_chatroom_custom_token_cb_func)(char *auth_token, const uint32_t length, const char *json_params, const void *user_data)
Definition: nim_chatroom_def.h:348
static const char * kChatRoomNotificationDataKeyTempMuteDuration
long 当通知为临时禁言相关时有该值,禁言时kNIMChatRoomNotificationIdMemberTempMute代表本次禁言的时长(秒)
Definition: nim_chatroom_def.h:781
static const char * kChatRoomNotificationKeyData
string 通知内容
Definition: nim_chatroom_def.h:767
NIMChatRoomMemberAttribute
Definition: nim_chatroom_def.h:713
@ kNIMChatRoomMemberAttributeNomalMember
Definition: nim_chatroom_def.h:715
@ kNIMChatRoomMemberAttributeMuteList
Definition: nim_chatroom_def.h:717
@ kNIMChatRoomMemberAttributeBlackList
Definition: nim_chatroom_def.h:716
@ kNIMChatRoomMemberAttributeAdminister
Definition: nim_chatroom_def.h:714
NIMChatRoomGetMemberType
Definition: nim_chatroom_def.h:701
@ kNIMChatRoomGetMemberTypeSolidOL
在线固定成员 查询时时间戳使用"updatetime"
Definition: nim_chatroom_def.h:707
@ kNIMChatRoomGetMemberTypeSolid
固定成员,固定成员,包括创建者,管理员,普通等级用户,受限用户(禁言+黑名单)即使非在线也可以在列表中看到,有数量限制,查询时时间戳使用"updatetime"
Definition: nim_chatroom_def.h:703
@ kNIMChatRoomGetMemberTypeTempOL
非固定成员(反向查询) 查询时时间戳使用"进入聊天室时间"
Definition: nim_chatroom_def.h:709
@ kNIMChatRoomGetMemberTypeTemp
非固定成员,非固定成员,又称临时成员,只有在线时才能在列表中看到,数量无上限,查询时时间戳使用"进入聊天室时间"
Definition: nim_chatroom_def.h:705
NIMChatRoomOnlineState
Definition: nim_chatroom_def.h:689
@ kNIMChatRoomOnlineStateOnline
Definition: nim_chatroom_def.h:691
@ kNIMChatRoomOnlineStateOffline
Definition: nim_chatroom_def.h:690
const char * NIMChatRoomConfigGetter
Definition: nim_chatroom_def.h:962
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:75
static const char * kNIMChatRoomMsgKeyExt
string, 第三方扩展字段, 长度限制4096, 必须为可以解析为Json的非格式化的字符串
Definition: nim_chatroom_def.h:476
static const char * kNIMChatRoomNotificationQueueChangedType_DROP
清理队列操作
Definition: nim_chatroom_def.h:828
static const char * kEnterKeyPrivateConfigRoot
json obj 私有配置root key
Definition: nim_chatroom_def.h:954
NIMChatRoomGuestFlag
Definition: nim_chatroom_def.h:695
@ kNIMChatRoomGuestFlagNoGuest
Definition: nim_chatroom_def.h:696
@ kNIMChatRoomGuestFlagGuest
Definition: nim_chatroom_def.h:697
static const char * kNIMChatRoomNotificationQueueBatchChangedKeyKey
string 变更元素的key
Definition: nim_chatroom_def.h:851
static const char * kNIMChatRoomGetMsgHistoryKeyEndTime
long 结束时间,单位毫秒
Definition: nim_chatroom_def.h:741
static const char * kNIMChatRoomMsgKeyRoomID
long, 消息所属的聊天室id,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:516
static const char * kNIMChatRoomMemberInfoKeyRoomID
long 聊天室id
Definition: nim_chatroom_def.h:627
static const char * kNIMChatRoomQueueElementValue
string 元素value
Definition: nim_chatroom_def.h:807
static const char * kNIMChatRoomMsgKeyBody
string,(可选)文本消息内容(聊天室机器人文本消息)
Definition: nim_chatroom_def.h:488
NIMChatRoomLinkCondition
Definition: nim_chatroom_def.h:891
@ kNIMChatRoomLinkConditionAlive
Definition: nim_chatroom_def.h:892
@ kNIMChatRoomLinkConditionDead
Definition: nim_chatroom_def.h:894
@ kNIMChatRoomLinkConditionDeadAndRetry
Definition: nim_chatroom_def.h:893
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:307
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:132
static const char * kNIMChatRoomEnterNotifyTags
string 登录登出通知的目标标签
Definition: nim_chatroom_def.h:427
static const char * kNIMChatRoomNotificationQueueChangedKeyKey
string 变更元素的key
Definition: nim_chatroom_def.h:839
static const char * kNIMChatRoomMsgKeyNotifyTags
(可选)String 消息的目标标签表达式,参见TagPattern和TagCalculator v8.4.0 新增
Definition: nim_chatroom_def.h:498
static const char * kNIMChatRoomMemberInfoKeyUpdateTimetag
long 固定成员的记录更新时间,用于固定成员列表的排列查询
Definition: nim_chatroom_def.h:658
static const char * kNIMChatRoomMsgKeyAntiSpamExt
(可选)String, 易盾反垃圾扩展字段,限制json,长度限制1024
Definition: nim_chatroom_def.h:500
static const char * kChatRoomNotificationDataKeyMemberInTempMutedDuration
long 当通知为 kNIMChatRoomNotificationIdMemberIn,代表临时禁言时长(秒), 其他通知事件不带该数据
Definition: nim_chatroom_def.h:787
static const char * kNIMChatRoomMsgKeyLocationY
(可选)int, 位置信息 Y 轴坐标
Definition: nim_chatroom_def.h:506
static const char * kNIMChatRoomMsgKeyFromClientType
int,消息发送方客户端类型(NIMChatRoomClientType),服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:522
static const char * kNIMChatRoomInfoKeyBroadcastUrl
string, 视频直播拉流地址
Definition: nim_chatroom_def.h:598
static const char * kNIMRobotInfoKeyRobotId
string 机器人ID
Definition: nim_chatroom_def.h:929
static const char * kNIMChatRoomNotificationQueueChangedKeyValue
string 变更元素的内容
Definition: nim_chatroom_def.h:841
void(* nim_chatroom_request_login_extension_cb_func)(const char *app_key, const char *account, char *login_extension, const uint32_t length, const char *json_params, const void *user_data)
Definition: nim_chatroom_def.h:378
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:183
static const char * kNIMChatRoomMemberInfoKeyNick
string 聊天室内的昵称字段,预留字段, 可从Uinfo中取
Definition: nim_chatroom_def.h:635
static const char * kNIMChatRoomMsgKeyHighPriorityFlag
int, 高优先级消息标记,1:是; 非高优先级消息不带该字段,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:530
static const int iNIMMaxBatchQueue
int 聊天室更新的批量最大数
Definition: nim_chatroom_def.h:538
static const char * kNIMChatRoomMemberInfoKeyNotifyTags
string 聊天室成员登录时指定的 notify_tags 信息
Definition: nim_chatroom_def.h:643
static const char * kNIMChatRoomInfoKeyOnlineCount
int, 当前在线用户数量
Definition: nim_chatroom_def.h:606
static const char * kEnterKeyNegoKeyNECAKeyV
int 非对称加密算法的 key version 自定义时则必填
Definition: nim_chatroom_def.h:960
static const char * kNIMChatRoomEnterKeyAvatar
string, (匿名登录时必填)设置后通过获取聊天室成员信息接口可以获取该数据
Definition: nim_chatroom_def.h:419
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:107
static const char * kNIMRobotInfoKeyIcon
string 头像
Definition: nim_chatroom_def.h:925
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:328
static const char * kNIMChatRoomEnterKeyNick
string, (匿名登录时必填)进入聊天室后展示的昵称,选填,聊天室成员收到聊天室进入通知中可以获取该数据
Definition: nim_chatroom_def.h:417
static const char * kNIMChatRoomInfoKeyName
string, 聊天室名称
Definition: nim_chatroom_def.h:594
static const char * kNIMChatRoomEnterKeyRandomID
int,是否开启随机ID模式,默认为关闭(0),建议默认值
Definition: nim_chatroom_def.h:456
NIMChatRoomClientType
Definition: nim_chatroom_def.h:566
@ kNIMChatRoomClientTypeRestAPI
Definition: nim_chatroom_def.h:573
@ kNIMChatRoomClientTypeDefault
Definition: nim_chatroom_def.h:567
@ kNIMChatRoomClientTypeWeb
Definition: nim_chatroom_def.h:572
@ kNIMChatRoomClientTypeAndroid
Definition: nim_chatroom_def.h:568
@ kNIMChatRoomClientTypeiOS
Definition: nim_chatroom_def.h:569
@ kNIMChatRoomClientTypeMacOS
Definition: nim_chatroom_def.h:574
@ kNIMChatRoomClientTypePCWindows
Definition: nim_chatroom_def.h:570
@ kNIMChatRoomClientTypeWindowsPhone
Definition: nim_chatroom_def.h:571
@ kNIMChatRoomClientTypeHarmonyOS
Definition: nim_chatroom_def.h:575
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:228
void(* nim_chatroom_sdk_log_cb_func)(const char *log_content, const void *user_data)
Definition: nim_chatroom_def.h:411
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:317
static const char * kNIMChatRoomNotificationQueueChangedType_OFFER
放元素到新队列
Definition: nim_chatroom_def.h:824
static const char * kNIMChatRoomEnterKeyAccID
string,登录聊天室的账号非匿名模式下使用
Definition: nim_chatroom_def.h:458
static const char * kNIMChatRoomEnterKeyExt
string, 聊天室可用的扩展字段,必须为可以解析为Json的非格式化的字符串,选填,设置后通过获取聊天室成员信息接口可以获取该数据
Definition: nim_chatroom_def.h:421
static const char * kChatRoomNotificationDataKeyMsgId
string 当通知为 kNIMChatRoomNotificationIdRecallMessage,代表被撤回消息的消息 ID
Definition: nim_chatroom_def.h:795
static const char * kNIMChatRoomMemberInfoKeyValid
int 记录有效标记位
Definition: nim_chatroom_def.h:656
static const char * kNIMChatRoomMsgKeySendTime
uint64_t, send_time
Definition: nim_chatroom_def.h:672
static const char * kEnterKeyPublicConfigRoot
json obj 公共配置root key
Definition: nim_chatroom_def.h:940
static const char * kEnterKeyCommNECA
int 通信加密算法 {1(RC4),2(AES128),4(SM4)} def:1(RC4) 对称加密
Definition: nim_chatroom_def.h:946
static const char * kNIMChatRoomMemberInfoKeyBlacklist
int 是黑名单
Definition: nim_chatroom_def.h:652
static const char * kNIMChatRoomGetMsgHistoryKeyMsgtypes
array:数组 要查询的消息类型,取值NIMChatRoomMsgType中所枚举类型
Definition: nim_chatroom_def.h:747
void(* nim_chatroom_request_login_token_cb_func)(const char *app_key, const char *account, char *token, const uint32_t length, const char *json_params, const void *user_data)
Definition: nim_chatroom_def.h:360
static const char * kNIMChatRoomEnterAuthType
int 鉴权方式,0表示最初的loginToken的校验方式,1表示基于appSecret计算的token鉴权方式,2表示基于第三方回调的token鉴权方式,默认0
Definition: nim_chatroom_def.h:429
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:87
static const char * kNIMChatRoomMsgKeyFromAvatar
string, 消息发送方头像,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:526
static const char * kNIMChatRoomMsgKeyAntiSpamContent
string, (可选)开发者自定义的反垃圾字段, 长度限制2048
Definition: nim_chatroom_def.h:480
static const char * kNIMChatRoomMsgKeyEnvConfig
(可选)String, 自定义抄送配置 v8.0.0 新增
Definition: nim_chatroom_def.h:496
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:261
static const char * kNIMChatRoomMsgKeyLocalFilePath
string, 暂时不用,多媒体消息资源本地绝对路径,SDK本地维护,发送多媒体消息时必填
Definition: nim_chatroom_def.h:534
static const char * kNIMChatRoomMemberInfoKeyTempMute
int 临时禁言
Definition: nim_chatroom_def.h:660
static const char * kNIMRobotInfoKeyIntro
string 介绍
Definition: nim_chatroom_def.h:927
static const char * kNIMChatRoomQueueElementKey
string 元素key
Definition: nim_chatroom_def.h:805
static const char * kNIMChatRoomGetMsgHistoryKeyTags
array 查询历史消息指定的 tags
Definition: nim_chatroom_def.h:737
static const char * kNIMChatRoomNotificationQueueChangedType_POLL
从队列中取出新队列
Definition: nim_chatroom_def.h:826
static const char * kNIMChatRoomGetMsgHistoryKeyLimit
int 本次返回的消息数量
Definition: nim_chatroom_def.h:743
static const char * kNIMChatRoomMsgNeedHighPriorityAck
(可选)int, 高优消息是否需要ack,0:不需要,1:需要。默认为0
Definition: nim_chatroom_def.h:512
struct _tagNIMChatRoomUpdateTagsInfo NIMChatRoomUpdateTagsInfo
NIMChatRoomMsgType
Definition: nim_chatroom_def.h:551
@ kNIMChatRoomMsgTypeImage
Definition: nim_chatroom_def.h:553
@ kNIMChatRoomMsgTypeTips
Definition: nim_chatroom_def.h:560
@ kNIMChatRoomMsgTypeCustom
Definition: nim_chatroom_def.h:561
@ kNIMChatRoomMsgTypeText
Definition: nim_chatroom_def.h:552
@ kNIMChatRoomMsgTypeFile
Definition: nim_chatroom_def.h:558
@ kNIMChatRoomMsgTypeLocation
Definition: nim_chatroom_def.h:556
@ kNIMChatRoomMsgTypeNotification
Definition: nim_chatroom_def.h:557
@ kNIMChatRoomMsgTypeAudio
Definition: nim_chatroom_def.h:554
@ kNIMChatRoomMsgTypeRobot
Definition: nim_chatroom_def.h:559
@ kNIMChatRoomMsgTypeVideo
Definition: nim_chatroom_def.h:555
@ kNIMChatRoomMsgTypeUnknown
Definition: nim_chatroom_def.h:562
static const char * kNIMChatRoomMsgKeyResendFlag
int,消息重发标记位,第一次发送0,重发1
Definition: nim_chatroom_def.h:474
static const char * kNIMChatRoomEnterLoginTags
string array 登录标签,可以设置多个,json array 格式,例子:["tag1", "tag2"]
Definition: nim_chatroom_def.h:425
static const char * kNIMChatRoomEnterKeyAppDataPath
Definition: nim_chatroom_def.h:450
static const char * kNIMChatRoomMemberInfoKeyExt
string 开发者扩展字段, 长度限制2k, 必须为可以解析为Json的非格式化的字符串
Definition: nim_chatroom_def.h:639
NIMChatRoomExitReason
Definition: nim_chatroom_def.h:614
@ kNIMChatRoomExitReasonExit
Definition: nim_chatroom_def.h:615
@ kNIMChatRoomExitReasonBeBlacklisted
Definition: nim_chatroom_def.h:620
@ kNIMChatRoomExitReasonIllegalState
Definition: nim_chatroom_def.h:619
@ kNIMChatRoomExitReasonRoomInvalid
Definition: nim_chatroom_def.h:616
@ kNIMChatRoomExitReasonKickByMultiSpot
Definition: nim_chatroom_def.h:618
@ kNIMChatRoomExitReasonKickByManager
Definition: nim_chatroom_def.h:617
static const char * kNIMChatRoomEnterEnableLocation
int 登录时使用的位置信息
Definition: nim_chatroom_def.h:435
static const char * kNIMChatRoomMsgKeyStatistics
string, kNIMChatRoomMsgKeyStatistics
Definition: nim_chatroom_def.h:666
static const char * kNIMChatRoomMsgKeyAntiSpamUsingYiDun
int, (可选) 单条消息是否使用易盾反垃圾 0:(在开通易盾的情况下)不过易盾反垃圾
Definition: nim_chatroom_def.h:486
static const char * kNIMRobotInfoKeyName
string 名字
Definition: nim_chatroom_def.h:923
static const char * kChatRoomNotificationDataKeyMsgTimetag
int64_t 当通知为 kNIMChatRoomNotificationIdRecallMessage,代表被撤回消息的消息时间戳
Definition: nim_chatroom_def.h:793
static const char * kNIMChatRoomInfoKeyAnnouncement
string, 聊天室公告
Definition: nim_chatroom_def.h:596
static const char * kNIMChatRoomMsgKeyAntiSpamBizId
string, (可选)用户配置的对某些单条消息另外的反垃圾的业务ID
Definition: nim_chatroom_def.h:482
static const char * kNIMChatRoomMsgKeyThirdPartyCBEXT
(可选)string第三方回调回来的自定义扩展字段 v7.8 新增
Definition: nim_chatroom_def.h:490
static const char * kChatRoomNotificationDataKeyOptNick
string 操作者的账号nick
Definition: nim_chatroom_def.h:775
static const char * kNIMChatRoomQueueOfferOptionTransient
bool (可选参数)true 表示当提交这个新元素的用户从聊天室掉线或退出的时候,需要删除这个元素;默认 false 表示不删除
Definition: nim_chatroom_def.h:815
static const char * kNIMChatRoomMsgKeyToAccids
(可选)string, json array,消息接受者,如果设置了本字段,且不为空,则本消息为聊天室定向消息(聊天室定向消息不会存历史)
Definition: nim_chatroom_def.h:510
NIMSDKLogLevel
Definition: nim_chatroom_def.h:542
@ kNIMSDKLogLevelFatal
Definition: nim_chatroom_def.h:543
@ kNIMSDKLogLevelWarn
Definition: nim_chatroom_def.h:545
@ kNIMSDKLogLevelPro
Definition: nim_chatroom_def.h:547
@ kNIMSDKLogLevelApp
Definition: nim_chatroom_def.h:546
@ kNIMSDKLogLevelError
Definition: nim_chatroom_def.h:544
static const char * kNIMChatRoomEnterKeyLogLevel
int,匿名登录时选填,定义见NIMSDKLogLevel(选填,SDK默认的内置级别为kNIMSDKLogLevelPro)
Definition: nim_chatroom_def.h:452
static const char * kNIMChatRoomSetMemberAttributeKeyAttribute
NIMChatRoomMemberAttribute
Definition: nim_chatroom_def.h:756
static const char * kNIMChatRoomQueueOfferOptionElementAccId
string (可选参数)队列元素所属账号,默认不传表示队列元素属于当前操作人,管理员可以指定队列元素归属于其他合法账号
Definition: nim_chatroom_def.h:817
static const char * kChatRoomNotificationDataKeyTargetTag
string 当通知为 kChatRoomNotificationIdTagTempMuteAdd 或 kChatRoomNotificationIdTagTempMuteRemove,代表被禁言的目标...
Definition: nim_chatroom_def.h:791
static const char * kNIMRobotInfoKeyCreateTime
long 创建时间戳 毫秒
Definition: nim_chatroom_def.h:931
static const char * kNIMChatRoomUpdateMyRoleExtNeedSave
bool 我的资料是否需要持久化保存,默认false
Definition: nim_chatroom_def.h:679
static const char * kNIMChatRoomMemberInfoKeyType
成员类型, -1:受限用户; 0:普通;1:创建者;2:管理员;3:临时用户,非固定成员;4:匿名非注册用户,非云信注册用户
Definition: nim_chatroom_def.h:631
static const char * kNIMChatRoomNotificationQueueBatchChangedKeyValue
string 变更元素的内容
Definition: nim_chatroom_def.h:853
static const char * kNIMChatRoomEnterKeyAddress
string array,聊天室地址,地址通过应用服务器接口获取
Definition: nim_chatroom_def.h:454
static const char * kNIMChatRoomMemberInfoKeyTempMuteRestDuration
long 临时禁言的解除时长,单位秒
Definition: nim_chatroom_def.h:662
static const char * kEnterKeyDedicatedClusteFlag
int 是否为专属集群 1:是 0: 否
Definition: nim_chatroom_def.h:942
static const char * kNIMChatRoomMsgKeyLocalResId
string, 暂时不用,多媒体资源id,发送方选填,接收方收到的是客户端消息id
Definition: nim_chatroom_def.h:536
static const char * kEnterKeyNegoKeyNECAKeyPA
string "交换密钥"协议加密算法密钥 part A 自定义时则必填 BigNumHex string 不含0x RSA:module,SM2:X
Definition: nim_chatroom_def.h:956
static const char * kNIMChatRoomMsgKeySubType
(可选)int,消息的子类型,客户端定义,服务器透传
Definition: nim_chatroom_def.h:492
static const char * kNIMChatRoomAntiSpamBusinessID
string 反垃圾
Definition: nim_chatroom_def.h:664
NIMChatRoomProxyType
Definition: nim_chatroom_def.h:907
@ kNIMChatRoomProxySocks4
Definition: nim_chatroom_def.h:910
@ kNIMChatRoomProxySocks4a
Definition: nim_chatroom_def.h:911
@ kNIMChatRoomProxyHttp11
Definition: nim_chatroom_def.h:909
@ kNIMChatRoomProxySocks5
Definition: nim_chatroom_def.h:912
@ kNIMChatRoomProxyNone
Definition: nim_chatroom_def.h:908
static const char * kNIMChatRoomMemberInfoKeyOnlineState
NIMChatRoomOnlineState 成员是否处于在线状态, 仅特殊成员才可能离线, 对游客/匿名用户而言只能是在线
Definition: nim_chatroom_def.h:645
static const char * kNIMChatRoomSetMemberAttributeKeyNotifyExt
string 自定义的事件通知扩展字段, 必须为可以解析为Json的非格式化的字符串
Definition: nim_chatroom_def.h:760
static const char * kNIMChatRoomMsgKeyAttach
string, 消息内容,长度限制2048, 如果约定的是json字符串,必须为可以解析为json的非格式化的字符串
Definition: nim_chatroom_def.h:470
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:120
static const char * kNIMRobotInfoKeyUpdateTime
long 更新时间戳 毫秒
Definition: nim_chatroom_def.h:933
NIMChatRoomNotificationId
Definition: nim_chatroom_def.h:860
@ kNIMChatRoomNotificationIdMemberKicked
Definition: nim_chatroom_def.h:873
@ kNIMChatRoomNotificationIdInfoUpdated
Definition: nim_chatroom_def.h:872
@ kNIMChatRoomNotificationIdQueueBatchOffer
聊天室麦序队列中有批量增加通知消息 "ext" :{"_e":"BATCH_OFFER","elements":[{"nick":"ddd","accid":"ljmt",...
Definition: nim_chatroom_def.h:885
@ kNIMChatRoomNotificationIdMemberTempUnMute
Definition: nim_chatroom_def.h:875
@ kNIMChatRoomNotificationIdClosed
Definition: nim_chatroom_def.h:871
@ kNIMChatRoomNotificationIdMemberTagChanged
聊天室中有成员 tags 变更
Definition: nim_chatroom_def.h:887
@ kNIMChatRoomNotificationIdMemberExit
Definition: nim_chatroom_def.h:862
@ kNIMChatRoomNotificationIdAddManager
Definition: nim_chatroom_def.h:867
@ kNIMChatRoomNotificationIdQueueBatchChanged
Definition: nim_chatroom_def.h:880
@ kNIMChatRoomNotificationIdTagTempMuteAdd
Definition: nim_chatroom_def.h:881
@ kNIMChatRoomNotificationIdRemoveManager
Definition: nim_chatroom_def.h:868
@ kNIMChatRoomNotificationIdMemberTempMute
Definition: nim_chatroom_def.h:874
@ kNIMChatRoomNotificationIdQueueChanged
Definition: nim_chatroom_def.h:877
@ kNIMChatRoomNotificationIdMemberIn
Definition: nim_chatroom_def.h:861
@ kNIMChatRoomNotificationIdRemoveMute
Definition: nim_chatroom_def.h:866
@ kNIMChatRoomNotificationIdRemoveBlack
Definition: nim_chatroom_def.h:864
@ kNIMChatRoomNotificationIdTagTempMuteRemove
Definition: nim_chatroom_def.h:882
@ kNIMChatRoomNotificationIdMyRoleUpdated
Definition: nim_chatroom_def.h:876
@ kNIMChatRoomNotificationIdRoomDeMuted
Definition: nim_chatroom_def.h:879
@ kNIMChatRoomNotificationIdRecallMessage
Definition: nim_chatroom_def.h:883
@ kNIMChatRoomNotificationIdAddMute
Definition: nim_chatroom_def.h:865
@ kNIMChatRoomNotificationIdAddFixed
Definition: nim_chatroom_def.h:869
@ kNIMChatRoomNotificationIdRemoveFixed
Definition: nim_chatroom_def.h:870
@ kNIMChatRoomNotificationIdRoomMuted
Definition: nim_chatroom_def.h:878
@ kNIMChatRoomNotificationIdAddBlack
Definition: nim_chatroom_def.h:863
static const char * kNIMChatRoomEnterKeyToken
string,登录聊天室的密码非匿名模式下使用
Definition: nim_chatroom_def.h:460
static const char * kNIMChatRoomMemberInfoKeyAvatar
string 聊天室内的头像,预留字段, 可从Uinfo中取icon
Definition: nim_chatroom_def.h:637
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:97
static const char * kNIMChatRoomMsgKeyLocationX
(可选)int, 位置信息 X 轴坐标
Definition: nim_chatroom_def.h:504
static const char * kNIMChatRoomInfoKeyValidFlag
int, 聊天室有效标记, 1:有效,0:无效
Definition: nim_chatroom_def.h:602
static const char * kNIMChatRoomEnterLocationX
Definition: nim_chatroom_def.h:436
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:248
void(* nim_chatroom_update_location_cb_func)(int64_t room_id, int error_code, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:338
static const char * kChatRoomNotificationDataKeyOpt
string 操作者的账号accid
Definition: nim_chatroom_def.h:773
static const char * kChatRoomNotificationDataKeyTargetNick
string json array 被操作者的nick列表
Definition: nim_chatroom_def.h:777
static const char * kNIMChatRoomEnterLocationY
Definition: nim_chatroom_def.h:437
static const char * kNIMChatRoomInfoKeyExt
string, 第三方扩展字段, 必须为可以解析为Json的非格式化的字符串, 长度4k
Definition: nim_chatroom_def.h:604
static const char * kNIMChatRoomMsgKeyTime
long, 消息发送的时间戳(毫秒),服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:520
static const char * kNIMChatRoomGetMsgHistoryKeyStartTime
long 开始时间,单位毫秒
Definition: nim_chatroom_def.h:739
static const char * kNIMChatRoomNotificationQueueBatchChangedKeyObject
map 变更元素的内容
Definition: nim_chatroom_def.h:855
static const char * kNIMChatRoomInfoKeyMuteAll
int, 聊天室禁言标志 1:禁言,0:解除禁言
Definition: nim_chatroom_def.h:608
static const char * kNIMChatRoomNotificationQueueBatchChangedKeyType
string 变更类型,目前有OFFER,POLL,DROP,PARTCLEAR四个类型
Definition: nim_chatroom_def.h:849
static const char * kNIMChatRoomEnterCallbackKeyMyInfo
json value, 见聊天室个人Info Json Keys
Definition: nim_chatroom_def.h:584
static const char * kNIMChatRoomNotificationQueueChangedType_PARTCLEAR
部分清理操作(发生在提交元素的用户掉线时,清理这个用户对应的key
Definition: nim_chatroom_def.h:830
static const char * kNIMChatRoomGetMsgHistoryKeyReverse
boolean: true:按时间正序起查,正序排列,false:按时间逆序起查,逆序排列
Definition: nim_chatroom_def.h:745
static const char * kNIMChatRoomEnterLocationZ
Definition: nim_chatroom_def.h:438
static const char * kChatRoomNotificationDataKeyTempMutedFlag
int 当通知为 kNIMChatRoomNotificationIdMemberIn才有,代表是否临时禁言状态,1:是 缺省或0:不是
Definition: nim_chatroom_def.h:785
static const char * kNIMChatRoomMemberInfoKeyGuestFlag
NIMChatRoomGuestFlag 是否是普通游客类型,0:不是游客,1:是游客; 游客身份在聊天室中没有持久化, 只有在线时才会有内存状态
Definition: nim_chatroom_def.h:647
static const char * kNIMChatRoomEnterKeyNotifyExt
string, 进入聊天室通知开发者扩展字段,必须为可以解析为Json的非格式化的字符串,选填,聊天室成员收到聊天室进入通知中可以获取该数据
Definition: nim_chatroom_def.h:423
static const char * kNIMChatRoomMsgKeyAttachUploadDuration
uint64_t, attach_upload_duration
Definition: nim_chatroom_def.h:670
static const char * kEnterKeyHandShakeType
int 登录时使用的握手协议类型 0:支持配置多种对称与非对称加密算法,1:只支持RAS + RC4,缺省 0
Definition: nim_chatroom_def.h:948
static const char * kNIMChatRoomMsgKeyAntiSpamEnable
int, 是否需要过易盾反垃圾, 0:不需要,1:需要, 默认0
Definition: nim_chatroom_def.h:478
static const char * kNIMChatRoomMsgKeyClientMsgid
string,客户端消息id
Definition: nim_chatroom_def.h:472
static const char * kNIMChatRoomMsgKeyLocationZ
(可选)int, 位置信息 Z 轴坐标
Definition: nim_chatroom_def.h:508
static const char * kNIMChatRoomMemberInfoKeyAccID
string 成员账号
Definition: nim_chatroom_def.h:629
static const char * kNIMChatRoomMsgKeyFromAccount
string, 消息发送者的账号,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:518
static const char * kNIMChatRoomEnterAntiSpamBusinessID
string, 反垃圾相关业务id
Definition: nim_chatroom_def.h:433
static const char * kNIMChatRoomMsgKeyFromExt
string, 消息发送方身份扩展字段,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:528
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:274
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:297
static const char * kNIMChatRoomInfoKeyCreatorID
string, 聊天室创建者账号
Definition: nim_chatroom_def.h:600
static const char * kNIMChatRoomGetMembersKeyOffset
long 时间戳,填0会使用当前服务器最新时间开始查询,即第一页
Definition: nim_chatroom_def.h:728
static const char * kChatRoomNotificationKeyID
string 通知类型ID
Definition: nim_chatroom_def.h:769
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:170
static const char * kNIMChatRoomEnterCallbackKeyRoomInfo
json value, 见聊天室Info Json Keys
Definition: nim_chatroom_def.h:582
static const char * kNIMChatRoomInfoKeyID
long, 聊天室ID
Definition: nim_chatroom_def.h:592
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:160
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:144
static const char * kNIMChatRoomMsgKeyAPICallingTime
uint64, api calling time
Definition: nim_chatroom_def.h:668
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:65
void(* nim_chatroom_update_tags_cb_func)(int64_t room_id, int error_code, const char *json_extension, const void *user_data)
Definition: nim_chatroom_def.h:403
static const char * kEnterKeyNegoKeyNECA
int "交换密钥"协议加密算法 {1(RSA),2(SM2)}, def:1(RSA) 非对称加密
Definition: nim_chatroom_def.h:944
static const char * kChatRoomNotificationDataKeyQueueChange
string 当通知为 kNIMChatRoomNotificationIdQueueChange,代表队列变更具体内容,内容解析 参考麦序队列变更通知扩展字段queueChange
Definition: nim_chatroom_def.h:789
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:198
static const char * kNIMChatRoomMsgKeyFromNick
string, 消息发送方昵称,服务器填写,发送方不需要填写
Definition: nim_chatroom_def.h:524
NIM SDK 及 NIM ChatRoom SDK 公用头文件
Definition: nim_chatroom_def.h:16
float z_
位置信息 z 坐标
Definition: nim_chatroom_def.h:22
float x_
位置信息 x 坐标
Definition: nim_chatroom_def.h:18
float distance_
距离信息,仅在更新位置信息时会用到,发送消息、加入房间不需要填写
Definition: nim_chatroom_def.h:24
float y_
位置信息 y 坐标
Definition: nim_chatroom_def.h:20
Definition: nim_chatroom_def.h:27
int need_notify_
1表示需要通知,如果需要通知,则会产生一条通知,新增NotifyEventId=325
Definition: nim_chatroom_def.h:33
char * tags_
标签,可以设置多个,json_array格式,例子:["tag1", "tag2"]
Definition: nim_chatroom_def.h:29
char * ext_
通知扩展字段
Definition: nim_chatroom_def.h:35
char * notify_target_tags_
更新标签的通知的目标标签,是一个标签表达式
Definition: nim_chatroom_def.h:31