11#ifndef __NIM_QCHAT_MESSAGE_CPP_DEF_H__
12#define __NIM_QCHAT_MESSAGE_CPP_DEF_H__
33 c_param.
msg_attach =
const_cast<char*
>(msg_attach.c_str());
36 void SetRawData(
const std::string& raw_data)
override { msg_attach = raw_data; };
37 std::string
GetRawData()
const override {
return msg_attach; }
48 download_url = c_param.
url ? c_param.
url :
"";
49 hash = c_param.
md5 ? c_param.
md5 :
"";
50 extension = c_param.
ext ? c_param.
ext :
"";
51 name = c_param.
name ? c_param.
name :
"";
55 param.
file_path =
const_cast<char*
>(file_path.c_str());
56 param.
url =
const_cast<char*
>(download_url.c_str());
57 param.
md5 =
const_cast<char*
>(hash.c_str());
58 param.
ext =
const_cast<char*
>(extension.c_str());
59 param.
name =
const_cast<char*
>(name.c_str());
65 if (values.
isMember(kNIMQChatFilePath))
66 file_path = values[kNIMQChatFilePath].
asString();
68 hash = values[kNIMQChatMD5].
asString();
70 name = values[kNIMQChatName].
asString();
72 download_url = values[kNIMQChatURL].
asString();
74 extension = values[kNIMQChatExt].
asString();
79 ProcessFileFields(values);
83 values[kNIMQChatFilePath] = file_path;
84 values[kNIMQChatURL] = download_url;
85 values[kNIMQChatMD5] = hash;
86 values[kNIMQChatExt] = extension;
87 values[kNIMQChatName] = name;
104 width = c_param.
width;
106 download_url = c_param.
url ? c_param.
url :
"";
107 hash = c_param.
md5 ? c_param.
md5 :
"";
108 extension = c_param.
ext ? c_param.
ext :
"";
109 name = c_param.
name ? c_param.
name :
"";
113 param.
file_path =
const_cast<char*
>(file_path.c_str());
116 param.
url =
const_cast<char*
>(download_url.c_str());
117 param.
md5 =
const_cast<char*
>(hash.c_str());
118 param.
ext =
const_cast<char*
>(extension.c_str());
119 param.
name =
const_cast<char*
>(name.c_str());
123 QChatFileAttach::SetRawData(raw_data);
126 if (values.
isMember(kNIMQChatWidth))
127 width = values[kNIMQChatWidth].
asInt();
128 if (values.
isMember(kNIMQChatHeight))
129 height = values[kNIMQChatHeight].
asInt();
134 ProcessFileFields(values);
135 values[kNIMQChatWidth] = width;
136 values[kNIMQChatHeight] = height;
151 download_url = c_param.
url ? c_param.
url :
"";
152 hash = c_param.
md5 ? c_param.
md5 :
"";
153 extension = c_param.
ext ? c_param.
ext :
"";
154 name = c_param.
name ? c_param.
name :
"";
158 param.
file_path =
const_cast<char*
>(file_path.c_str());
160 param.
url =
const_cast<char*
>(download_url.c_str());
161 param.
md5 =
const_cast<char*
>(hash.c_str());
162 param.
ext =
const_cast<char*
>(extension.c_str());
163 param.
name =
const_cast<char*
>(name.c_str());
169 if (values.
isMember(kNIMQChatDuration))
170 duration = values[kNIMQChatDuration].
asInt();
175 ProcessFileFields(values);
176 values[kNIMQChatDuration] = duration;
180 uint64_t duration = 0;
190 width = c_param.
width;
192 download_url = c_param.
url ? c_param.
url :
"";
193 hash = c_param.
md5 ? c_param.
md5 :
"";
194 extension = c_param.
ext ? c_param.
ext :
"";
195 name = c_param.
name ? c_param.
name :
"";
199 param.
file_path =
const_cast<char*
>(file_path.c_str());
203 param.
url =
const_cast<char*
>(download_url.c_str());
204 param.
md5 =
const_cast<char*
>(hash.c_str());
205 param.
ext =
const_cast<char*
>(extension.c_str());
206 param.
name =
const_cast<char*
>(name.c_str());
212 if (values.
isMember(kNIMQChatDuration))
213 duration = values[kNIMQChatDuration].
asInt();
214 if (values.
isMember(kNIMQChatWidth))
215 width = values[kNIMQChatWidth].
asInt();
216 if (values.
isMember(kNIMQChatHeight))
217 height = values[kNIMQChatHeight].
asInt();
222 ProcessFileFields(values);
223 values[kNIMQChatDuration] = duration;
224 values[kNIMQChatWidth] = width;
225 values[kNIMQChatHeight] = height;
229 uint64_t duration = 0;
247 param.
title =
const_cast<char*
>(title.c_str());
253 if (values.
isMember(kNIMQChatLatitude))
254 latitude = values[kNIMQChatLatitude].
asDouble();
255 if (values.
isMember(kNIMQChatLongitude))
256 longitude = values[kNIMQChatLongitude].
asDouble();
257 if (values.
isMember(kNIMQChatTitle))
258 title = values[kNIMQChatTitle].
asString();
263 values[kNIMQChatLatitude] = latitude;
264 values[kNIMQChatLongitude] = longitude;
265 values[kNIMQChatTitle] = title;
270 double longitude = 0;
279 data = c_param.
data ? c_param.
data :
"";
284 param.
data =
const_cast<char*
>(data.c_str());
291 id = values[kNIMQChatID].
asInt();
293 data = values[kNIMQChatData].
asString();
298 values[kNIMQChatID] = id;
299 values[kNIMQChatData] = data;
312 data = c_param.
data ? c_param.
data :
"";
317 param.
data =
const_cast<char*
>(data.c_str());
324 type = values[kNIMQChatType].
asInt();
326 data = values[kNIMQChatData].
asString();
331 values[kNIMQChatType] = type;
332 values[kNIMQChatData] = data;
356 uint32_t operator_client_type{0};
363 env = c_param.
env ? c_param.
env :
"";
370 c_param.
postscript =
const_cast<char*
>(postscript.c_str());
371 c_param.
extension =
const_cast<char*
>(extension.c_str());
372 c_param.
push_content =
const_cast<char*
>(push_content.c_str());
373 c_param.
push_payload =
const_cast<char*
>(push_payload.c_str());
374 c_param.
env =
const_cast<char*
>(env.c_str());
376 c_param.
operator_id =
const_cast<char*
>(operator_id.c_str());
385 bool use_custom_content{
false};
387 bool anti_spam_using_yidun{
true};
426 uint64_t reply_msg_timestamp = 0;
428 uint64_t reply_msg_server_id = 0;
434 uint64_t thread_root_msg_timestamp = 0;
436 uint64_t thread_root_msg_server_id = 0;
467 uint64_t server_id{0};
469 uint64_t channel_id{0};
473 uint32_t msg_sub_type{0};
475 std::string msg_body{
""};
477 std::shared_ptr<IQChatAttachInterface> msg_attach{std::make_shared<QChatDefaultAttach>()};
479 std::string msg_ext{
""};
481 std::string msg_id{
""};
483 bool resend_flag{
false};
485 bool mention_all{
false};
487 std::vector<std::string> mention_accids{};
489 std::vector<uint64_t> mention_role_ids{};
491 bool history_enable{
true};
493 std::string push_payload{
""};
495 std::string push_content{
""};
497 bool push_enable{
false};
499 bool need_badge{
true};
501 bool need_push_nick{
true};
503 bool route_enable{
true};
517 msg_attach = CreateAttach(c_param);
522 mention_accids.clear();
526 mention_role_ids.clear();
539 env = c_param.
env ? c_param.
env :
"";
547 c_param.
msg_body =
const_cast<char*
>(msg_body.c_str());
548 c_param.
msg_ext =
const_cast<char*
>(msg_ext.c_str());
549 c_param.
msg_id =
const_cast<char*
>(msg_id.c_str());
553 c_mention_accids.clear();
554 for (
auto& accid : mention_accids) {
555 c_mention_accids.emplace_back(
const_cast<char*
>(accid.c_str()));
558 c_param.
mention_accids =
const_cast<char**
>(c_mention_accids.data());
562 c_param.
push_payload =
const_cast<char*
>(push_payload.c_str());
563 c_param.
push_content =
const_cast<char*
>(push_content.c_str());
571 ParseAttach(msg_attach, c_param);
574 c_param.
env =
const_cast<char*
>(env.c_str());
582 auto iter = attach_raw_create_function_.find(type);
583 if (iter != attach_raw_create_function_.end()) {
584 return iter->second(raw_data);
586 return std::make_shared<QChatDefaultAttach>(raw_data);
591 auto iter = attach_create_functions_.find(m.
msg_type);
592 if (iter != attach_create_functions_.end()) {
593 return iter->second(m);
601 auto iter = attach_parse_functions_.find(cp.
msg_type);
602 if (iter != attach_parse_functions_.end()) {
605 cp.
default_attach = std::dynamic_pointer_cast<QChatDefaultAttach>(p)->ToCParam();
608 template <
typename ATTACH_TYPE>
609 static std::shared_ptr<ATTACH_TYPE>
GetOriginAttach(
const std::shared_ptr<IQChatAttachInterface>& p) {
610 auto attach = std::dynamic_pointer_cast<ATTACH_TYPE>(p);
614 return std::make_shared<ATTACH_TYPE>(p->GetRawData());
618 std::map<NIMQChatMsgType, AttachCreateFunc> attach_create_functions_ = {
629 std::map<NIMQChatMsgType, AttachParseFunc> attach_parse_functions_ = {
631 { cp.default_attach = GetOriginAttach<QChatDefaultAttach>(p)->ToCParam(); } },
633 { cp.image_attach = GetOriginAttach<QChatImageAttach>(p)->ToCParam(); } },
635 { cp.audio_attach = GetOriginAttach<QChatAudioAttach>(p)->ToCParam(); } },
637 { cp.video_attach = GetOriginAttach<QChatVideoAttach>(p)->ToCParam(); } },
639 { cp.file_attach = GetOriginAttach<QChatFileAttach>(p)->ToCParam(); } },
641 { cp.location_attach = GetOriginAttach<QChatLocationAttach>(p)->ToCParam(); } },
643 { cp.notification_attach = GetOriginAttach<QChatNotificationAttach>(p)->ToCParam(); } },
645 { cp.tips_attach = GetOriginAttach<QChatTipsAttach>(p)->ToCParam(); } }
670 c_param.
msg_body =
const_cast<char*
>(msg_body.c_str());
671 c_param.
msg_ext =
const_cast<char*
>(msg_ext.c_str());
681 uint32_t operator_client_type{0};
701 c_param.
operator_id =
const_cast<char*
>(operator_id.c_str());
703 c_param.
postscript =
const_cast<char*
>(postscript.c_str());
704 c_param.
extension =
const_cast<char*
>(extension.c_str());
705 c_param.
push_content =
const_cast<char*
>(push_content.c_str());
706 c_param.
push_payload =
const_cast<char*
>(push_payload.c_str());
717 uint64_t msg_server_id{0};
719 std::string from_accid{
""};
721 uint32_t from_client_type{0};
723 std::string from_device_id{
""};
725 std::string from_nick{
""};
727 uint64_t timestamp{0};
729 uint64_t update_timestamp{0};
733 bool is_anti_spamed{
false};
763 accids_of_mentioned_roles.clear();
769 auto c_param = QChatMessageSend::ToCParam();
770 c_param.status = status;
771 c_param.msg_server_id = msg_server_id;
772 c_param.from_accid =
const_cast<char*
>(from_accid.c_str());
773 c_param.from_client_type = from_client_type;
774 c_param.from_device_id =
const_cast<char*
>(from_device_id.c_str());
775 c_param.from_nick =
const_cast<char*
>(from_nick.c_str());
776 c_param.timestamp = timestamp;
777 c_param.update_timestamp = update_timestamp;
778 c_param.notify_reason = notify_reason;
779 c_param.is_anti_spamed = is_anti_spamed;
780 c_param.callback_ext =
const_cast<char*
>(callback_ext.c_str());
781 c_param.anti_spam_result =
const_cast<char*
>(anti_spam_result.c_str());
782 c_param.update_content = update_content.
ToCParam();
783 c_param.update_ope_info = update_ope_info.
ToCParam();
784 c_param.accids_of_mentioned_roles_available = accids_of_mentioned_roles_available;
785 c_accids_of_mentioned_roles.clear();
786 for (
auto& accid : accids_of_mentioned_roles) {
787 c_accids_of_mentioned_roles.emplace_back(
const_cast<char*
>(accid.c_str()));
789 c_param.accids_of_mentioned_roles =
const_cast<char**
>(c_accids_of_mentioned_roles.data());
790 c_param.accids_of_mentioned_roles_count = c_accids_of_mentioned_roles.size();
795 bool accids_of_mentioned_roles_available{
false};
814 uint32_t res_code{0};
829 uint32_t res_code{0};
841 c_response.
message = message.ToCParam();
853 uint32_t res_code{0};
865 c_response.
message = message.ToCParam();
874 uint32_t res_code{0};
876 std::vector<QChatMessage> messages{};
883 messages.emplace_back(c_resp.
messages[i]);
890 for (
const auto& msg : messages) {
891 message_.push_back(msg.ToCParam());
894 c_response.
messages_count =
static_cast<uint32_t
>(message_.size());
905 uint32_t res_code{0};
907 std::map<uint64_t, QChatMessage> messages{};
910 res_code = c_resp.res_code;
913 for (
size_t i = 0; i < c_resp.messages_count; i++) {
914 messages.emplace(c_resp.messages[i].channel_id, c_resp.messages[i]);
919 c_response.res_code = res_code;
921 for (
auto&& iter : messages) {
922 message_.push_back(iter.second.ToCParam());
925 c_response.messages_count =
static_cast<uint32_t
>(message_.size());
945 uint32_t res_code{0};
947 std::map<std::string, bool> result{};
961 for (
auto&& iter : result) {
963 result.
msg_id =
const_cast<char*
>(iter.first.c_str());
965 c_result_.push_back(result);
967 c_response.
result_count =
static_cast<uint32_t
>(c_result_.size());
979 uint32_t res_code = 0;
990 c_response.unread_info = unread_info;
998 uint32_t res_code{0};
1013 messages.emplace_back(c_resp.
messages[i]);
1023 for (
auto& message : messages)
1024 messages_.push_back(message.ToCParam());
1038 uint32_t res_code = 0;
1047 meta_infos.emplace_back(c_resp.
meta_infos[i]);
1072 uint64_t create_time{0};
1074 bool include_yourself{
false};
1079 type = c_param.
type;
1080 count = c_param.
count;
1084 accids.emplace_back(c_param.
accids[i]);
1090 detail.
count = count;
1094 for (
auto& account : accids)
1095 accids_.push_back(
const_cast<char*
>(account.c_str()));
1096 detail.
accids =
const_cast<char**
>(accids_.data());
1108 uint64_t server_id{0};
1110 uint64_t channel_id{0};
1112 uint64_t msg_server_id{0};
1116 uint64_t timestamp{0};
1124 count = c_param.
count;
1127 details.emplace_back(c_param.
detail[i]);
1138 for (
auto& d : details)
1139 detail_.push_back(d.ToCParam());
1146 mutable std::vector<NIMQChatQuickCommentDetail>
detail_;
1152 uint32_t res_code{0};
1154 std::vector<QChatQuickCommentInfo> comments{};
1161 comments.emplace_back(c_response.
comments[i]);
1170 for (
auto& comment : comments)
1171 comments_.push_back(comment.ToCParam());
1316 auto c_response = response.ToCParam();
1317 c_response.user_data = user_data;
1318 c_callback(&c_response);
1326 InvokeCallback<SendMsgCallback, NIMQChatSendMessageResp>(resp);
1328 param.
message = message.ToCParam();
1340 uint64_t msg_server_id{0};
1342 uint64_t timestamp{0};
1351 std::string msg_body{
""};
1353 std::string msg_ext{
""};
1355 uint32_t msg_sub_type{0};
1368 auto c_response = response.ToCParam();
1369 c_response.user_data = user_data;
1370 c_callback(&c_response);
1380 auto c_response = response.ToCParam();
1381 c_response.user_data = user_data;
1382 c_callback(&c_response);
1392 auto c_response = response.ToCParam();
1393 c_response.user_data = user_data;
1394 c_callback(&c_response);
1402 InvokeCallback<UpdateMsgCallback, NIMQChatUpdateMessageResp>(resp);
1410 param.
msg_body =
const_cast<char*
>(msg_body.c_str());
1411 param.
msg_ext =
const_cast<char*
>(msg_ext.c_str());
1422 uint64_t msg_server_id{0};
1423 uint64_t timestamp{0};
1430 InvokeCallback<UpdateMsgCallback, NIMQChatUpdateMessageResp>(resp);
1445 uint64_t msg_server_id{0};
1446 uint64_t timestamp{0};
1453 InvokeCallback<UpdateMsgCallback, NIMQChatUpdateMessageResp>(resp);
1468 uint64_t server_id{0};
1470 uint64_t channel_id{0};
1472 uint64_t from_time{0};
1474 uint64_t to_time{0};
1476 uint64_t exclude_msg_server_id{0};
1478 uint32_t limit{100};
1480 bool reverse{
false};
1482 bool include_local_messages{
false};
1490 limit = c_param.
limit;
1494 auto c_response = response.ToCParam();
1495 c_response.user_data = user_data;
1496 c_callback(&c_response);
1504 InvokeCallback<GetMessagesCallback, NIMQChatGetMessagesResp>(resp);
1511 param.
limit = limit;
1523 uint64_t server_id{0};
1525 std::vector<uint64_t> channel_ids{};
1533 auto c_response = response.ToCParam();
1534 c_response.user_data = user_data;
1535 c_callback(&c_response);
1543 InvokeCallback<GetLastMessagesCallback, NIMQChatGetLastMessagesResp>(resp);
1547 param.
channel_ids =
const_cast<uint64_t*
>(channel_ids.data());
1557 uint64_t server_id{0};
1559 uint64_t channel_id{0};
1566 InvokeCallback<GetMessagesCacheCallback, NIMQChatGetMessagesCacheResp>(resp);
1581 uint64_t timestamp{0};
1587 auto c_response = response.ToCParam();
1588 c_response.user_data = user_data;
1589 c_callback(&c_response);
1597 InvokeCallback<MarkMessageReadCallback, NIMQChatMarkMessageReadResp>(resp);
1618 auto c_response = response.ToCParam();
1619 c_response.user_data = user_data;
1620 c_callback(&c_response);
1630 InvokeCallback<ReplyMessageCallback, NIMQChatReplyMsgResp>(c_response);
1639 uint64_t server_id = 0;
1640 uint64_t channel_id = 0;
1647 columns.push_back(c_param.
columns[i]);
1650 auto c_response = response.ToCParam();
1651 c_response.user_data = user_data;
1652 c_callback(&c_response);
1664 InvokeCallback<GetMessageHistoryByIdsCallback, NIMQChatGetMessageHistoryByIdsResp>(c_response);
1690 auto c_response = response.ToCParam();
1691 c_response.user_data = user_data;
1692 c_callback(&c_response);
1704 InvokeCallback<GetMentionedMeMessagesCallback, NIMQChatGetMentionedMeMessagesResp>(resp);
1719 messages.push_back(param.
messages[i]);
1722 auto c_response = response.ToCParam();
1723 c_response.user_data = user_data;
1724 c_callback(&c_response);
1730 for (
auto& message : messages) {
1731 c_messages.push_back(message.ToCParam());
1738 InvokeCallback<AreMentionedMeMessagesCallback, NIMQChatAreMentionedMeMessagesResp>(resp);
1754 type = c_param.
type;
1757 auto c_response = response.ToCParam();
1758 c_response.user_data = user_data;
1759 c_callback(&c_response);
1768 InvokeCallback<GetReferMessagesCallback, NIMQChatGetReferMessagesResp>(c_response);
1781 uint64_t from_time = 0;
1783 uint64_t to_time = 0;
1785 uint64_t exclude_msg_server_id = 0;
1787 uint32_t limit = 10;
1789 bool reverse =
false;
1796 limit = c_param.
limit;
1799 auto c_response = response.ToCParam();
1800 c_response.user_data = user_data;
1801 c_callback(&c_response);
1811 param.
limit = limit;
1815 InvokeCallback<GetThreadMessagesCallback, NIMQChatGetThreadMessagesResp>(c_response);
1821template <NIMQChatQuickCommentOperation operation,
typename TCParam,
typename TCResponse>
1831 message = c_param.quote_message;
1832 type = c_param.type;
1833 opt = c_param.operation;
1835 auto c_response = response.
ToCParam();
1836 c_response.user_data = user_data;
1837 c_callback(&c_response);
1843 param.quote_message = message.
ToCParam();
1845 param.operation = opt;
1846 param.user_data = cb_holder;
1847 param.cb = [](
const TCResponse* c_response) {
1848 InvokeCallback<QuickCommentCallback, TCResponse>(c_response);
1863 uint64_t server_id = 0;
1864 uint64_t channel_id = 0;
1871 thread_root_messages.push_back(c_param.
messages[i]);
1874 auto c_response = response.ToCParam();
1875 c_response.user_data = user_data;
1876 c_callback(&c_response);
1884 for (
auto& message : thread_root_messages) {
1885 messages_.push_back(message.ToCParam());
1891 InvokeCallback<GetThreadRootMessagesMetaCallback, NIMQChatGetThreadRootMessagesMetaResp>(c_response);
1910 uint64_t server_id{0};
1912 uint64_t channel_id{0};
1922 auto c_response = response.ToCParam();
1923 c_response.user_data = user_data;
1924 c_callback(&c_response);
1936 InvokeCallback<GetQuickCommentsCallback, NIMQChatGetQuickCommentsResp>(resp);
1951 uint64_t server_id{0};
1953 uint64_t channel_id{0};
1957 uint64_t from_time{0};
1959 uint64_t to_time{0};
1965 bool include_self{
false};
1971 uint32_t limit{100};
1983 msg_types.push_back(c_param.
msg_types[i]);
1985 sub_types.push_back(c_param.
sub_types[i]);
1987 order = c_param.
order;
1988 sort = c_param.
sort;
1989 limit = c_param.
limit;
1992 auto c_response = response.ToCParam();
1993 c_response.user_data = user_data;
1994 c_callback(&c_response);
1999 param.
keyword =
const_cast<char*
>(keyword.c_str());
2002 param.
from_accid =
const_cast<char*
>(from_accid.c_str());
2007 param.
sub_types =
const_cast<uint32_t*
>(sub_types.data());
2010 param.
order = order;
2012 param.
limit = limit;
2013 param.
cursor =
const_cast<char*
>(cursor.c_str());
2016 InvokeCallback<MessageSearchPageCallback, NIMQChatMessageSearchPageResp>(c_response);
2029 uint64_t server_id{0};
2031 uint64_t channel_id{0};
2040 auto c_response = response.ToCParam();
2041 c_response.user_data = user_data;
2042 c_callback(&c_response);
2051 param.
value =
const_cast<char*
>(value.c_str());
2054 InvokeCallback<QChatBaseCallback, NIMQChatInsertOrReplaceTextCacheResp>(c_response);
2067 uint64_t server_id{0};
2069 uint64_t channel_id{0};
2075 auto c_response = response.ToCParam();
2076 c_response.user_data = user_data;
2077 c_callback(&c_response);
2088 InvokeCallback<QChatBaseCallback, NIMQChatDeleteTextCacheResp>(c_response);
2099 uint64_t server_id{0};
2101 uint64_t channel_id{0};
2107 auto c_response = response.ToCParam();
2108 c_response.user_data = user_data;
2109 c_callback(&c_response);
2120 InvokeCallback<GetTextCacheCallback, NIMQChatGetTextCacheResp>(c_response);
Represents a JSON value.
Definition: value.h:196
bool isMember(const char *key) const
Definition: json_value.cpp:1241
double asDouble() const
Definition: json_value.cpp:782
Int asInt() const
Definition: json_value.cpp:657
String asString() const
Embedded zeroes are possible.
Definition: json_value.cpp:632
std::function< void(const QChatAreMentionedMeMessagesResp &)> AreMentionedMeMessagesCallback
查询消息是否 @ 当前用户回调
Definition: nim_qchat_message_cpp_def.h:1256
std::function< void(const QChatGetThreadRootMessagesMetaResp &)> GetThreadRootMessagesMetaCallback
查询Thread消息元信息回调
Definition: nim_qchat_message_cpp_def.h:1262
bool ParseJsonValue(const std::string &content, nim_cpp_wrapper_util::Json::Value &values)
解析JsonString
Definition: nim_json_util.cpp:70
std::function< void(const QChatReplyMessageResp &)> ReplyMessageCallback
回复消息回调
Definition: nim_qchat_message_cpp_def.h:1252
std::function< void(const QChatUpdateMessageResp &)> UpdateMsgCallback
更新消息回调
Definition: nim_qchat_message_cpp_def.h:1240
GetMessagesCallback GetMessagesCacheCallback
本地获取消息回调
Definition: nim_qchat_message_cpp_def.h:1248
GetMessagesCallback GetReferMessagesCallback
获取关联消息回调
Definition: nim_qchat_message_cpp_def.h:1258
std::function< void(const QChatGetMentionedMeMessagesResp &)> GetMentionedMeMessagesCallback
查询未读消息中 @ 当前用户的消息回调
Definition: nim_qchat_message_cpp_def.h:1270
std::function< void(const QChatMessageSearchPageResp &)> MessageSearchPageCallback
消息分页搜索回调
Definition: nim_qchat_message_cpp_def.h:1268
std::function< void(const QChatBaseResp &)> QChatBaseCallback
通用回调模板
Definition: nim_qchat_public_cpp_def.h:104
std::function< void(const QChatGetTextCacheResp &)> GetTextCacheCallback
查询文本缓存回调
Definition: nim_qchat_message_cpp_def.h:1272
std::function< void(const QChatGetLastMessagesResp &)> GetLastMessagesCallback
查询频道最后一条消息回调
Definition: nim_qchat_message_cpp_def.h:1246
std::function< void(const QChatMsgUpdatedResp &)> MsgUpdatedCallback
消息更新回调
Definition: nim_qchat_message_cpp_def.h:1242
std::function< void(const QChatGetMessagesResp &)> GetMessagesCallback
查询历史消息回调
Definition: nim_qchat_message_cpp_def.h:1244
std::function< void(const QChatGetQuickCommentsResp &)> GetQuickCommentsCallback
查询快捷回复回调
Definition: nim_qchat_message_cpp_def.h:1266
QChatBaseCallback QuickCommentCallback
添加快捷回复回调
Definition: nim_qchat_message_cpp_def.h:1264
GetMessagesCallback GetMessageHistoryByIdsCallback
根据消息 ID 查询消息回调
Definition: nim_qchat_message_cpp_def.h:1254
std::function< void(const QChatGetThreadMessagesResp &)> GetThreadMessagesCallback
查询Thread消息回调
Definition: nim_qchat_message_cpp_def.h:1260
std::function< void(const QChatSendMessageResp &)> SendMsgCallback
发送消息回调
Definition: nim_qchat_message_cpp_def.h:1238
std::string GetJsonStringWithNoStyled(const nim_cpp_wrapper_util::Json::Value &values)
获得非格式化的Json string,传入SDK的json string格式要求为非格式化的,如果是格式化的json string可能会影响功能
Definition: nim_json_util.cpp:89
std::function< void(const QChatRecvMsgResp &)> RecvMsgCallback
接收消息回调
Definition: nim_qchat_message_cpp_def.h:1236
std::function< void(const QChatMarkMessageReadResp &)> MarkMessageReadCallback
消息已读标记回调
Definition: nim_qchat_message_cpp_def.h:1250
NIMQChatGetReferMessageType
Definition: nim_qchat_message_def.h:78
NIMQChatQuickCommentOperation
Definition: nim_qchat_message_def.h:70
NIMQChatMsgType
Definition: nim_qchat_message_def.h:46
@ kNIMQChatMsgTypeNotification
通知类型消息
Definition: nim_qchat_message_def.h:58
@ kNIMQChatMsgTypeVideo
视频类型消息
Definition: nim_qchat_message_def.h:54
@ kNIMQChatMsgTypeText
文本类型消息
Definition: nim_qchat_message_def.h:48
@ kNIMQChatMsgTypeTips
提醒类型消息
Definition: nim_qchat_message_def.h:62
@ kNIMQChatMsgTypeAudio
音频类型消息
Definition: nim_qchat_message_def.h:52
@ kNIMQChatMsgTypeLocation
位置类型消息
Definition: nim_qchat_message_def.h:56
@ kNIMQChatMsgTypeFile
文件类型消息
Definition: nim_qchat_message_def.h:60
@ kNIMQChatMsgTypeUnknown
未知类型消息,作为默认值
Definition: nim_qchat_message_def.h:66
@ kNIMQChatMsgTypeImage
图片类型消息
Definition: nim_qchat_message_def.h:50
NIMQChatMessageStatus
Definition: nim_qchat_message_def.h:23
@ kMsgStatusRevoke
被撤回的消息
Definition: nim_qchat_message_def.h:27
@ kMsgStatusNormal
普通消息状态
Definition: nim_qchat_message_def.h:25
@ kMsgStatusDelete
被删除的消息
Definition: nim_qchat_message_def.h:29
NIMQChatMessageNotifyReason
Definition: nim_qchat_message_def.h:36
@ kMessageNotifyReasonUnkonw
未知原因
Definition: nim_qchat_message_def.h:38
NIMQChatMessageSearchSort
消息搜索排序规则
Definition: nim_qchat_public_def.h:135
@ kNIMQChatMessageSearchSortCreateTime
创建时间排序
Definition: nim_qchat_public_def.h:137
NIMQChatSearchOrder
搜索排序顺序
Definition: nim_qchat_public_def.h:109
@ kNIMQChatSearchOrderAsc
按时间正序
Definition: nim_qchat_public_def.h:111
#define NIM_QCHAT_SDK_CPPWRAPPER_DLL_API
Definition: nim_qchat_sdk_cpp_wrapper.h:38
@ kNIMResSuccess
没有错误,一切正常
Definition: public_defines.h:26
@ kNIMLocalResMsgAccessDenied
无访问权限
Definition: public_defines.h:141
Definition: nim_qchat_message_def.h:688
nim_qchat_are_mentioned_me_messages_cb_func cb
查询消息是否 @ 当前用户的异步回调
Definition: nim_qchat_message_def.h:690
size_t message_count
要查询的息数量
Definition: nim_qchat_message_def.h:694
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:692
NIMQChatMessage * messages
要查询的消息列表
Definition: nim_qchat_message_def.h:696
Definition: nim_qchat_message_def.h:494
NIMQChatMentionedResult * result
结果列表
Definition: nim_qchat_message_def.h:502
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:496
size_t result_count
结果数量
Definition: nim_qchat_message_def.h:500
Definition: nim_qchat_message_def.h:105
char * name
Definition: nim_qchat_message_def.h:112
char * file_path
Definition: nim_qchat_message_def.h:106
char * md5
Definition: nim_qchat_message_def.h:110
char * url
Definition: nim_qchat_message_def.h:109
char * ext
Definition: nim_qchat_message_def.h:111
uint64_t duration
Definition: nim_qchat_message_def.h:107
Definition: nim_qchat_public_def.h:141
Definition: nim_qchat_public_def.h:157
Definition: nim_qchat_message_def.h:88
char * msg_attach
Definition: nim_qchat_message_def.h:89
Definition: nim_qchat_message_def.h:632
NIMQChatMessageUpdateInfo update_info
更新信息
Definition: nim_qchat_message_def.h:644
NIMQChatChannelIDInfo id_info
频道ID信息
Definition: nim_qchat_message_def.h:638
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:642
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:636
nim_qchat_update_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:634
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:640
Definition: nim_qchat_message_def.h:909
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:915
nim_qchat_write_text_cache_cb_func cb
写入文本缓存异步回调
Definition: nim_qchat_message_def.h:911
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:917
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:913
Definition: nim_qchat_message_def.h:142
char * md5
Definition: nim_qchat_message_def.h:146
char * file_path
Definition: nim_qchat_message_def.h:143
char * name
Definition: nim_qchat_message_def.h:148
char * url
Definition: nim_qchat_message_def.h:145
char * ext
Definition: nim_qchat_message_def.h:147
Definition: nim_qchat_message_def.h:700
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:704
uint64_t * channel_ids
频道ID
Definition: nim_qchat_message_def.h:708
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:706
nim_qchat_get_last_messages_cb_func cb
查询历史消息异步回调
Definition: nim_qchat_message_def.h:702
size_t channel_ids_count
频道ID数量
Definition: nim_qchat_message_def.h:710
Definition: nim_qchat_message_def.h:672
uint64_t timestamp
查询的起始时间位置, 0表示当前时间
Definition: nim_qchat_message_def.h:682
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:680
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:676
uint32_t limit
查询条数
Definition: nim_qchat_message_def.h:684
nim_qchat_get_mentioned_me_messages_cb_func cb
查询未读消息中 @ 当前用户的消息异步回调
Definition: nim_qchat_message_def.h:674
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:678
Definition: nim_qchat_message_def.h:750
Definition: nim_qchat_message_def.h:758
size_t column_count
查询的消息数量
Definition: nim_qchat_message_def.h:767
nim_qchat_get_message_history_by_ids_cb_func cb
Definition: nim_qchat_message_def.h:759
uint64_t channel_id
频道 ID
Definition: nim_qchat_message_def.h:763
NIMQChatGetMessageColumns * columns
消息列表
Definition: nim_qchat_message_def.h:765
uint64_t server_id
服务器 ID
Definition: nim_qchat_message_def.h:761
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:769
Definition: nim_qchat_message_def.h:714
nim_qchat_query_history_msg_cache_cb_func cb
查询本地缓存消息历史异步回调
Definition: nim_qchat_message_def.h:716
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:722
uint64_t channel_id
频道 ID
Definition: nim_qchat_message_def.h:720
uint64_t server_id
服务器 ID
Definition: nim_qchat_message_def.h:718
Definition: nim_qchat_message_def.h:648
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:654
bool include_local_messages
是否包含本地消息
Definition: nim_qchat_message_def.h:668
uint32_t limit
查询条数
Definition: nim_qchat_message_def.h:664
bool reverse
是否倒序, false: 否, true: 是
Definition: nim_qchat_message_def.h:666
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:652
nim_qchat_query_history_msg_cb_func cb
查询历史消息异步回调
Definition: nim_qchat_message_def.h:650
uint64_t exclude_msg_server_id
排除某条消息, msg server id
Definition: nim_qchat_message_def.h:662
uint64_t from_time
查询开始时间
Definition: nim_qchat_message_def.h:658
uint64_t to_time
查询结束时间
Definition: nim_qchat_message_def.h:660
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:656
Definition: nim_qchat_message_def.h:359
size_t messages_count
消息数量
Definition: nim_qchat_message_def.h:365
NIMQChatMessage * messages
消息列表
Definition: nim_qchat_message_def.h:367
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:361
Definition: nim_qchat_message_def.h:773
nim_qchat_get_refer_messages_cb_func cb
获取引用消息异步回调
Definition: nim_qchat_message_def.h:775
NIMQChatGetReferMessageType type
查询的类型
Definition: nim_qchat_message_def.h:777
NIMQChatMessage message
要查询的消息体
Definition: nim_qchat_message_def.h:779
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:781
Definition: nim_qchat_message_def.h:924
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:932
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:928
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:930
nim_qchat_get_text_cache_cb_func cb
获取文本缓存异步回调
Definition: nim_qchat_message_def.h:926
Definition: nim_qchat_message_def.h:506
const char * value
文本内容
Definition: nim_qchat_message_def.h:512
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:508
Definition: nim_qchat_message_def.h:785
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:789
uint64_t exclude_msg_server_id
排除某条消息, message server id
Definition: nim_qchat_message_def.h:795
nim_qchat_get_thread_messages_cb_func cb
查询 thread 消息异步回调
Definition: nim_qchat_message_def.h:787
uint32_t limit
查询条数
Definition: nim_qchat_message_def.h:797
bool reverse
是否倒序, false: 否, true: 是
Definition: nim_qchat_message_def.h:799
uint64_t from_time
查询开始时间
Definition: nim_qchat_message_def.h:791
uint64_t to_time
查询结束时间
Definition: nim_qchat_message_def.h:793
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:801
Definition: nim_qchat_message_def.h:445
size_t messages_count
Definition: nim_qchat_message_def.h:453
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:447
NIMQChatMessage root_message
Definition: nim_qchat_message_def.h:451
NIMQChatThreadMessageMetaInfo meta_info
Definition: nim_qchat_message_def.h:450
NIMQChatMessage * messages
Definition: nim_qchat_message_def.h:452
Definition: nim_qchat_message_def.h:93
char * name
Definition: nim_qchat_message_def.h:101
uint32_t width
Definition: nim_qchat_message_def.h:95
char * file_path
Definition: nim_qchat_message_def.h:94
uint32_t height
Definition: nim_qchat_message_def.h:96
char * ext
Definition: nim_qchat_message_def.h:100
char * url
Definition: nim_qchat_message_def.h:98
char * md5
Definition: nim_qchat_message_def.h:99
Definition: nim_qchat_message_def.h:892
char * value
缓存的内容
Definition: nim_qchat_message_def.h:902
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:896
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:898
nim_qchat_write_text_cache_cb_func cb
写入文本缓存异步回调
Definition: nim_qchat_message_def.h:894
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:900
Definition: nim_qchat_message_def.h:129
char * title
Definition: nim_qchat_message_def.h:132
double latitude
Definition: nim_qchat_message_def.h:130
double longitude
Definition: nim_qchat_message_def.h:131
Definition: nim_qchat_message_def.h:726
NIMQChatChannelIDInfo id_info
标记已读channel ID
Definition: nim_qchat_message_def.h:732
uint64_t timestamp
标记消息已读时间戳
Definition: nim_qchat_message_def.h:734
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:730
nim_qchat_ack_cb_func cb
标记消息已读异步回调
Definition: nim_qchat_message_def.h:728
Definition: nim_qchat_message_def.h:346
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:348
NIMQChatUnreadInfo unread_info
未读数信息
Definition: nim_qchat_message_def.h:352
Definition: nim_qchat_message_def.h:486
char * msg_id
消息 id
Definition: nim_qchat_message_def.h:488
bool mentioned_me
是否被提及
Definition: nim_qchat_message_def.h:490
Definition: nim_qchat_public_def.h:186
bool use_custom_content
是否需要使用自定义反垃圾字段(即antiSpamContent), false:不需要, true:需要, 默认0
Definition: nim_qchat_public_def.h:188
bool anti_spam_using_yidun
单条消息是否使用易盾反垃圾, false:(在开通易盾的情况下)不过易盾反垃圾, 其他都是按照原来的规则
Definition: nim_qchat_public_def.h:190
char * yidun_anti_spam_ext
易盾反垃圾扩展字段, 限制json, 长度限制1024
Definition: nim_qchat_public_def.h:200
char * anti_spam_content
反垃圾内容, 开发者自定义的反垃圾字段, 如果提供了这个字段, 在过反垃圾时不会再使用body或者attach
Definition: nim_qchat_public_def.h:192
char * anti_spam_bussiness_id
反垃圾业务ID, 对某些单条消息另外的反垃圾的业务ID
Definition: nim_qchat_public_def.h:194
char * yidun_callback_url
易盾check的回调URL
Definition: nim_qchat_public_def.h:196
char * yidun_anti_cheating
易盾反垃圾增强反作弊专属字段, 限制json, 长度限制1024
Definition: nim_qchat_public_def.h:198
Definition: nim_qchat_message_def.h:204
uint32_t msg_sub_type
消息子类型
Definition: nim_qchat_message_def.h:212
bool need_push_nick
是否需要推送昵称, false: 不需要, true: 需要, 默认 true
Definition: nim_qchat_message_def.h:240
uint32_t from_client_type
消息发送者的客户端类型
Definition: nim_qchat_message_def.h:283
bool route_enable
是否需要抄送, false: 不需要, true: 需要, 默认 true
Definition: nim_qchat_message_def.h:242
size_t mention_accids_count
@成员列表长度
Definition: nim_qchat_message_def.h:224
char * env
环境变量,用于指向不同的抄送、第三方回调等配置
Definition: nim_qchat_message_def.h:252
char * push_payload
自定义的推送属性,限制json
Definition: nim_qchat_message_def.h:232
NIMQChatMsgType msg_type
消息类型
Definition: nim_qchat_message_def.h:210
char ** mention_accids
@成员列表
Definition: nim_qchat_message_def.h:222
bool history_enable
该消息是否存储云端历史,0:不支持,1:支持
Definition: nim_qchat_message_def.h:230
uint64_t server_id
消息所属的server id
Definition: nim_qchat_message_def.h:206
bool accids_of_mentioned_roles_available
@身份组所包含的accid列表是否有效
Definition: nim_qchat_message_def.h:300
bool mention_all
是否@所有人,false:否,true:是
Definition: nim_qchat_message_def.h:220
uint64_t channel_id
消息所属的channel id
Definition: nim_qchat_message_def.h:208
char * callback_ext
第三方回调扩展字段
Definition: nim_qchat_message_def.h:254
char * from_accid
消息发送者的accid
Definition: nim_qchat_message_def.h:281
bool push_enable
是否需要推送, false: 不需要, true: 需要, 默认 false
Definition: nim_qchat_message_def.h:236
NIMQChatMessageThreadInfo thread_info
回复消息信息
Definition: nim_qchat_message_def.h:244
char * push_content
自定义的推送内容
Definition: nim_qchat_message_def.h:234
char * from_device_id
消息发送者的设备id
Definition: nim_qchat_message_def.h:285
uint64_t * mention_role_ids
@身份组列表
Definition: nim_qchat_message_def.h:226
char ** accids_of_mentioned_roles
@身份组所包含的accid列表(部分)
Definition: nim_qchat_message_def.h:302
bool need_badge
是否需要消息计数, false: 不需要, true: 需要, 默认 true
Definition: nim_qchat_message_def.h:238
uint64_t update_timestamp
消息更新时间戳
Definition: nim_qchat_message_def.h:291
size_t mention_role_ids_count
@身份组列表长度
Definition: nim_qchat_message_def.h:228
char * from_nick
消息发送者的昵称
Definition: nim_qchat_message_def.h:287
char * msg_ext
消息扩展字段
Definition: nim_qchat_message_def.h:216
NIMQChatMessageNotifyReason notify_reason
消息下发原因
Definition: nim_qchat_message_def.h:293
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:289
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:279
NIMQChatMessageAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_message_def.h:246
NIMQChatDefaultAttach default_attach
默认附件
Definition: nim_qchat_message_def.h:257
char * msg_body
消息内容
Definition: nim_qchat_message_def.h:214
NIMQChatMessageStatus status
消息状态
Definition: nim_qchat_message_def.h:275
size_t accids_of_mentioned_roles_count
@身份组所包含的accid列表长度(部分)
Definition: nim_qchat_message_def.h:304
char * anti_spam_result
反垃圾结果
Definition: nim_qchat_message_def.h:250
NIMQChatMessageUpdateOpeInfo update_ope_info
上次消息变更操作信息
Definition: nim_qchat_message_def.h:297
char * msg_id
消息id
Definition: nim_qchat_message_def.h:277
NIMQChatMessageUpdateContent update_content
上次消息变更内容
Definition: nim_qchat_message_def.h:295
bool resend_flag
重发标记,false:不是重发,true:是重发
Definition: nim_qchat_message_def.h:218
bool is_anti_spamed
是否被反垃圾拦截, false: 未被拦截, true: 已被拦截, 默认 false
Definition: nim_qchat_message_def.h:248
Definition: nim_qchat_message_def.h:854
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:858
uint64_t channel_id
频道ID
Definition: nim_qchat_message_def.h:864
char * from_accid
消息发送者ID
Definition: nim_qchat_message_def.h:866
uint64_t from_time
搜索的开始时间
Definition: nim_qchat_message_def.h:868
size_t msg_types_count
搜索的消息类型数量
Definition: nim_qchat_message_def.h:872
char * keyword
搜索的关键字
Definition: nim_qchat_message_def.h:860
NIMQChatSearchOrder order
排序顺序
Definition: nim_qchat_message_def.h:882
uint64_t server_id
服务器ID
Definition: nim_qchat_message_def.h:862
NIMQChatMsgType * msg_types
搜索的消息类型
Definition: nim_qchat_message_def.h:874
uint32_t * sub_types
搜索的消息子类型
Definition: nim_qchat_message_def.h:878
char * cursor
查询游标, 查询的起始位置
Definition: nim_qchat_message_def.h:888
size_t sub_types_count
搜索的消息子类型数量
Definition: nim_qchat_message_def.h:876
NIMQChatMessageSearchSort sort
排序规则
Definition: nim_qchat_message_def.h:884
bool include_self
是否包含自己的消息
Definition: nim_qchat_message_def.h:880
uint64_t to_time
搜索的结束时间
Definition: nim_qchat_message_def.h:870
nim_qchat_message_search_page_cb_func cb
消息搜索异步回调
Definition: nim_qchat_message_def.h:856
uint32_t limit
查询条数
Definition: nim_qchat_message_def.h:886
Definition: nim_qchat_message_def.h:469
size_t messages_count
消息数量
Definition: nim_qchat_message_def.h:477
NIMQChatMessage * messages
消息列表
Definition: nim_qchat_message_def.h:479
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:471
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_message_def.h:475
Definition: nim_qchat_message_def.h:158
char * reply_from_accid
被回复的消息所有者 ID
Definition: nim_qchat_message_def.h:160
char * thread_root_accid
thread 根消息的所有者 ID
Definition: nim_qchat_message_def.h:168
char * reply_msg_client_id
被回复消息得客户端消息 ID
Definition: nim_qchat_message_def.h:166
uint64_t reply_msg_timestamp
被回复消息得创建时间
Definition: nim_qchat_message_def.h:162
uint64_t thread_root_msg_timestamp
thread 根消息的创建时间
Definition: nim_qchat_message_def.h:170
uint64_t thread_root_msg_server_id
thread 根消息的服务器消息 ID
Definition: nim_qchat_message_def.h:172
char * thread_root_msg_client_id
thread 根消息的客户端消息 ID
Definition: nim_qchat_message_def.h:174
uint64_t reply_msg_server_id
被回复消息得服务器消息 ID
Definition: nim_qchat_message_def.h:164
Definition: nim_qchat_message_def.h:178
NIMQChatMessageStatus status
消息状态
Definition: nim_qchat_message_def.h:180
char * msg_ext
消息扩展字段
Definition: nim_qchat_message_def.h:184
char * msg_body
消息内容
Definition: nim_qchat_message_def.h:182
Definition: nim_qchat_public_def.h:165
char * push_content
推送文案
Definition: nim_qchat_public_def.h:171
char * push_payload
推送payload
Definition: nim_qchat_public_def.h:173
bool route_enable
是否需要抄送
Definition: nim_qchat_public_def.h:177
char * extension
操作扩展字段
Definition: nim_qchat_public_def.h:169
char * operator_id
操作者账号
Definition: nim_qchat_public_def.h:180
char * env
环境变量,用于指向不同的抄送、第三方回调等配置
Definition: nim_qchat_public_def.h:175
uint32_t operator_client_type
操作者客户端类型
Definition: nim_qchat_public_def.h:182
char * postscript
操作附言
Definition: nim_qchat_public_def.h:167
Definition: nim_qchat_message_def.h:188
uint32_t operator_client_type
操作者客户端类型
Definition: nim_qchat_message_def.h:192
char * push_payload
推送payload
Definition: nim_qchat_message_def.h:200
char * push_content
推送文案
Definition: nim_qchat_message_def.h:198
char * operator_id
操作者账号
Definition: nim_qchat_message_def.h:190
char * postscript
操作附言
Definition: nim_qchat_message_def.h:194
char * extension
操作扩展字段
Definition: nim_qchat_message_def.h:196
Definition: nim_qchat_message_def.h:308
NIMQChatMessageUpdateInfo update_info
消息更新信息
Definition: nim_qchat_message_def.h:312
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:314
Definition: nim_qchat_message_def.h:136
uint32_t id
Definition: nim_qchat_message_def.h:137
char * data
Definition: nim_qchat_message_def.h:138
Definition: nim_qchat_message_def.h:318
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:322
Definition: nim_qchat_message_def.h:571
nim_qchat_msg_updated_cb_func cb
消息更新异步回调
Definition: nim_qchat_message_def.h:573
Definition: nim_qchat_message_def.h:563
nim_qchat_recv_msg_cb_func cb
接收消息异步回调
Definition: nim_qchat_message_def.h:565
Definition: nim_qchat_message_def.h:738
nim_qchat_reply_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:740
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:746
NIMQChatMessage quote_message
被引用的消息体
Definition: nim_qchat_message_def.h:742
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:744
Definition: nim_qchat_message_def.h:616
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:626
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:620
nim_qchat_update_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:618
NIMQChatChannelIDInfo id_info
频道ID信息
Definition: nim_qchat_message_def.h:622
NIMQChatMessageUpdateInfo update_info
更新信息
Definition: nim_qchat_message_def.h:628
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:624
Definition: nim_qchat_message_def.h:579
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:583
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:585
nim_qchat_send_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:581
Definition: nim_qchat_message_def.h:326
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:332
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:328
Definition: nim_qchat_message_def.h:152
char * data
Definition: nim_qchat_message_def.h:154
uint32_t type
Definition: nim_qchat_message_def.h:153
Definition: nim_qchat_public_def.h:214
Definition: nim_qchat_message_def.h:589
uint32_t msg_sub_type
消息子类型
Definition: nim_qchat_message_def.h:612
NIMQChatMessageUpdateInfo update_info
更新信息
Definition: nim_qchat_message_def.h:601
uint64_t msg_server_id
消息服务器 id
Definition: nim_qchat_message_def.h:597
NIMQChatChannelIDInfo id_info
频道ID信息
Definition: nim_qchat_message_def.h:595
void * user_data
自定义用户数据
Definition: nim_qchat_message_def.h:593
NIMQChatMessageStatus status
消息状态, 不允许更新为删除或撤回
Definition: nim_qchat_message_def.h:606
uint64_t timestamp
消息发送时间戳
Definition: nim_qchat_message_def.h:599
char * msg_ext
消息扩展字段
Definition: nim_qchat_message_def.h:610
NIMQChatMessageAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_message_def.h:603
char * msg_body
消息体
Definition: nim_qchat_message_def.h:608
nim_qchat_update_msg_cb_func cb
发送消息异步回调
Definition: nim_qchat_message_def.h:591
Definition: nim_qchat_message_def.h:336
NIMQChatMessage message
消息体
Definition: nim_qchat_message_def.h:342
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_def.h:338
Definition: nim_qchat_message_def.h:116
uint64_t duration
Definition: nim_qchat_message_def.h:118
char * file_path
Definition: nim_qchat_message_def.h:117
char * ext
Definition: nim_qchat_message_def.h:124
char * url
Definition: nim_qchat_message_def.h:122
char * name
Definition: nim_qchat_message_def.h:125
uint32_t height
Definition: nim_qchat_message_def.h:120
uint32_t width
Definition: nim_qchat_message_def.h:119
char * md5
Definition: nim_qchat_message_def.h:123
Definition: nim_qchat_message_cpp_def.h:19
virtual void SetRawData(const std::string &raw_data)
Definition: nim_qchat_message_cpp_def.h:22
IQChatAttachInterface()=default
virtual ~IQChatAttachInterface()
Definition: nim_qchat_message_cpp_def.h:21
virtual bool IsFileBased() const
Definition: nim_qchat_message_cpp_def.h:24
virtual std::string GetRawData() const
Definition: nim_qchat_message_cpp_def.h:23
Definition: nim_qchat_message_cpp_def.h:1711
std::vector< NIMQChatMessage > c_messages
Definition: nim_qchat_message_cpp_def.h:1744
QChatAreMentionedMeMessagesParam()=default
std::vector< QChatMessage > messages
消息列表
Definition: nim_qchat_message_cpp_def.h:1715
QChatAreMentionedMeMessagesParam(const NIMQChatAreMentionedMeMessagesParam ¶m)
Definition: nim_qchat_message_cpp_def.h:1717
NIMQChatAreMentionedMeMessagesParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1727
Definition: nim_qchat_message_cpp_def.h:943
QChatAreMentionedMeMessagesResp(const NIMQChatAreMentionedMeMessagesResp &c_resp)
Definition: nim_qchat_message_cpp_def.h:949
QChatAreMentionedMeMessagesResp()=default
std::vector< NIMQChatMentionedResult > c_result_
Definition: nim_qchat_message_cpp_def.h:973
NIMQChatAreMentionedMeMessagesResp ToCParam() const
Definition: nim_qchat_message_cpp_def.h:957
Definition: nim_qchat_message_cpp_def.h:145
QChatAudioAttach(const std::string &raw_data)
Definition: nim_qchat_message_cpp_def.h:147
QChatAudioAttach()=default
QChatAudioAttach(const NIMQChatAudioAttach &c_param)
Definition: nim_qchat_message_cpp_def.h:148
NIMQChatAudioAttach ToCParam() const
Definition: nim_qchat_message_cpp_def.h:156
std::string GetRawData() const override
Definition: nim_qchat_message_cpp_def.h:173
void SetRawData(const std::string &raw_data) override
Definition: nim_qchat_message_cpp_def.h:166
Definition: nim_qchat_public_cpp_def.h:49
Definition: nim_qchat_message_cpp_def.h:27
QChatDefaultAttach(const std::string &raw_data)
Definition: nim_qchat_message_cpp_def.h:29
QChatDefaultAttach(const NIMQChatDefaultAttach &c_param)
Definition: nim_qchat_message_cpp_def.h:30
std::string GetRawData() const override
Definition: nim_qchat_message_cpp_def.h:37
std::string msg_attach
Definition: nim_qchat_message_cpp_def.h:38
QChatDefaultAttach()=default
void SetRawData(const std::string &raw_data) override
Definition: nim_qchat_message_cpp_def.h:36
NIMQChatDefaultAttach ToCParam()
Definition: nim_qchat_message_cpp_def.h:31
Definition: nim_qchat_message_cpp_def.h:1441
NIMQChatDeleteMessageParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1448
Definition: nim_qchat_message_cpp_def.h:2063
NIMQChatDeleteTextCacheParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:2081
QChatDeleteTextCacheParam()=default
QChatDeleteTextCacheParam(const NIMQChatDeleteTextCacheParam &c_param)
Definition: nim_qchat_message_cpp_def.h:2071
Definition: nim_qchat_message_cpp_def.h:42
std::string download_url
Definition: nim_qchat_message_cpp_def.h:94
std::string name
Definition: nim_qchat_message_cpp_def.h:91
QChatFileAttach(const std::string &raw_data)
Definition: nim_qchat_message_cpp_def.h:45
std::string GetRawData() const override
Definition: nim_qchat_message_cpp_def.h:77
QChatFileAttach(const NIMQChatFileAttach &c_param)
Definition: nim_qchat_message_cpp_def.h:46
std::string extension
Definition: nim_qchat_message_cpp_def.h:95
NIMQChatFileAttach ToCParam() const
Definition: nim_qchat_message_cpp_def.h:53
void SetRawData(const std::string &raw_data) override
Definition: nim_qchat_message_cpp_def.h:62
std::string hash
Definition: nim_qchat_message_cpp_def.h:93
std::string file_path
Definition: nim_qchat_message_cpp_def.h:92
QChatFileAttach()=default
bool IsFileBased() const override
Definition: nim_qchat_message_cpp_def.h:89
void ProcessFileFields(nim_cpp_wrapper_util::Json::Value &values) const
Definition: nim_qchat_message_cpp_def.h:82
Definition: nim_qchat_message_cpp_def.h:1519
NIMQChatGetLastMessagesParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1538
QChatGetLastMessagesParam(const NIMQChatGetLastMessagesParam &c_param)
Definition: nim_qchat_message_cpp_def.h:1527
QChatGetLastMessagesParam()=default
Definition: nim_qchat_message_cpp_def.h:903
QChatGetLastMessagesResp()=default
std::vector< NIMQChatMessage > message_
Definition: nim_qchat_message_cpp_def.h:930
QChatGetLastMessagesResp(const NIMQChatGetLastMessagesResp &c_resp)
Definition: nim_qchat_message_cpp_def.h:909
NIMQChatGetLastMessagesResp ToCParam() const
Definition: nim_qchat_message_cpp_def.h:917
Definition: nim_qchat_message_cpp_def.h:1671
uint64_t timestamp
查询的起始时间位置, 0表示当前时间
Definition: nim_qchat_message_cpp_def.h:1679
QChatGetMentionedMeMessagesParam(const NIMQChatGetMentionedMeMessagesParam ¶m)
Definition: nim_qchat_message_cpp_def.h:1684
NIMQChatGetMentionedMeMessagesParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1695
uint32_t limit
查询条数, 0为使用默认值
Definition: nim_qchat_message_cpp_def.h:1681
QChatGetMentionedMeMessagesParam()=default
是否倒序, false: 否, true: 是
GetMentionedMeMessagesCallback cb
查询未读消息中 @ 当前用户的消息异步回调
Definition: nim_qchat_message_cpp_def.h:1673
uint64_t channel_id
频道ID
Definition: nim_qchat_message_cpp_def.h:1677
uint64_t server_id
服务器ID
Definition: nim_qchat_message_cpp_def.h:1675
Definition: nim_qchat_message_cpp_def.h:1637
std::vector< NIMQChatGetMessageColumns > columns
Definition: nim_qchat_message_cpp_def.h:1641
NIMQChatGetMessageHistoryByIdsParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1655
QChatGetMessageHistoryByIdsParam()=default
QChatGetMessageHistoryByIdsParam(const NIMQChatGetMessageHistoryByIdsParam &c_param)
Definition: nim_qchat_message_cpp_def.h:1643
Definition: nim_qchat_message_cpp_def.h:1553
NIMQChatGetMessagesCacheParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1561
QChatGetMessagesCacheParam()=default
Definition: nim_qchat_message_cpp_def.h:1464
QChatGetMessagesParam()=default
QChatGetMessagesParam(const NIMQChatGetMessagesParam &c_param)
Definition: nim_qchat_message_cpp_def.h:1484
NIMQChatGetMessagesParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1499
Definition: nim_qchat_message_cpp_def.h:872
QChatGetMessagesResp(const NIMQChatGetMessagesResp &c_resp)
Definition: nim_qchat_message_cpp_def.h:878
NIMQChatGetMessagesResp ToCParam() const
Definition: nim_qchat_message_cpp_def.h:886
std::vector< NIMQChatMessage > message_
Definition: nim_qchat_message_cpp_def.h:899
QChatGetMessagesResp()=default
Definition: nim_qchat_message_cpp_def.h:1748
QChatGetReferMessagesParam()=default
QChatMessage message
Definition: nim_qchat_message_cpp_def.h:1751
NIMQChatGetReferMessageType type
Definition: nim_qchat_message_cpp_def.h:1750
GetReferMessagesCallback cb
Definition: nim_qchat_message_cpp_def.h:1749
NIMQChatGetReferMessagesParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1762
QChatGetReferMessagesParam(const NIMQChatGetReferMessagesParam &c_param)
Definition: nim_qchat_message_cpp_def.h:1753
Definition: nim_qchat_message_cpp_def.h:2095
QChatGetTextCacheParam(const NIMQChatGetTextCacheParam &c_param)
Definition: nim_qchat_message_cpp_def.h:2103
NIMQChatGetTextCacheParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:2113
QChatGetTextCacheParam()=default
Definition: nim_qchat_message_cpp_def.h:1217
QChatGetTextCacheResp(const NIMQChatGetTextCacheResp &c_response)
Definition: nim_qchat_message_cpp_def.h:1223
QChatGetTextCacheResp()=default
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_cpp_def.h:1219
std::string value
文本内容
Definition: nim_qchat_message_cpp_def.h:1221
NIMQChatGetTextCacheResp ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1227
Definition: nim_qchat_message_cpp_def.h:1775
QChatGetThreadMessagesParam()=default
QChatMessage message
要查询的 thread 依据完整消息体
Definition: nim_qchat_message_cpp_def.h:1779
QChatGetThreadMessagesParam(const NIMQChatGetThreadMessagesParam &c_param)
Definition: nim_qchat_message_cpp_def.h:1791
NIMQChatGetThreadMessagesParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1804
Definition: nim_qchat_message_cpp_def.h:996
QChatGetThreadMessagesResp(const NIMQChatGetThreadMessagesResp &c_resp)
Definition: nim_qchat_message_cpp_def.h:1006
QChatGetThreadMessagesResp()=default
NIMQChatGetThreadMessagesResp ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1016
std::vector< NIMQChatMessage > messages_
Definition: nim_qchat_message_cpp_def.h:1032
NIMQChatThreadMessageMetaInfo meta_info
thread 消息元信息
Definition: nim_qchat_message_cpp_def.h:1000
std::vector< QChatMessage > messages
消息列表
Definition: nim_qchat_message_cpp_def.h:1004
QChatMessage root_message
消息体
Definition: nim_qchat_message_cpp_def.h:1002
Definition: nim_qchat_message_cpp_def.h:99
QChatImageAttach(const std::string &raw_data)
Definition: nim_qchat_message_cpp_def.h:101
QChatImageAttach()=default
NIMQChatImageAttach ToCParam() const
Definition: nim_qchat_message_cpp_def.h:111
void SetRawData(const std::string &raw_data) override
Definition: nim_qchat_message_cpp_def.h:122
std::string GetRawData() const override
Definition: nim_qchat_message_cpp_def.h:132
QChatImageAttach(const NIMQChatImageAttach &c_param)
Definition: nim_qchat_message_cpp_def.h:102
Definition: nim_qchat_message_cpp_def.h:2025
std::string value
缓存的内容
Definition: nim_qchat_message_cpp_def.h:2033
QChatInsertOrReplaceTextCacheParam()=default
QChatInsertOrReplaceTextCacheParam(const NIMQChatInsertOrReplaceTextCacheParam &c_param)
Definition: nim_qchat_message_cpp_def.h:2035
NIMQChatInsertOrReplaceTextCacheParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:2046
Definition: nim_qchat_message_cpp_def.h:235
QChatLocationAttach(const NIMQChatLocationAttach &c_param)
Definition: nim_qchat_message_cpp_def.h:238
std::string title
Definition: nim_qchat_message_cpp_def.h:271
QChatLocationAttach(const std::string &raw_data)
Definition: nim_qchat_message_cpp_def.h:237
void SetRawData(const std::string &raw_data) override
Definition: nim_qchat_message_cpp_def.h:250
std::string GetRawData() const override
Definition: nim_qchat_message_cpp_def.h:261
NIMQChatLocationAttach ToCParam() const
Definition: nim_qchat_message_cpp_def.h:243
QChatLocationAttach()=default
Definition: nim_qchat_message_cpp_def.h:1575
QChatMarkMessageReadParam(const NIMQChatMarkMessageReadParam ¶m)
Definition: nim_qchat_message_cpp_def.h:1583
NIMQChatMarkMessageReadParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1592
QChatMarkMessageReadParam()=default
Definition: nim_qchat_message_cpp_def.h:977
QChatMarkMessageReadResp(const NIMQChatMarkMessageReadResp &c_resp)
Definition: nim_qchat_message_cpp_def.h:983
NIMQChatMarkMessageReadResp ToCParam() const
Definition: nim_qchat_message_cpp_def.h:987
QChatMarkMessageReadResp()=default
Definition: nim_qchat_message_cpp_def.h:383
std::string yidun_anti_cheating
易盾反垃圾增强反作弊专属字段, 限制json, 长度限制1024
Definition: nim_qchat_message_cpp_def.h:395
std::string yidun_anti_spam_ext
易盾反垃圾扩展字段, 限制json, 长度限制1024
Definition: nim_qchat_message_cpp_def.h:397
NIMQChatMessageAntiSpamInfo ToCParam() const
Definition: nim_qchat_message_cpp_def.h:408
QChatMessageAntiSpamInfo(const NIMQChatMessageAntiSpamInfo &c_param)
Definition: nim_qchat_message_cpp_def.h:399
std::string anti_spam_bussiness_id
反垃圾业务ID, 对某些单条消息另外的反垃圾的业务ID
Definition: nim_qchat_message_cpp_def.h:391
QChatMessageAntiSpamInfo()=default
std::string yidun_callback_url
易盾check的回调URL
Definition: nim_qchat_message_cpp_def.h:393
std::string anti_spam_content
反垃圾内容, 开发者自定义的反垃圾字段, 如果提供了这个字段, 在过反垃圾时不会再使用body或者attach
Definition: nim_qchat_message_cpp_def.h:389
Definition: nim_qchat_message_cpp_def.h:712
NIMQChatMessage ToCParam() const
Definition: nim_qchat_message_cpp_def.h:768
QChatMessageUpdateContent update_content
上次消息变更内容
Definition: nim_qchat_message_cpp_def.h:739
QChatMessageUpdateOpeInfo update_ope_info
上次消息变更操作信息
Definition: nim_qchat_message_cpp_def.h:741
uint64_t timestamp
更新消息时消息创建的时间戳,以服务器返回信息为准
Definition: nim_qchat_message_cpp_def.h:727
QChatMessage(const NIMQChatMessage &c_param)
Definition: nim_qchat_message_cpp_def.h:745
std::string anti_spam_result
反垃圾结果
Definition: nim_qchat_message_cpp_def.h:735
std::vector< char * > c_accids_of_mentioned_roles
Definition: nim_qchat_message_cpp_def.h:800
QChatMessage(const QChatMessageSend &parent)
Definition: nim_qchat_message_cpp_def.h:743
std::vector< std::string > accids_of_mentioned_roles
@身份组所包含的accid列表(部分)
Definition: nim_qchat_message_cpp_def.h:797
uint64_t msg_server_id
更新消息时消息服务器端id
Definition: nim_qchat_message_cpp_def.h:717
std::string callback_ext
第三方回调扩展字段
Definition: nim_qchat_message_cpp_def.h:737
Definition: nim_qchat_message_cpp_def.h:1945
std::string keyword
搜索关键字
Definition: nim_qchat_message_cpp_def.h:1949
std::string cursor
查询游标, 查询的起始位置
Definition: nim_qchat_message_cpp_def.h:1973
QChatMessageSearchPageParam()=default
NIMQChatMessageSearchPageParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1997
std::string from_accid
消息发送者ID
Definition: nim_qchat_message_cpp_def.h:1955
std::vector< uint32_t > sub_types
搜索消息类型
Definition: nim_qchat_message_cpp_def.h:1963
QChatMessageSearchPageParam(const NIMQChatMessageSearchPageParam &c_param)
Definition: nim_qchat_message_cpp_def.h:1975
std::vector< NIMQChatMsgType > msg_types
搜索消息类型
Definition: nim_qchat_message_cpp_def.h:1961
Definition: nim_qchat_message_cpp_def.h:1182
std::vector< NIMQChatMessage > c_messages
Definition: nim_qchat_message_cpp_def.h:1210
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_message_cpp_def.h:1184
QChatMessageSearchPageResp(const NIMQChatMessageSearchPageResp &c_response)
Definition: nim_qchat_message_cpp_def.h:1190
std::vector< QChatMessage > messages
消息列表
Definition: nim_qchat_message_cpp_def.h:1188
NIMQChatMessageSearchPageResp ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1197
QChatPageInfo page_info
分页信息
Definition: nim_qchat_message_cpp_def.h:1186
QChatMessageSearchPageResp()=default
Definition: nim_qchat_message_cpp_def.h:465
std::function< std::shared_ptr< IQChatAttachInterface >(const std::string &)> AttachRawCreateFunc
Definition: nim_qchat_message_cpp_def.h:577
std::function< std::shared_ptr< IQChatAttachInterface >(const NIMQChatMessage &)> AttachCreateFunc
Definition: nim_qchat_message_cpp_def.h:578
QChatMessageThreadInfo thread_info
thread 消息相关信息
Definition: nim_qchat_message_cpp_def.h:505
static std::map< NIMQChatMsgType, AttachRawCreateFunc > attach_raw_create_function_
Definition: nim_qchat_message_cpp_def.h:580
QChatMessageAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_message_cpp_def.h:507
static std::shared_ptr< ATTACH_TYPE > GetOriginAttach(const std::shared_ptr< IQChatAttachInterface > &p)
Definition: nim_qchat_message_cpp_def.h:609
static std::shared_ptr< IQChatAttachInterface > CreateAttachWithRawData(NIMQChatMsgType type, const std::string &raw_data)
Definition: nim_qchat_message_cpp_def.h:581
QChatMessageSend(const NIMQChatMessage &c_param)
Definition: nim_qchat_message_cpp_def.h:511
QChatMessageSend()=default
void ParseAttach(const std::shared_ptr< IQChatAttachInterface > &p, NIMQChatMessage &cp) const
Definition: nim_qchat_message_cpp_def.h:597
std::vector< char * > c_mention_accids
Definition: nim_qchat_message_cpp_def.h:650
std::shared_ptr< IQChatAttachInterface > CreateAttach(const NIMQChatMessage &m)
Definition: nim_qchat_message_cpp_def.h:590
NIMQChatMessage ToCParam() const
Definition: nim_qchat_message_cpp_def.h:541
std::function< void(const std::shared_ptr< IQChatAttachInterface > &, NIMQChatMessage &)> AttachParseFunc
Definition: nim_qchat_message_cpp_def.h:579
std::string env
环境变量
Definition: nim_qchat_message_cpp_def.h:509
Definition: nim_qchat_message_cpp_def.h:422
QChatMessageThreadInfo(const NIMQChatMessageThreadInfo &c_param)
Definition: nim_qchat_message_cpp_def.h:440
QChatMessageThreadInfo()=default
std::string thread_root_msg_client_id
thread 根消息的客户端消息 ID
Definition: nim_qchat_message_cpp_def.h:438
NIMQChatMessageThreadInfo ToCParam() const
Definition: nim_qchat_message_cpp_def.h:450
std::string reply_msg_client_id
被回复消息得客户端消息 ID
Definition: nim_qchat_message_cpp_def.h:430
std::string reply_from_accid
被回复的消息所有者 ID
Definition: nim_qchat_message_cpp_def.h:424
std::string thread_root_accid
thread 根消息的所有者 ID
Definition: nim_qchat_message_cpp_def.h:432
Definition: nim_qchat_message_cpp_def.h:654
QChatMessageUpdateContent()=default
std::string msg_body
消息内容
Definition: nim_qchat_message_cpp_def.h:658
QChatMessageUpdateContent(const NIMQChatMessageUpdateContent &c_param)
Definition: nim_qchat_message_cpp_def.h:662
NIMQChatMessageUpdateContent ToCParam() const
Definition: nim_qchat_message_cpp_def.h:667
std::string msg_ext
消息扩展字段
Definition: nim_qchat_message_cpp_def.h:660
Definition: nim_qchat_message_cpp_def.h:341
QChatMessageUpdateInfo(const NIMQChatMessageUpdateInfo &c_param)
Definition: nim_qchat_message_cpp_def.h:358
bool route_enable
是否需要抄送
Definition: nim_qchat_message_cpp_def.h:353
std::string extension
操作扩展字段
Definition: nim_qchat_message_cpp_def.h:345
std::string env
环境变量,用于指向不同的抄送、第三方回调等配置
Definition: nim_qchat_message_cpp_def.h:351
QChatMessageUpdateInfo()=default
std::string push_payload
推送payload
Definition: nim_qchat_message_cpp_def.h:349
std::string postscript
操作附言
Definition: nim_qchat_message_cpp_def.h:343
std::string operator_id
Definition: nim_qchat_message_cpp_def.h:355
NIMQChatMessageUpdateInfo ToCParam() const
Definition: nim_qchat_message_cpp_def.h:368
std::string push_content
推送文案
Definition: nim_qchat_message_cpp_def.h:347
Definition: nim_qchat_message_cpp_def.h:677
QChatMessageUpdateOpeInfo(const NIMQChatMessageUpdateOpeInfo &c_param)
Definition: nim_qchat_message_cpp_def.h:691
std::string push_payload
推送payload
Definition: nim_qchat_message_cpp_def.h:689
std::string extension
操作扩展字段
Definition: nim_qchat_message_cpp_def.h:685
std::string push_content
推送文案
Definition: nim_qchat_message_cpp_def.h:687
NIMQChatMessageUpdateOpeInfo ToCParam() const
Definition: nim_qchat_message_cpp_def.h:699
QChatMessageUpdateOpeInfo()=default
std::string postscript
操作附言
Definition: nim_qchat_message_cpp_def.h:683
std::string operator_id
操作者账号
Definition: nim_qchat_message_cpp_def.h:679
Definition: nim_qchat_message_cpp_def.h:812
QChatMsgUpdatedResp(const NIMQChatMsgUpdatedResp &c_resp)
Definition: nim_qchat_message_cpp_def.h:820
QChatMsgUpdatedResp()=default
Definition: nim_qchat_message_cpp_def.h:274
QChatNotificationAttach(const NIMQChatNotificationAttach &c_param)
Definition: nim_qchat_message_cpp_def.h:277
NIMQChatNotificationAttach ToCParam() const
Definition: nim_qchat_message_cpp_def.h:281
void SetRawData(const std::string &raw_data) override
Definition: nim_qchat_message_cpp_def.h:287
QChatNotificationAttach(const std::string &raw_data)
Definition: nim_qchat_message_cpp_def.h:276
QChatNotificationAttach()=default
std::string GetRawData() const override
Definition: nim_qchat_message_cpp_def.h:296
std::string data
Definition: nim_qchat_message_cpp_def.h:304
Definition: nim_qchat_public_cpp_def.h:81
NIMQChatPageInfo ToCParam() const
Definition: nim_qchat_public_cpp_def.h:94
Definition: nim_qchat_message_cpp_def.h:804
QChatRecvMsgResp(const NIMQChatRecvMsgResp &c_resp)
Definition: nim_qchat_message_cpp_def.h:808
QChatRecvMsgResp()=default
Definition: nim_qchat_message_cpp_def.h:1291
NIMQChatRegMsgUpdatedCbParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1294
Definition: nim_qchat_message_cpp_def.h:1275
NIMQChatRegRecvMsgCbParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1278
Definition: nim_qchat_message_cpp_def.h:1606
QChatReplyMessageParam(const NIMQChatReplyMessageParam &c_param)
Definition: nim_qchat_message_cpp_def.h:1614
QChatMessageSend message
回复消息内容
Definition: nim_qchat_message_cpp_def.h:1612
QChatReplyMessageParam()=default
QChatMessage quote_message
被引用的消息体
Definition: nim_qchat_message_cpp_def.h:1610
NIMQChatReplyMessageParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1623
Definition: nim_qchat_message_cpp_def.h:1418
NIMQChatRevokeMessageParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1425
Definition: nim_qchat_message_cpp_def.h:1307
QChatSendMessageParam()=default
QChatSendMessageParam(const NIMQChatSendMessageParam &c_param)
Definition: nim_qchat_message_cpp_def.h:1313
NIMQChatSendMessageParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1321
Definition: nim_qchat_message_cpp_def.h:827
QChatSendMessageResp(const NIMQChatSendMessageResp &c_resp)
Definition: nim_qchat_message_cpp_def.h:833
QChatSendMessageResp()=default
NIMQChatSendMessageResp ToCParam() const
Definition: nim_qchat_message_cpp_def.h:839
Definition: nim_qchat_message_cpp_def.h:307
std::string data
Definition: nim_qchat_message_cpp_def.h:337
std::string GetRawData() const override
Definition: nim_qchat_message_cpp_def.h:329
QChatTipsAttach()=default
QChatTipsAttach(const std::string &raw_data)
Definition: nim_qchat_message_cpp_def.h:309
void SetRawData(const std::string &raw_data) override
Definition: nim_qchat_message_cpp_def.h:320
NIMQChatTipsAttach ToCParam() const
Definition: nim_qchat_message_cpp_def.h:314
QChatTipsAttach(const NIMQChatTipsAttach &c_param)
Definition: nim_qchat_message_cpp_def.h:310
Definition: nim_qchat_message_cpp_def.h:1334
QChatUpdateMessageParam(const NIMQChatRevokeMessageParam &c_param)
Definition: nim_qchat_message_cpp_def.h:1373
QChatUpdateMessageParam(const NIMQChatUpdateMessageParam &c_param)
Definition: nim_qchat_message_cpp_def.h:1357
QChatUpdateMessageParam()=default
NIMQChatUpdateMessageParam ToCParam() const
Definition: nim_qchat_message_cpp_def.h:1397
QChatUpdateMessageParam(const NIMQChatDeleteMessageParam &c_param)
Definition: nim_qchat_message_cpp_def.h:1385
Definition: nim_qchat_message_cpp_def.h:851
NIMQChatUpdateMessageResp ToCParam() const
Definition: nim_qchat_message_cpp_def.h:863
QChatUpdateMessageResp(const NIMQChatUpdateMessageResp &c_resp)
Definition: nim_qchat_message_cpp_def.h:857
QChatUpdateMessageResp()=default
Definition: nim_qchat_message_cpp_def.h:184
QChatVideoAttach()=default
NIMQChatVideoAttach ToCParam() const
Definition: nim_qchat_message_cpp_def.h:197
std::string GetRawData() const override
Definition: nim_qchat_message_cpp_def.h:220
QChatVideoAttach(const std::string &raw_data)
Definition: nim_qchat_message_cpp_def.h:186
QChatVideoAttach(const NIMQChatVideoAttach &c_param)
Definition: nim_qchat_message_cpp_def.h:187
void SetRawData(const std::string &raw_data) override
Definition: nim_qchat_message_cpp_def.h:209