NIM SDK API  9.0.0
nim_qchat_public_def.h
Go to the documentation of this file.
1 
11 #ifndef __NIM_QCHAT_PUBLIC_DEF_H__
12 #define __NIM_QCHAT_PUBLIC_DEF_H__
13 
14 #include <cstdint>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
21  kNIMQChatChannelViewModePublic = 0, // 公开模式
22  kNIMQChatChannelViewModePrivate = 1, // 私密模式
23 };
24 
29 };
30 
38 };
39 
41  uint32_t res_code; // 操作结果, 参考NIMResCode
42  void* user_data; // 自定义用户数据
43 };
44 
47  uint64_t server_id; // server id
48  uint64_t channel_id; // channel id
49 };
50 
52  char* postscript; // 操作附言
53  char* extension; // 操作扩展字段
54  char* push_content; // 推送文案
55  char* push_payload; // 推送payload
56  // 以下字段仅在收到消息时有效
57  char* operator_id;
58  char* operator_client_type;
59 };
60 
63  bool has_more;
64  uint64_t next_timestamp;
65 };
66 
68 enum NIMResCode {
69  // 通用错误码
81  kNIMResExist = 417,
89  // 群错误码
102  // 数据整解编错误代码
106  kNIMResInBlack = 7101,
107  // 客户端自定义的错误号
108  kNIMLocalRes = 10000,
111  // 客户端自定义的消息错误号
122  // 客户端自定义的RTS错误号
133  // 客户端自定义的api调用问题
140 };
141 
142 #ifdef __cplusplus
143 }
144 #endif
145 
146 #endif // __NIM_QCHAT_PUBLIC_DEF_H__
kNIMLocalResMsgNosDownloadCancel
@ kNIMLocalResMsgNosDownloadCancel
Definition: nim_qchat_public_def.h:113
kNIMLocalResMsgNosUploadCancel
@ kNIMLocalResMsgNosUploadCancel
Definition: nim_qchat_public_def.h:112
kNIMResExist
@ kNIMResExist
Definition: nim_qchat_public_def.h:81
NIMQChatBaseResp
Definition: nim_qchat_public_def.h:40
kNIMResUidPassError
@ kNIMResUidPassError
Definition: nim_qchat_public_def.h:73
kNIMResTeamApplySuccess
@ kNIMResTeamApplySuccess
Definition: nim_qchat_public_def.h:97
kNIMLocalResRtsIdNotExist
@ kNIMLocalResRtsIdNotExist
Definition: nim_qchat_public_def.h:124
kNIMLocalRes
@ kNIMLocalRes
Definition: nim_qchat_public_def.h:108
kNIMResRoomBlackBeOut
@ kNIMResRoomBlackBeOut
Definition: nim_qchat_public_def.h:130
kNIMResRoomLocalNeedRequestAgain
@ kNIMResRoomLocalNeedRequestAgain
Definition: nim_qchat_public_def.h:109
NIMQChatMessageUpdateInfo
Definition: nim_qchat_public_def.h:51
kNIMLocalResRtsChannelNotExist
@ kNIMLocalResRtsChannelNotExist
Definition: nim_qchat_public_def.h:127
kNIMResFrequently
@ kNIMResFrequently
Definition: nim_qchat_public_def.h:80
kNIMResTeamMemberLimit
@ kNIMResTeamMemberLimit
Definition: nim_qchat_public_def.h:101
kNIMResTeamAlreadyIn
@ kNIMResTeamAlreadyIn
Definition: nim_qchat_public_def.h:98
kNIMResExceedLimit
@ kNIMResExceedLimit
Definition: nim_qchat_public_def.h:87
kNIMLocalResExceedLimit
@ kNIMLocalResExceedLimit
Definition: nim_qchat_public_def.h:119
kNIMResVersionError
@ kNIMResVersionError
Definition: nim_qchat_public_def.h:72
kNIMResForcePushCountLimit
@ kNIMResForcePushCountLimit
Definition: nim_qchat_public_def.h:100
kNIMResNotExist
@ kNIMResNotExist
Definition: nim_qchat_public_def.h:75
kNIMResInvalid
@ kNIMResInvalid
Definition: nim_qchat_public_def.h:88
kNIMResForbidden
@ kNIMResForbidden
Definition: nim_qchat_public_def.h:74
NIMQChatChannelViewMode
NIMQChatChannelViewMode
Definition: nim_qchat_public_def.h:20
kNIMLocalResMsgFileNotExist
@ kNIMLocalResMsgFileNotExist
Definition: nim_qchat_public_def.h:115
kNIMResTeamUserStatusErr
@ kNIMResTeamUserStatusErr
Definition: nim_qchat_public_def.h:96
kNIMLocalResImportMsgDBFailed
@ kNIMLocalResImportMsgDBFailed
Definition: nim_qchat_public_def.h:121
kNIMLocalResRtsStatusError
@ kNIMLocalResRtsStatusError
Definition: nim_qchat_public_def.h:126
kNIMLocalResMsgSendNosError
@ kNIMLocalResMsgSendNosError
Definition: nim_qchat_public_def.h:118
kNIMResRoomAllMuted
@ kNIMResRoomAllMuted
Definition: nim_qchat_public_def.h:132
kNIMLocalResNetworkError
@ kNIMLocalResNetworkError
Definition: nim_qchat_public_def.h:110
kNIMResOverrun
@ kNIMResOverrun
Definition: nim_qchat_public_def.h:82
kNIMLocalResAPIErrorRunOutOfLinkAddress
@ kNIMLocalResAPIErrorRunOutOfLinkAddress
Definition: nim_qchat_public_def.h:139
kNIMLocalResCheckMsgDBFailed
@ kNIMLocalResCheckMsgDBFailed
Definition: nim_qchat_public_def.h:120
kNIMLocalResRtsError
@ kNIMLocalResRtsError
Definition: nim_qchat_public_def.h:123
kNIMResUnknownError
@ kNIMResUnknownError
Definition: nim_qchat_public_def.h:84
kNIMResTooBuzy
@ kNIMResTooBuzy
Definition: nim_qchat_public_def.h:86
kNIMQChatSubscribeOpeTypeSubscribe
@ kNIMQChatSubscribeOpeTypeSubscribe
Definition: nim_qchat_public_def.h:27
kNIMLocalResAPIErrorInitUndone
@ kNIMLocalResAPIErrorInitUndone
Definition: nim_qchat_public_def.h:134
kNIMResTimeoutError
@ kNIMResTimeoutError
Definition: nim_qchat_public_def.h:77
kNIMQChatSubscribeTypeUnreadStatus
@ kNIMQChatSubscribeTypeUnreadStatus
Definition: nim_qchat_public_def.h:36
kNIMQChatSubscribeOpeTypeUnsubscribe
@ kNIMQChatSubscribeOpeTypeUnsubscribe
Definition: nim_qchat_public_def.h:28
kNIMLocalResAPIErrorVersionError
@ kNIMLocalResAPIErrorVersionError
Definition: nim_qchat_public_def.h:137
kNIMLocalResRtsVChatExist
@ kNIMLocalResRtsVChatExist
Definition: nim_qchat_public_def.h:125
kNIMQChatSubscribeTypeServerNotification
@ kNIMQChatSubscribeTypeServerNotification
Definition: nim_qchat_public_def.h:37
kNIMQChatSubscribeTypeMsg
@ kNIMQChatSubscribeTypeMsg
Definition: nim_qchat_public_def.h:34
kNIMResSuccess
@ kNIMResSuccess
Definition: nim_qchat_public_def.h:71
kNIMLocalResAPIErrorChatroomMixError
@ kNIMLocalResAPIErrorChatroomMixError
Definition: nim_qchat_public_def.h:138
kNIMResTeamECountLimit
@ kNIMResTeamECountLimit
Definition: nim_qchat_public_def.h:90
kNIMResServerDataError
@ kNIMResServerDataError
Definition: nim_qchat_public_def.h:85
kNIMResInBlack
@ kNIMResInBlack
Definition: nim_qchat_public_def.h:106
kNIMLocalResAPIErrorLogined
@ kNIMLocalResAPIErrorLogined
Definition: nim_qchat_public_def.h:136
NIMQChatSubscribeOpeType
NIMQChatSubscribeOpeType
Definition: nim_qchat_public_def.h:26
kNIMLocalResAPIErrorLoginUndone
@ kNIMLocalResAPIErrorLoginUndone
Definition: nim_qchat_public_def.h:135
NIMQChatChannelIDInfo
Definition: nim_qchat_public_def.h:46
kNIMResEPacket
@ kNIMResEPacket
Definition: nim_qchat_public_def.h:105
kNIMResTeamENotExist
@ kNIMResTeamENotExist
Definition: nim_qchat_public_def.h:92
kNIMResError
@ kNIMResError
Definition: nim_qchat_public_def.h:70
kNIMResTeamErrType
@ kNIMResTeamErrType
Definition: nim_qchat_public_def.h:94
kNIMResNoModify
@ kNIMResNoModify
Definition: nim_qchat_public_def.h:76
kNIMResEUnpacket
@ kNIMResEUnpacket
Definition: nim_qchat_public_def.h:104
kNIMResTeamLimit
@ kNIMResTeamLimit
Definition: nim_qchat_public_def.h:95
kNIMResTeamENAccess
@ kNIMResTeamENAccess
Definition: nim_qchat_public_def.h:91
NIMResCode
NIMResCode
Definition: nim_chatroom_res_code_def.h:15
kNIMResRoomError
@ kNIMResRoomError
Definition: nim_qchat_public_def.h:129
kNIMResTeamEMemberNotExist
@ kNIMResTeamEMemberNotExist
Definition: nim_qchat_public_def.h:93
NIMQChatSubscribeType
NIMQChatSubscribeType
Definition: nim_qchat_public_def.h:32
kNIMLocalResExist
@ kNIMLocalResExist
Definition: nim_qchat_public_def.h:117
kNIMResAccountBlock
@ kNIMResAccountBlock
Definition: nim_qchat_public_def.h:83
kNIMResParameterError
@ kNIMResParameterError
Definition: nim_qchat_public_def.h:78
kNIMResTeamInviteSuccess
@ kNIMResTeamInviteSuccess
Definition: nim_qchat_public_def.h:99
kNIMLocalResParameterError
@ kNIMLocalResParameterError
Definition: nim_qchat_public_def.h:116
kNIMQChatSubscribeTypeUnknow
@ kNIMQChatSubscribeTypeUnknow
Definition: nim_qchat_public_def.h:33
NIMQChatPageQueryInfo
Definition: nim_qchat_public_def.h:62
kNIMResInvalidProtocol
@ kNIMResInvalidProtocol
Definition: nim_qchat_public_def.h:103
kNIMResRoomLinkError
@ kNIMResRoomLinkError
Definition: nim_qchat_public_def.h:128
kNIMResRoomBeMuted
@ kNIMResRoomBeMuted
Definition: nim_qchat_public_def.h:131
kNIMResConnectionError
@ kNIMResConnectionError
Definition: nim_qchat_public_def.h:79
kNIMQChatSubscribeTypeUnreadCount
@ kNIMQChatSubscribeTypeUnreadCount
Definition: nim_qchat_public_def.h:35
kNIMLocalResMsgNosDownloadCheckError
@ kNIMLocalResMsgNosDownloadCheckError
Definition: nim_qchat_public_def.h:114