NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_qchat_server_cpp_def.h
浏览该文件的文档.
1
11#ifndef __NIM_QCHAT_SERVER_CPP_DEF_H__
12#define __NIM_QCHAT_SERVER_CPP_DEF_H__
13
15
17
18namespace nim {
19
23 uint64_t server_id{0};
25 uint32_t server_type{0};
27 bool searchable{true};
29 std::string name{""};
31 std::string icon{""};
33 std::string custom{""};
35 std::string owner_id{""};
37 uint64_t member_count{0};
43 bool valid_flag{false};
45 uint32_t channel_count{0};
47 uint32_t channel_category_count{0};
49 uint64_t create_time{0};
51 uint64_t update_time{0};
53 uint64_t reorder_weight{0};
54 QChatServerInfo() = default;
56 server_id = c_param.server_id;
57 server_type = c_param.server_type;
58 searchable = c_param.searchable;
59 name = c_param.name ? c_param.name : "";
60 icon = c_param.icon ? c_param.icon : "";
61 custom = c_param.custom ? c_param.custom : "";
62 owner_id = c_param.owner_id ? c_param.owner_id : "";
63 member_count = c_param.member_count;
64 invite_mode = c_param.invite_mode;
65 apply_mode = c_param.apply_mode;
66 valid_flag = c_param.valid_flag;
67 channel_count = c_param.channel_count;
68 channel_category_count = c_param.channel_category_count;
69 create_time = c_param.create_time;
70 update_time = c_param.update_time;
71 reorder_weight = c_param.reorder_weight;
72 }
74 NIMQChatServerInfo c_param;
75 c_param.server_id = server_id;
76 c_param.server_type = server_type;
77 c_param.searchable = searchable;
78 c_param.name = const_cast<char*>(name.c_str());
79 c_param.icon = const_cast<char*>(icon.c_str());
80 c_param.custom = const_cast<char*>(custom.c_str());
81 c_param.owner_id = const_cast<char*>(owner_id.c_str());
82 c_param.member_count = member_count;
83 c_param.invite_mode = invite_mode;
84 c_param.apply_mode = apply_mode;
85 c_param.valid_flag = valid_flag;
86 c_param.channel_count = channel_count;
87 c_param.channel_category_count = channel_category_count;
88 c_param.create_time = create_time;
89 c_param.update_time = update_time;
90 c_param.reorder_weight = reorder_weight;
91 return c_param;
92 }
93};
94
98 std::string accid;
100 std::string update_postscript;
104 uint64_t update_time{0};
107 accid = c_param.accid ? c_param.accid : "";
108 update_postscript = c_param.update_postscript ? c_param.update_postscript : "";
109 status = c_param.status;
110 update_time = c_param.update_time;
111 }
114 c_param.accid = const_cast<char*>(accid.c_str());
115 c_param.update_postscript = const_cast<char*>(update_postscript.c_str());
116 c_param.status = status;
117 c_param.update_time = update_time;
118 return c_param;
119 }
120};
121
125};
126
130 std::string apply_postscript;
132 std::string update_accid;
134 std::string update_postscript;
137 apply_postscript = c_param.apply_postscript ? c_param.apply_postscript : "";
138 update_accid = c_param.update_accid ? c_param.update_accid : "";
139 update_postscript = c_param.update_postscript ? c_param.update_postscript : "";
140 }
142 NIMQChatApplyInfoData c_param;
143 c_param.apply_postscript = const_cast<char*>(apply_postscript.c_str());
144 c_param.update_accid = const_cast<char*>(update_accid.c_str());
145 c_param.update_postscript = const_cast<char*>(update_postscript.c_str());
146 return c_param;
147 }
148};
149
153 std::string invite_postscript;
155 std::vector<QChatInviteUserInfo> invite_user_infos;
158 invite_postscript = c_param.invite_postscript ? c_param.invite_postscript : "";
159 for (size_t i = 0; i < c_param.invite_user_infos_count; i++) {
160 invite_user_infos.emplace_back(c_param.invite_user_infos[i]);
161 }
162 }
165 c_param.invite_postscript = const_cast<char*>(invite_postscript.c_str());
166 c_invite_user_infos.clear();
167 for (auto&& user_info : invite_user_infos) {
168 c_invite_user_infos.push_back(user_info.ToCParam());
169 }
170 c_param.invite_user_infos = const_cast<NIMQChatInviteUserInfo*>(c_invite_user_infos.data());
171 c_param.invite_user_infos_count = c_invite_user_infos.size();
172 return c_param;
173 }
174
175protected:
176 mutable std::vector<NIMQChatInviteUserInfo> c_invite_user_infos;
177};
178
182 std::string invite_postscript;
184 std::string update_postscript;
187 invite_postscript = c_param.invite_postscript ? c_param.invite_postscript : "";
188 update_postscript = c_param.update_postscript ? c_param.update_postscript : "";
189 }
192 c_param.invite_postscript = const_cast<char*>(invite_postscript.c_str());
193 c_param.update_postscript = const_cast<char*>(update_postscript.c_str());
194 return c_param;
195 }
196};
197
201 std::string invite_postscript;
203 std::string invite_code;
205 uint32_t invite_count{0};
208 invite_postscript = c_param.invite_postscript ? c_param.invite_postscript : "";
209 invite_code = c_param.invite_code ? c_param.invite_code : "";
210 invite_count = c_param.invite_count;
211 }
214 c_param.invite_postscript = const_cast<char*>(invite_postscript.c_str());
215 c_param.invite_code = const_cast<char*>(invite_code.c_str());
216 c_param.invite_count = invite_count;
217 return c_param;
218 }
219};
220
224 std::string invite_postscript;
226 std::string update_postscript;
228 std::string invite_code;
231 invite_postscript = c_param.invite_postscript ? c_param.invite_postscript : "";
232 update_postscript = c_param.update_postscript ? c_param.update_postscript : "";
233 invite_code = c_param.invite_code ? c_param.invite_code : "";
234 }
237 c_param.invite_postscript = const_cast<char*>(invite_postscript.c_str());
238 c_param.update_postscript = const_cast<char*>(update_postscript.c_str());
239 c_param.invite_code = const_cast<char*>(invite_code.c_str());
240 return c_param;
241 }
242};
243
247 std::string accid;
251 uint64_t server_id{0};
255 uint64_t request_id{0};
257 uint64_t record_id{0};
259 uint64_t create_time{0};
261 uint64_t update_time{0};
263 uint64_t expire_time{0};
265 std::shared_ptr<QChatInviteApplyRecordData> data;
267 std::string raw_data;
270 accid = c_param.accid ? c_param.accid : "";
271 type = c_param.type;
272 server_id = c_param.server_id;
273 status = c_param.status;
274 request_id = c_param.request_id;
275 record_id = c_param.record_id;
276 create_time = c_param.create_time;
277 update_time = c_param.update_time;
278 expire_time = c_param.expire_time;
279 switch (type) {
281 data = std::make_shared<QChatApplyInfoData>(c_param.apply_data);
282 break;
284 data = std::make_shared<QChatInviteInfoData>(c_param.invite_data);
285 break;
287 data = std::make_shared<QChatBeInvitedInfoData>(c_param.be_invited_data);
288 break;
290 data = std::make_shared<QChatGenerateInviteCodeInfoData>(c_param.generate_invite_code_data);
291 break;
293 data = std::make_shared<QChatJoinByInviteCodeInfoData>(c_param.join_by_invite_code_data);
294 break;
295 }
296 raw_data = c_param.raw_data ? c_param.raw_data : "";
297 }
300 c_param.accid = const_cast<char*>(accid.c_str());
301 c_param.type = type;
302 c_param.server_id = server_id;
303 c_param.status = status;
304 c_param.request_id = request_id;
305 c_param.record_id = record_id;
306 c_param.create_time = create_time;
307 c_param.update_time = update_time;
308 c_param.expire_time = expire_time;
309 switch (type) {
311 c_param.apply_data = dynamic_cast<QChatApplyInfoData*>(data.get())->ToCParam();
312 break;
314 c_param.invite_data = dynamic_cast<QChatInviteInfoData*>(data.get())->ToCParam();
315 break;
317 c_param.be_invited_data = dynamic_cast<QChatBeInvitedInfoData*>(data.get())->ToCParam();
318 break;
320 c_param.generate_invite_code_data = dynamic_cast<QChatGenerateInviteCodeInfoData*>(data.get())->ToCParam();
321 break;
323 c_param.join_by_invite_code_data = dynamic_cast<QChatJoinByInviteCodeInfoData*>(data.get())->ToCParam();
324 break;
325 }
326 c_param.raw_data = const_cast<char*>(raw_data.c_str());
327 return c_param;
328 }
329};
330
334 uint32_t res_code{0};
336 QChatServerInfo server_info{};
339 res_code = c_resp.res_code;
340 if (c_resp.res_code != kNIMResSuccess)
341 return;
342 server_info = c_resp.server_info;
343 }
346 c_resp.res_code = res_code;
347 if (res_code != kNIMResSuccess)
348 return c_resp;
349 c_resp.server_info = server_info.ToCParam();
350 return c_resp;
351 }
352};
353
356
359
363 uint32_t res_code{0};
365 std::vector<QChatServerInfo> server_list{};
368 res_code = c_resp.res_code;
369 if (c_resp.res_code != kNIMResSuccess)
370 return;
371 for (size_t i = 0; i < c_resp.server_list_count; i++) {
372 server_list.emplace_back(c_resp.server_list[i]);
373 }
374 }
376 NIMQChatServerGetServersResp c_response{};
377 c_response.res_code = res_code;
378 vec_servers.clear();
379 for (auto&& info : server_list) {
380 vec_servers.push_back(info.ToCParam());
381 }
382 c_response.server_list_count = vec_servers.size();
383 c_response.server_list = vec_servers.data();
384 return c_response;
385 };
386
387protected:
388 mutable std::vector<NIMQChatServerInfo> vec_servers;
389};
390
394 QChatPageInfo page_info{};
397 res_code = c_resp.res_code;
398 page_info = c_resp.page_info;
399 if (c_resp.res_code != kNIMResSuccess)
400 return;
401 for (size_t i = 0; i < c_resp.server_list_count; i++) {
402 server_list.emplace_back(c_resp.server_list[i]);
403 }
404 }
407 c_response.res_code = res_code;
408 c_response.page_info = page_info.ToCParam();
409 vec_servers.clear();
410 for (auto&& info : server_list) {
411 vec_servers.push_back(info.ToCParam());
412 }
413 c_response.server_list_count = vec_servers.size();
414 c_response.server_list = vec_servers.data();
415 return c_response;
416 };
417};
418
422 uint32_t res_code{0};
424 uint64_t request_id{0};
426 uint64_t expire_time{0};
428 std::map<std::string, NIMQChatServerInviteFailReason> fail_map;
431 res_code = c_resp.res_code;
432 request_id = c_resp.request_id;
433 expire_time = c_resp.expire_time;
434 for (size_t i = 0; i < c_resp.accids_count; i++) {
435 fail_map.emplace(c_resp.accids[i], c_resp.fail_reasons[i]);
436 }
437 };
440 c_resp.res_code = res_code;
441 c_resp.request_id = request_id;
442 c_resp.expire_time = expire_time;
443 vec_accids.clear();
444 vec_fail_reason.clear();
445 for (auto&& pair : fail_map) {
446 vec_accids.push_back(const_cast<char*>(pair.first.c_str()));
447 vec_fail_reason.push_back(pair.second);
448 }
449 c_resp.accids_count = vec_accids.size();
450 c_resp.accids = vec_accids.data();
451 c_resp.fail_reasons = const_cast<NIMQChatServerInviteFailReason*>(vec_fail_reason.data());
452 return c_resp;
453 }
454
455protected:
456 mutable std::vector<char*> vec_accids;
457 mutable std::vector<NIMQChatServerInviteFailReason> vec_fail_reason;
458};
459
462
465
469 uint32_t res_code{0};
471 uint64_t request_id{0};
473 uint64_t expire_time{0};
476 res_code = c_resp.res_code;
477 request_id = c_resp.request_id;
478 expire_time = c_resp.expire_time;
479 };
482 c_resp.res_code = res_code;
483 c_resp.request_id = request_id;
484 c_resp.expire_time = expire_time;
485 return c_resp;
486 }
487};
488
491
494
497
500
503
507 uint32_t res_code{0};
509 std::vector<QChatMemberInfo> member_list{};
512 res_code = c_resp.res_code;
513 if (c_resp.res_code != kNIMResSuccess)
514 return;
515 for (size_t i = 0; i < c_resp.member_list_count; i++) {
516 member_list.emplace_back(c_resp.member_list[i]);
517 }
518 }
520 NIMQChatServerGetMembersResp c_response{};
521 c_response.res_code = res_code;
522 vec_members.clear();
523 for (auto&& info : member_list) {
524 vec_members.push_back(info.ToCParam());
525 }
526 c_response.member_list_count = vec_members.size();
527 c_response.member_list = vec_members.data();
528 return c_response;
529 };
530
531protected:
532 mutable std::vector<NIMQChatMemberInfo> vec_members;
533};
534
537 QChatPageInfo page_info{};
540 res_code = c_resp.res_code;
541 page_info = c_resp.page_info;
542 if (c_resp.res_code != kNIMResSuccess)
543 return;
544 for (size_t i = 0; i < c_resp.member_list_count; i++) {
545 member_list.emplace_back(c_resp.member_list[i]);
546 }
547 }
550 c_response.res_code = res_code;
551 c_response.page_info = page_info.ToCParam();
552 vec_members.clear();
553 for (auto&& info : member_list) {
554 vec_members.push_back(info.ToCParam());
555 }
556 c_response.member_list_count = vec_members.size();
557 c_response.member_list = vec_members.data();
558 return c_response;
559 };
560};
561
565 uint32_t res_code{0};
567 std::vector<uint64_t> failed_servers{};
570 res_code = c_resp.res_code;
571 for (size_t i = 0; i < c_resp.failed_servers_count; i++) {
572 failed_servers.push_back(c_resp.failed_servers[i]);
573 }
574 }
577 c_resp.res_code = res_code;
578 c_resp.failed_servers = const_cast<uint64_t*>(failed_servers.data());
579 c_resp.failed_servers_count = failed_servers.size();
580 return c_resp;
581 }
582};
583
586
589
593 uint32_t res_code{0};
595 QChatPageInfo page_info{};
597 std::vector<QChatMemberBanInfo> ban_list{};
600 res_code = c_resp.res_code;
601 page_info = c_resp.page_info;
602 if (c_resp.res_code != kNIMResSuccess)
603 return;
604 for (size_t i = 0; i < c_resp.ban_list_count; i++) {
605 ban_list.emplace_back(c_resp.ban_list[i]);
606 }
607 }
610 c_response.res_code = res_code;
611 c_response.page_info = page_info.ToCParam();
612 c_ban_list.clear();
613 for (auto&& info : ban_list) {
614 c_ban_list.push_back(info.ToCParam());
615 }
616 c_response.ban_list_count = c_ban_list.size();
617 c_response.ban_list = c_ban_list.data();
618 return c_response;
619 }
620
621protected:
622 mutable std::vector<NIMQChatMemberBanInfo> c_ban_list;
623};
624
627
630
634 std::vector<NIMQChatServerUnreadInfo> unread_infos{};
637 for (size_t i = 0; i < c_resp.unread_infos_count; i++) {
638 unread_infos.emplace_back(c_resp.unread_infos[i]);
639 }
640 }
641};
642
646 uint32_t res_code{0};
648 uint64_t server_id{0};
650 uint64_t request_id{0};
652 std::string invite_code;
654 uint64_t expire_time{0};
657 res_code = c_resp.res_code;
658 server_id = c_resp.server_id;
659 request_id = c_resp.request_id;
660 invite_code = c_resp.invite_code ? c_resp.invite_code : "";
661 expire_time = c_resp.expire_time;
662 }
665 c_response.res_code = res_code;
666 c_response.server_id = server_id;
667 c_response.request_id = request_id;
668 c_response.invite_code = const_cast<char*>(invite_code.c_str());
669 c_response.expire_time = expire_time;
670 return c_response;
671 }
672};
673
676
680 uint32_t res_code{0};
682 std::vector<QChatInviteApplyRecord> invite_apply_records{};
685 res_code = c_resp.res_code;
686 for (size_t i = 0; i < c_resp.invite_apply_records_count; i++) {
687 invite_apply_records.emplace_back(c_resp.invite_apply_records[i]);
688 }
689 }
692 c_response.res_code = res_code;
693 c_invite_apply_records.clear();
694 for (auto&& info : invite_apply_records) {
695 c_invite_apply_records.push_back(info.ToCParam());
696 }
697 c_response.invite_apply_records_count = c_invite_apply_records.size();
698 c_response.invite_apply_records = const_cast<NIMQChatInviteApplyRecord*>(c_invite_apply_records.data());
699 return c_response;
700 }
701
702protected:
703 mutable std::vector<NIMQChatInviteApplyRecord> c_invite_apply_records;
704};
705
708
712 uint32_t res_code{0};
714 std::vector<uint64_t> succeeded_servers{};
716 std::vector<uint64_t> failed_servers{};
718 uint64_t timestamp{0};
721 res_code = c_resp.res_code;
722 for (size_t i = 0; i < c_resp.succeeded_servers_count; i++) {
723 succeeded_servers.emplace_back(c_resp.succeeded_servers[i]);
724 }
725 for (size_t i = 0; i < c_resp.failed_servers_count; i++) {
726 failed_servers.emplace_back(c_resp.failed_servers[i]);
727 }
728 timestamp = c_resp.timestamp;
729 }
731 NIMQChatServerMarkReadResp c_response{};
732 c_response.res_code = res_code;
733 c_response.succeeded_servers = const_cast<uint64_t*>(succeeded_servers.data());
734 c_response.succeeded_servers_count = succeeded_servers.size();
735 c_response.failed_servers = const_cast<uint64_t*>(failed_servers.data());
736 c_response.failed_servers_count = failed_servers.size();
737 c_response.timestamp = timestamp;
738 return c_response;
739 }
740};
741
745 uint32_t res_code{0};
747 std::vector<uint64_t> failed_servers{};
749 std::vector<NIMQChatUnreadInfo> unread_infos{};
752 res_code = c_resp.res_code;
753 for (size_t i = 0; i < c_resp.failed_servers_count; i++) {
754 failed_servers.emplace_back(c_resp.failed_servers[i]);
755 }
756 for (size_t i = 0; i < c_resp.unread_infos_count; i++) {
757 unread_infos.emplace_back(c_resp.unread_infos[i]);
758 }
759 }
762 c_response.res_code = res_code;
763 c_response.failed_servers = const_cast<uint64_t*>(failed_servers.data());
764 c_response.failed_servers_count = failed_servers.size();
765 c_response.unread_infos = const_cast<NIMQChatUnreadInfo*>(unread_infos.data());
766 c_response.unread_infos_count = unread_infos.size();
767 return c_response;
768 }
769};
770
774 uint32_t res_code{0};
776 std::vector<uint64_t> failed_servers{};
779 res_code = c_resp.res_code;
780 for (size_t i = 0; i < c_resp.failed_servers_count; i++) {
781 failed_servers.push_back(c_resp.failed_servers[i]);
782 }
783 }
786 c_resp.res_code = res_code;
787 c_resp.failed_servers = const_cast<uint64_t*>(failed_servers.data());
788 c_resp.failed_servers_count = failed_servers.size();
789 return c_resp;
790 }
791};
792
796 uint32_t res_code{0};
798 std::vector<uint64_t> failed_servers{};
801 res_code = c_resp.res_code;
802 for (size_t i = 0; i < c_resp.failed_servers_count; i++) {
803 failed_servers.push_back(c_resp.failed_servers[i]);
804 }
805 }
808 c_resp.res_code = res_code;
809 c_resp.failed_servers = const_cast<uint64_t*>(failed_servers.data());
810 c_resp.failed_servers_count = failed_servers.size();
811 return c_resp;
812 }
813};
814
818 uint32_t res_code{0};
820 std::vector<uint64_t> failed_servers{};
823 res_code = c_resp.res_code;
824 for (size_t i = 0; i < c_resp.failed_servers_count; i++) {
825 failed_servers.push_back(c_resp.failed_servers[i]);
826 }
827 }
830 c_resp.res_code = res_code;
831 c_resp.failed_servers = const_cast<uint64_t*>(failed_servers.data());
832 c_resp.failed_servers_count = failed_servers.size();
833 return c_resp;
834 }
835};
836
838using ServerUnreadCallback = std::function<void(const QChatServerUnreadResp&)>;
840typedef std::function<void(const QChatServerCreateResp&)> ServerCreateCallback;
842typedef std::function<void(const QChatServerDeleteResp&)> ServerRemoveCallback;
844typedef std::function<void(const QChatServerUpdateResp&)> ServerUpdateCallback;
846typedef std::function<void(const QChatServerGetServersResp&)> GetServersCallback;
848typedef std::function<void(const QChatServerGetServersPageResp&)> GetServersPageCallback;
850typedef std::function<void(const QChatServerInviteResp&)> ServerInviteCallback;
852typedef std::function<void(const QChatServerAcceptInviteResp&)> ServerAcceptInviteCallback;
854typedef std::function<void(const QChatServerRejectInviteResp&)> ServerRejectInviteCallback;
856typedef std::function<void(const QChatServerApplyResp&)> ServerApplyCallback;
858typedef std::function<void(const QChatServerAcceptApplyResp&)> ServerAcceptApplyCallback;
860typedef std::function<void(const QChatServerRejectApplyResp&)> ServerRejectApplyCallback;
862typedef std::function<void(const QChatServerKickResp&)> ServerKickCallback;
864typedef std::function<void(const QChatServerLeaveResp&)> ServerLeaveCallback;
868typedef std::function<void(const QChatServerGetMembersResp&)> ServerGetMembersCallback;
872typedef std::function<void(const QChatServerSubscribeResp&)> ServerSubscribeCallback;
874typedef std::function<void(const QChatServerBanMemberResp&)> ServerBanMemberCallback;
876typedef std::function<void(const QChatServerUnbanMemberResp&)> ServerUnbanMemberCallback;
892using ServerMarkReadCallback = std::function<void(const QChatServerMarkReadResp&)>;
901
906 static ServerUnreadCallback cb_holder = nullptr;
907 cb_holder = cb;
909 param.cb = [](const NIMQChatServerUnreadResp* resp) {
910 if (cb_holder)
911 cb_holder(*resp);
912 };
913 return param;
914 }
915};
916
922 QChatServerInfo server_info{};
927 server_info = c_param.server_info;
928 anti_spam_info = c_param.anti_spam_info;
929 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerCreateResp& response) {
930 auto c_response = response.ToCParam();
931 c_response.user_data = user_data;
932 c_callback(&c_response);
933 };
934 }
936 auto cb_holder = new ServerCreateCallback(cb);
937 NIMQChatServerCreateParam param = {};
938 param.user_data = cb_holder;
939 param.cb = [](const NIMQChatServerCreateResp* resp) {
940 InvokeCallback<ServerCreateCallback, NIMQChatServerCreateResp>(resp);
941 };
942 param.server_info = server_info.ToCParam();
943 param.anti_spam_info = anti_spam_info.ToCParam();
944 return param;
945 }
946};
947
953 uint64_t server_id{0};
956 server_id = c_param.server_id;
957 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerDeleteResp& response) {
958 auto c_response = response.ToCParam();
959 c_response.user_data = user_data;
960 c_callback(&c_response);
961 };
962 }
964 auto cb_holder = new ServerRemoveCallback(cb);
965 NIMQChatServerDeleteParam param = {};
966 param.user_data = cb_holder;
967 param.cb = [](const NIMQChatServerDeleteResp* resp) {
968 InvokeCallback<ServerRemoveCallback, NIMQChatServerDeleteResp>(resp);
969 };
970 param.server_id = server_id;
971 return param;
972 }
973};
974
980 QChatServerInfo server_info{};
985 server_info = c_param.server_info;
986 anti_spam_info = c_param.anti_spam_info;
987 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerUpdateResp& response) {
988 auto c_response = response.ToCParam();
989 c_response.user_data = user_data;
990 c_callback(&c_response);
991 };
992 }
994 auto cb_holder = new ServerUpdateCallback(cb);
995 NIMQChatServerUpdateParam param = {};
996 param.user_data = cb_holder;
997 param.cb = [](const NIMQChatServerUpdateResp* resp) {
998 InvokeCallback<ServerUpdateCallback, NIMQChatServerUpdateResp>(resp);
999 };
1000 param.server_info = server_info.ToCParam();
1001 param.anti_spam_info = anti_spam_info.ToCParam();
1002 return param;
1003 }
1004};
1005
1011 std::vector<uint64_t> server_ids{};
1014 for (size_t i = 0; i < c_param.server_ids_count; i++) {
1015 server_ids.push_back(c_param.server_ids[i]);
1016 }
1017 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetServersResp& response) {
1018 auto c_response = response.ToCParam();
1019 c_response.user_data = user_data;
1020 c_callback(&c_response);
1021 };
1022 }
1024 auto cb_holder = new GetServersCallback(cb);
1026 param.user_data = cb_holder;
1027 param.cb = [](const NIMQChatServerGetServersResp* resp) {
1028 InvokeCallback<GetServersCallback, NIMQChatServerGetServersResp>(resp);
1029 };
1030 param.server_ids_count = server_ids.size();
1031 param.server_ids = const_cast<uint64_t*>(server_ids.data());
1032 return param;
1033 }
1034};
1035
1041 uint64_t timestamp{0};
1043 uint32_t limit{100};
1046 timestamp = c_param.timestamp;
1047 limit = c_param.limit;
1048 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetServersPageResp& response) {
1049 auto c_response = response.ToCParam();
1050 c_response.user_data = user_data;
1051 c_callback(&c_response);
1052 };
1053 }
1055 auto cb_holder = new GetServersPageCallback(cb);
1057 param.user_data = cb_holder;
1058 param.cb = [](const NIMQChatServerGetServersPageResp* resp) {
1059 InvokeCallback<GetServersPageCallback, NIMQChatServerGetServersPageResp>(resp);
1060 };
1061 param.timestamp = timestamp;
1062 param.limit = limit;
1063 return param;
1064 }
1065};
1066
1072 uint64_t server_id{0};
1074 std::vector<std::string> invite_ids{};
1076 uint64_t ttl{0};
1078 std::string postscript;
1081 server_id = c_param.server_id;
1082 for (size_t i = 0; i < c_param.invite_ids_count; i++) {
1083 invite_ids.push_back(c_param.invite_ids[i]);
1084 }
1085 ttl = c_param.ttl;
1086 postscript = c_param.postscript;
1087 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerInviteResp& response) {
1088 auto c_response = response.ToCParam();
1089 c_response.user_data = user_data;
1090 c_callback(&c_response);
1091 };
1092 }
1094 auto cb_holder = new ServerInviteCallback(cb);
1095 NIMQChatServerInviteParam param = {};
1096 vec_invite_ids.clear();
1097 for (auto&& id : invite_ids) {
1098 vec_invite_ids.push_back(const_cast<char*>(id.c_str()));
1099 }
1100 param.invite_ids_count = vec_invite_ids.size();
1101 param.invite_ids = vec_invite_ids.data();
1102 param.user_data = cb_holder;
1103 param.cb = [](const NIMQChatServerInviteResp* resp) {
1104 InvokeCallback<ServerInviteCallback, NIMQChatServerInviteResp>(resp);
1105 };
1106 param.server_id = server_id;
1107 param.ttl = ttl;
1108 param.postscript = const_cast<char*>(postscript.c_str());
1109 return param;
1110 }
1111
1112protected:
1113 mutable std::vector<char*> vec_invite_ids{};
1114};
1115
1121 uint64_t server_id{0};
1123 std::string accid{""};
1125 uint64_t request_id{0};
1128 server_id = c_param.server_id;
1129 accid = c_param.accid;
1130 request_id = c_param.request_id;
1131 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerAcceptInviteResp& response) {
1132 auto c_response = response.ToCParam();
1133 c_response.user_data = user_data;
1134 c_callback(&c_response);
1135 };
1136 }
1138 auto cb_holder = new ServerAcceptInviteCallback(cb);
1140 param.user_data = cb_holder;
1141 param.cb = [](const NIMQChatServerAcceptInviteResp* resp) {
1142 InvokeCallback<ServerAcceptInviteCallback, NIMQChatServerAcceptInviteResp>(resp);
1143 };
1144 param.server_id = server_id;
1145 param.accid = const_cast<char*>(accid.c_str());
1146 param.request_id = request_id;
1147 return param;
1148 }
1149};
1150
1156 uint64_t server_id{0};
1158 std::string accid{""};
1160 std::string postscript;
1162 uint64_t request_id{0};
1165 server_id = c_param.server_id;
1166 accid = c_param.accid;
1167 postscript = c_param.postscript;
1168 request_id = c_param.request_id;
1169 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerRejectInviteResp& response) {
1170 auto c_response = response.ToCParam();
1171 c_response.user_data = user_data;
1172 c_callback(&c_response);
1173 };
1174 }
1176 auto cb_holder = new ServerRejectInviteCallback(cb);
1178 param.user_data = cb_holder;
1179 param.cb = [](const NIMQChatServerRejectInviteResp* resp) {
1180 InvokeCallback<ServerRejectInviteCallback, NIMQChatServerRejectInviteResp>(resp);
1181 };
1182 param.server_id = server_id;
1183 param.accid = const_cast<char*>(accid.c_str());
1184 param.postscript = const_cast<char*>(postscript.c_str());
1185 param.request_id = request_id;
1186 return param;
1187 }
1188};
1189
1195 uint64_t server_id{0};
1197 uint64_t ttl{0};
1199 std::string postscript;
1202 server_id = c_param.server_id;
1203 postscript = c_param.postscript;
1204 ttl = c_param.ttl;
1205 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerApplyResp& response) {
1206 auto c_response = response.ToCParam();
1207 c_response.user_data = user_data;
1208 c_callback(&c_response);
1209 };
1210 }
1212 auto cb_holder = new ServerApplyCallback(cb);
1213 NIMQChatServerApplyParam param = {};
1214 param.user_data = cb_holder;
1215 param.cb = [](const NIMQChatServerApplyResp* resp) {
1216 InvokeCallback<ServerApplyCallback, NIMQChatServerApplyResp>(resp);
1217 };
1218 param.server_id = server_id;
1219 param.ttl = ttl;
1220 param.postscript = const_cast<char*>(postscript.c_str());
1221 return param;
1222 }
1223};
1224
1230 uint64_t server_id{0};
1232 std::string accid{""};
1234 uint64_t request_id{0};
1237 server_id = c_param.server_id;
1238 accid = c_param.accid;
1239 request_id = c_param.request_id;
1240 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerAcceptApplyResp& response) {
1241 auto c_response = response.ToCParam();
1242 c_response.user_data = user_data;
1243 c_callback(&c_response);
1244 };
1245 }
1247 auto cb_holder = new ServerAcceptApplyCallback(cb);
1249 param.user_data = cb_holder;
1250 param.cb = [](const NIMQChatServerAcceptApplyResp* resp) {
1251 InvokeCallback<ServerAcceptApplyCallback, NIMQChatServerAcceptApplyResp>(resp);
1252 };
1253 param.server_id = server_id;
1254 param.accid = const_cast<char*>(accid.c_str());
1255 param.request_id = request_id;
1256 return param;
1257 }
1258};
1259
1265 uint64_t server_id{0};
1267 std::string accid{""};
1269 std::string postscript;
1271 uint64_t request_id{0};
1274 server_id = c_param.server_id;
1275 accid = c_param.accid;
1276 postscript = c_param.postscript;
1277 request_id = c_param.request_id;
1278 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerRejectApplyResp& response) {
1279 auto c_response = response.ToCParam();
1280 c_response.user_data = user_data;
1281 c_callback(&c_response);
1282 };
1283 }
1285 auto cb_holder = new ServerRejectApplyCallback(cb);
1287 param.user_data = cb_holder;
1288 param.cb = [](const NIMQChatServerRejectApplyResp* resp) {
1289 InvokeCallback<ServerRejectApplyCallback, NIMQChatServerRejectApplyResp>(resp);
1290 };
1291 param.server_id = server_id;
1292 param.accid = const_cast<char*>(accid.c_str());
1293 param.postscript = const_cast<char*>(postscript.c_str());
1294 param.request_id = request_id;
1295 return param;
1296 }
1297};
1298
1304 uint64_t server_id{0};
1306 std::vector<std::string> accids{};
1309 server_id = c_param.server_id;
1310 for (size_t i = 0; i < c_param.accids_count; i++) {
1311 accids.push_back(c_param.accids[i]);
1312 }
1313 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerKickResp& response) {
1314 auto c_response = response.ToCParam();
1315 c_response.user_data = user_data;
1316 c_callback(&c_response);
1317 };
1318 }
1320 auto cb_holder = new ServerKickCallback(cb);
1321 NIMQChatServerKickParam param = {};
1322 vec_accids.clear();
1323 for (auto&& id : accids) {
1324 vec_accids.push_back(const_cast<char*>(id.c_str()));
1325 }
1326 param.accids_count = vec_accids.size();
1327 param.accids = vec_accids.data();
1328 param.user_data = cb_holder;
1329 param.cb = [](const NIMQChatServerKickResp* resp) {
1330 InvokeCallback<ServerKickCallback, NIMQChatServerKickResp>(resp);
1331 };
1332 param.server_id = server_id;
1333 return param;
1334 }
1335
1336protected:
1337 // 以下字段为内部使用
1338 mutable std::vector<char*> vec_accids;
1339};
1340
1346 uint64_t server_id{0};
1349 server_id = c_param.server_id;
1350 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerLeaveResp& response) {
1351 auto c_response = response.ToCParam();
1352 c_response.user_data = user_data;
1353 c_callback(&c_response);
1354 };
1355 }
1357 auto cb_holder = new ServerLeaveCallback(cb);
1358 NIMQChatServerLeaveParam param = {};
1359 param.user_data = cb_holder;
1360 param.cb = [](const NIMQChatServerLeaveResp* resp) {
1361 InvokeCallback<ServerLeaveCallback, NIMQChatServerLeaveResp>(resp);
1362 };
1363 param.server_id = server_id;
1364 return param;
1365 }
1366};
1367
1373 QChatMemberInfo member_info{};
1378 member_info = c_param.member_info;
1379 anti_spam_info = c_param.anti_spam_info;
1380 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerUpdateMemberInfoResp& response) {
1381 auto c_response = response.ToCParam();
1382 c_response.user_data = user_data;
1383 c_callback(&c_response);
1384 };
1385 }
1387 auto cb_holder = new ServerUpdateMemberInfoCallback(cb);
1389 param.user_data = cb_holder;
1390 param.cb = [](const NIMQChatServerUpdateMemberInfoResp* resp) {
1391 InvokeCallback<ServerUpdateMemberInfoCallback, NIMQChatServerUpdateMemberInfoResp>(resp);
1392 };
1393 param.member_info = member_info.ToCParam();
1394 param.anti_spam_info = anti_spam_info.ToCParam();
1395 return param;
1396 }
1397};
1398
1404 std::vector<std::pair<uint64_t, std::string>> server_accid_list;
1407 server_accid_list.clear();
1408 for (auto index = 0; index < c_param.server_accid_list_count; index++) {
1409 server_accid_list.push_back(
1410 std::make_pair(c_param.server_accid_list[index].server_id, std::string(c_param.server_accid_list[index].accid)));
1411 }
1412 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetMembersResp& response) {
1413 auto c_response = response.ToCParam();
1414 c_response.user_data = user_data;
1415 c_callback(&c_response);
1416 };
1417 }
1419 auto cb_holder = new ServerGetMembersCallback(cb);
1420 for (auto&& item : server_accid_list) {
1421 NIMQChatServerMemberPair pair = {};
1422 pair.server_id = item.first;
1423 pair.accid = const_cast<char*>(item.second.c_str());
1424 vec_server_accid_list.push_back(pair);
1425 }
1427 param.user_data = cb_holder;
1428 param.server_accid_list = vec_server_accid_list.data();
1429 param.server_accid_list_count = vec_server_accid_list.size();
1430 param.cb = [](const NIMQChatServerGetMembersResp* resp) {
1431 InvokeCallback<ServerGetMembersCallback, NIMQChatServerGetMembersResp>(resp);
1432 };
1433 return param;
1434 }
1435
1436protected:
1437 // 以下字段为内部使用
1438 mutable std::vector<NIMQChatServerMemberPair> vec_server_accid_list;
1439};
1440
1446 uint64_t server_id{0};
1448 uint64_t timestamp{0};
1450 uint32_t limit{100};
1453 server_id = c_param.server_id;
1454 timestamp = c_param.timestamp;
1455 limit = c_param.limit;
1456 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetMembersPageResp& response) {
1457 auto c_response = response.ToCParam();
1458 c_response.user_data = user_data;
1459 c_callback(&c_response);
1460 };
1461 }
1463 auto cb_holder = new ServerGetMembersPageCallback(cb);
1465 param.user_data = cb_holder;
1466 param.cb = [](const NIMQChatServerGetMembersPageResp* resp) {
1467 InvokeCallback<ServerGetMembersPageCallback, NIMQChatServerGetMembersPageResp>(resp);
1468 };
1469 param.server_id = server_id;
1470 param.timestamp = timestamp;
1471 param.limit = limit;
1472 return param;
1473 }
1474};
1475
1485 std::vector<uint64_t> server_ids{};
1488 ope_type = c_param.ope_type;
1489 sub_type = c_param.sub_type;
1490 for (size_t i = 0; i < c_param.server_ids_count; i++) {
1491 server_ids.push_back(c_param.server_ids[i]);
1492 }
1493 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerSubscribeResp& response) {
1494 auto c_response = response.ToCParam();
1495 c_response.user_data = user_data;
1496 c_callback(&c_response);
1497 };
1498 }
1500 auto cb_holder = new ServerSubscribeCallback(cb);
1502 param.user_data = cb_holder;
1503 param.cb = [](const NIMQChatServerSubscribeResp* resp) {
1504 InvokeCallback<ServerSubscribeCallback, NIMQChatServerSubscribeResp>(resp);
1505 };
1506 param.ope_type = ope_type;
1507 param.sub_type = sub_type;
1508 param.server_ids_count = server_ids.size();
1509 param.server_ids = const_cast<uint64_t*>(server_ids.data());
1510 return param;
1511 }
1512};
1513
1519 uint64_t server_id{0};
1521 std::string accid;
1523 std::string custom;
1526 server_id = c_param.server_id;
1527 accid = c_param.accid;
1528 custom = c_param.custom;
1529 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerBanMemberResp& response) {
1530 auto c_response = response.ToCParam();
1531 c_response.user_data = user_data;
1532 c_callback(&c_response);
1533 };
1534 }
1536 auto cb_holder = new ServerBanMemberCallback(cb);
1538 param.user_data = cb_holder;
1539 param.cb = [](const NIMQChatServerBanMemberResp* resp) {
1540 InvokeCallback<ServerBanMemberCallback, NIMQChatServerBanMemberResp>(resp);
1541 };
1542 param.server_id = server_id;
1543 param.accid = const_cast<char*>(accid.c_str());
1544 param.custom = const_cast<char*>(custom.c_str());
1545 return param;
1546 }
1547};
1548
1554 uint64_t server_id{0};
1556 std::string accid;
1558 std::string custom;
1561 server_id = c_param.server_id;
1562 accid = c_param.accid;
1563 custom = c_param.custom;
1564 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerUnbanMemberResp& response) {
1565 auto c_response = response.ToCParam();
1566 c_response.user_data = user_data;
1567 c_callback(&c_response);
1568 };
1569 }
1571 auto cb_holder = new ServerUnbanMemberCallback(cb);
1573 param.user_data = cb_holder;
1574 param.cb = [](const NIMQChatServerUnbanMemberResp* resp) {
1575 InvokeCallback<ServerUnbanMemberCallback, NIMQChatServerUnbanMemberResp>(resp);
1576 };
1577 param.server_id = server_id;
1578 param.accid = const_cast<char*>(accid.c_str());
1579 param.custom = const_cast<char*>(custom.c_str());
1580 return param;
1581 }
1582};
1583
1589 uint64_t server_id{0};
1591 uint64_t timestamp{0};
1593 uint32_t limit{100};
1596 server_id = c_param.server_id;
1597 timestamp = c_param.timestamp;
1598 limit = c_param.limit;
1599 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetBannedMembersPageResp& response) {
1600 auto c_response = response.ToCParam();
1601 c_response.user_data = user_data;
1602 c_callback(&c_response);
1603 };
1604 }
1606 auto cb_holder = new ServerGetBannedMembersPageCallback(cb);
1608 param.user_data = cb_holder;
1609 param.cb = [](const NIMQChatServerGetBannedMembersPageResp* resp) {
1610 InvokeCallback<ServerGetBannedMembersPageCallback, NIMQChatServerGetBannedMembersPageResp>(resp);
1611 };
1612 param.server_id = server_id;
1613 param.timestamp = timestamp;
1614 param.limit = limit;
1615 return param;
1616 }
1617};
1618
1624 std::string keyword{""};
1626 uint64_t start_time{0};
1628 uint64_t end_time{0};
1634 std::vector<uint32_t> server_types;
1638 uint32_t limit{100};
1640 std::string cursor{""};
1643 keyword = c_param.keyword ? c_param.keyword : "";
1644 start_time = c_param.start_time;
1645 end_time = c_param.end_time;
1646 order = c_param.order;
1647 sort = c_param.sort;
1648 for (size_t i = 0; i < c_param.server_types_count; i++) {
1649 server_types.push_back(c_param.server_types[i]);
1650 }
1651 search_type = c_param.search_type;
1652 limit = c_param.limit;
1653 cursor = c_param.cursor ? c_param.cursor : "";
1654 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerSearchPageResp& response) {
1655 auto c_response = response.ToCParam();
1656 c_response.user_data = user_data;
1657 c_callback(&c_response);
1658 };
1659 }
1661 auto cb_holder = new ServerSearchPageCallback(cb);
1663 param.user_data = cb_holder;
1664 param.cb = [](const NIMQChatServerSearchPageResp* resp) {
1665 InvokeCallback<ServerSearchPageCallback, NIMQChatServerSearchPageResp>(resp);
1666 };
1667 param.keyword = const_cast<char*>(keyword.c_str());
1668 param.start_time = start_time;
1669 param.end_time = end_time;
1670 param.order = order;
1671 param.sort = sort;
1672 param.server_types = const_cast<uint32_t*>(server_types.data());
1673 param.server_types_count = server_types.size();
1674 param.search_type = search_type;
1675 param.limit = limit;
1676 param.cursor = const_cast<char*>(cursor.c_str());
1677 return param;
1678 }
1679};
1680
1686 uint64_t server_id{0};
1688 std::string keyword{""};
1690 uint32_t limit{100};
1693 server_id = c_param.server_id;
1694 keyword = c_param.keyword;
1695 limit = c_param.limit;
1696 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerMemberSearchResp& response) {
1697 auto c_response = response.ToCParam();
1698 c_response.user_data = user_data;
1699 c_callback(&c_response);
1700 };
1701 }
1703 auto cb_holder = new ServerMemberSearchCallback(cb);
1705 param.user_data = cb_holder;
1706 param.cb = [](const NIMQChatServerMemberSearchResp* resp) {
1707 InvokeCallback<ServerMemberSearchCallback, NIMQChatServerMemberSearchResp>(resp);
1708 };
1709 param.server_id = server_id;
1710 param.keyword = const_cast<char*>(keyword.c_str());
1711 param.limit = limit;
1712 return param;
1713 }
1714};
1715
1721 uint64_t server_id{0};
1723 uint64_t ttl{0};
1726 server_id = c_param.server_id;
1727 ttl = c_param.ttl;
1728 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGenerateInviteCodeResp& response) {
1729 auto c_response = response.ToCParam();
1730 c_response.user_data = user_data;
1731 c_callback(&c_response);
1732 };
1733 }
1735 auto cb_holder = new ServerGenerateInviteCodeCallback(cb);
1737 param.user_data = cb_holder;
1738 param.cb = [](const NIMQChatServerGenerateInviteCodeResp* resp) {
1739 InvokeCallback<ServerGenerateInviteCodeCallback, NIMQChatServerGenerateInviteCodeResp>(resp);
1740 };
1741 param.server_id = server_id;
1742 param.ttl = ttl;
1743 return param;
1744 }
1745};
1746
1752 uint64_t server_id{0};
1754 std::string invite_code;
1756 std::string postscript;
1759 server_id = c_param.server_id;
1760 invite_code = c_param.invite_code;
1761 postscript = c_param.postscript;
1762 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerJoinByInviteCodeResp& response) {
1763 auto c_response = response.ToCParam();
1764 c_response.user_data = user_data;
1765 c_callback(&c_response);
1766 };
1767 }
1769 auto cb_holder = new ServerJoinByInviteCodeCallback(cb);
1771 param.user_data = cb_holder;
1772 param.cb = [](const NIMQChatServerJoinByInviteCodeResp* resp) {
1773 InvokeCallback<ServerJoinByInviteCodeCallback, NIMQChatServerJoinByInviteCodeResp>(resp);
1774 };
1775 param.server_id = server_id;
1776 param.invite_code = const_cast<char*>(invite_code.c_str());
1777 param.postscript = const_cast<char*>(postscript.c_str());
1778 return param;
1779 }
1780};
1781
1787 uint64_t server_id{0};
1789 uint64_t start_time{0};
1791 uint64_t end_time{0};
1793 bool reverse{false};
1795 uint32_t limit{0};
1797 uint64_t exclude_record_id{0};
1800 server_id = c_param.server_id;
1801 start_time = c_param.start_time;
1802 end_time = c_param.end_time;
1803 reverse = c_param.reverse;
1804 limit = c_param.limit;
1805 exclude_record_id = c_param.exclude_record_id;
1806 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetInviteApplyRecordOfServerResp& response) {
1807 auto c_response = response.ToCParam();
1808 c_response.user_data = user_data;
1809 c_callback(&c_response);
1810 };
1811 }
1813 auto cb_holder = new ServerGetInviteApplyRecordOfServerCallback(cb);
1815 param.user_data = cb_holder;
1816 param.cb = [](const NIMQChatServerGetInviteApplyRecordOfServerResp* resp) {
1817 InvokeCallback<ServerGetInviteApplyRecordOfServerCallback, NIMQChatServerGetInviteApplyRecordOfServerResp>(resp);
1818 };
1819 param.server_id = server_id;
1820 param.start_time = start_time;
1821 param.end_time = end_time;
1822 param.reverse = reverse;
1823 param.limit = limit;
1824 param.exclude_record_id = exclude_record_id;
1825 return param;
1826 }
1827};
1828
1834 uint64_t start_time{0};
1836 uint64_t end_time{0};
1838 bool reverse{false};
1840 uint32_t limit{0};
1842 uint64_t exclude_record_id{0};
1845 start_time = c_param.start_time;
1846 end_time = c_param.end_time;
1847 reverse = c_param.reverse;
1848 limit = c_param.limit;
1849 exclude_record_id = c_param.exclude_record_id;
1850 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetInviteApplyRecordOfSelfResp& response) {
1851 auto c_response = response.ToCParam();
1852 c_response.user_data = user_data;
1853 c_callback(&c_response);
1854 };
1855 }
1857 auto cb_holder = new ServerGetInviteApplyRecordOfSelfCallback(cb);
1859 param.user_data = cb_holder;
1860 param.cb = [](const NIMQChatServerGetInviteApplyRecordOfSelfResp* resp) {
1861 InvokeCallback<ServerGetInviteApplyRecordOfSelfCallback, NIMQChatServerGetInviteApplyRecordOfSelfResp>(resp);
1862 };
1863 param.start_time = start_time;
1864 param.end_time = end_time;
1865 param.reverse = reverse;
1866 param.limit = limit;
1867 param.exclude_record_id = exclude_record_id;
1868 return param;
1869 }
1870};
1871
1877 std::vector<uint64_t> server_ids;
1880 for (size_t i = 0; i < c_param.server_ids_count; i++) {
1881 server_ids.push_back(c_param.server_ids[i]);
1882 }
1883 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerMarkReadResp& response) {
1884 auto c_response = response.ToCParam();
1885 c_response.user_data = user_data;
1886 c_callback(&c_response);
1887 };
1888 }
1890 auto cb_holder = new ServerMarkReadCallback(cb);
1891 NIMQChatServerMarkReadParam param = {};
1892 param.user_data = cb_holder;
1893 param.cb = [](const NIMQChatServerMarkReadResp* resp) {
1894 InvokeCallback<ServerMarkReadCallback, NIMQChatServerMarkReadResp>(resp);
1895 };
1896 param.server_ids_count = server_ids.size();
1897 param.server_ids = const_cast<uint64_t*>(server_ids.data());
1898 return param;
1899 }
1900};
1901
1909 std::vector<uint64_t> server_ids;
1912 sub_type = c_param.sub_type;
1913 for (size_t i = 0; i < c_param.server_ids_count; i++) {
1914 server_ids.push_back(c_param.server_ids[i]);
1915 }
1916 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerSubscribeAllChannelResp& response) {
1917 auto c_response = response.ToCParam();
1918 c_response.user_data = user_data;
1919 c_callback(&c_response);
1920 };
1921 }
1923 auto cb_holder = new ServerSubscribeAllChannelCallback(cb);
1925 param.user_data = cb_holder;
1926 param.cb = [](const NIMQChatServerSubscribeAllChannelResp* resp) {
1927 InvokeCallback<ServerSubscribeAllChannelCallback, NIMQChatServerSubscribeAllChannelResp>(resp);
1928 };
1929 param.sub_type = sub_type;
1930 param.server_ids_count = server_ids.size();
1931 param.server_ids = const_cast<uint64_t*>(server_ids.data());
1932 return param;
1933 }
1934};
1935
1941 std::vector<uint64_t> server_ids{};
1944 for (size_t i = 0; i < c_param.server_ids_count; i++) {
1945 server_ids.push_back(c_param.server_ids[i]);
1946 }
1947 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerEnterAsVisitorResp& response) {
1948 auto c_response = response.ToCParam();
1949 c_response.user_data = user_data;
1950 c_callback(&c_response);
1951 };
1952 }
1954 auto cb_holder = new ServerEnterAsVisitorCallback(cb);
1956 param.user_data = cb_holder;
1957 param.cb = [](const NIMQChatServerEnterAsVisitorResp* resp) {
1958 InvokeCallback<ServerEnterAsVisitorCallback, NIMQChatServerEnterAsVisitorResp>(resp);
1959 };
1960 param.server_ids_count = server_ids.size();
1961 param.server_ids = const_cast<uint64_t*>(server_ids.data());
1962 return param;
1963 }
1964};
1965
1971 std::vector<uint64_t> server_ids{};
1974 for (size_t i = 0; i < c_param.server_ids_count; i++) {
1975 server_ids.push_back(c_param.server_ids[i]);
1976 }
1977 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerLeaveAsVisitorResp& response) {
1978 auto c_response = response.ToCParam();
1979 c_response.user_data = user_data;
1980 c_callback(&c_response);
1981 };
1982 }
1984 auto cb_holder = new ServerLeaveAsVisitorCallback(cb);
1986 param.user_data = cb_holder;
1987 param.cb = [](const NIMQChatServerLeaveAsVisitorResp* resp) {
1988 InvokeCallback<ServerLeaveAsVisitorCallback, NIMQChatServerLeaveAsVisitorResp>(resp);
1989 };
1990 param.server_ids_count = server_ids.size();
1991 param.server_ids = const_cast<uint64_t*>(server_ids.data());
1992 return param;
1993 }
1994};
1995
2003 std::vector<uint64_t> server_ids{};
2006 ope_type = c_param.ope_type;
2007 sub_type = c_param.sub_type;
2008 for (size_t i = 0; i < c_param.server_ids_count; i++) {
2009 server_ids.push_back(c_param.server_ids[i]);
2010 }
2011 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerSubscribeAsVisitorResp& response) {
2012 auto c_response = response.ToCParam();
2013 c_response.user_data = user_data;
2014 c_callback(&c_response);
2015 };
2016 }
2018 auto cb_holder = new ServerSubscribeAsVisitorCallback(cb);
2020 param.user_data = cb_holder;
2021 param.cb = [](const NIMQChatServerSubscribeAsVisitorResp* resp) {
2022 InvokeCallback<ServerSubscribeAsVisitorCallback, NIMQChatServerSubscribeAsVisitorResp>(resp);
2023 };
2024 param.ope_type = ope_type;
2025 param.sub_type = sub_type;
2026 param.server_ids_count = server_ids.size();
2027 param.server_ids = const_cast<uint64_t*>(server_ids.data());
2028 return param;
2029 }
2030 // 以下字段为内部使用
2032};
2033
2034} // namespace nim
2035
2036#endif // __NIM_QCHAT_SERVER_CPP_DEF_H__
namespace nim
std::function< void(const QChatServerUpdateResp &)> ServerUpdateCallback
更新服务器回调
Definition: nim_qchat_server_cpp_def.h:844
std::function< void(const QChatServerGetServersResp &)> GetServersCallback
查询服务器列表回调
Definition: nim_qchat_server_cpp_def.h:846
std::function< void(const QChatServerUnreadResp &)> ServerUnreadCallback
未读数回调
Definition: nim_qchat_server_cpp_def.h:838
std::function< void(const QChatServerGetBannedMembersPageResp &)> ServerGetBannedMembersPageCallback
查询服务器成员封禁列表分页回调
Definition: nim_qchat_server_cpp_def.h:878
std::function< void(const QChatServerJoinByInviteCodeResp &)> ServerJoinByInviteCodeCallback
通过邀请码加入回调
Definition: nim_qchat_server_cpp_def.h:886
std::function< void(const QChatServerGetMembersResp &)> ServerGetMembersCallback
查询服务器成员列表回调
Definition: nim_qchat_server_cpp_def.h:868
std::function< void(const QChatServerApplyResp &)> ServerApplyCallback
申请加入服务器回调
Definition: nim_qchat_server_cpp_def.h:856
ServerGetMembersCallback ServerMemberSearchCallback
搜索服务器成员分页回调
Definition: nim_qchat_server_cpp_def.h:882
std::function< void(const QChatServerGetMembersPageResp &)> ServerGetMembersPageCallback
查询服务器成员列表分页回调
Definition: nim_qchat_server_cpp_def.h:870
std::function< void(const QChatServerSubscribeAllChannelResp &)> ServerSubscribeAllChannelCallback
订阅所有频道
Definition: nim_qchat_server_cpp_def.h:894
std::function< void(const QChatServerUnbanMemberResp &)> ServerUnbanMemberCallback
解封成员回调
Definition: nim_qchat_server_cpp_def.h:876
std::function< void(const QChatServerSubscribeAsVisitorResp &)> ServerSubscribeAsVisitorCallback
以游客身份订阅服务器回调
Definition: nim_qchat_server_cpp_def.h:900
std::function< void(const QChatServerAcceptApplyResp &)> ServerAcceptApplyCallback
接受申请加入服务器回调
Definition: nim_qchat_server_cpp_def.h:858
std::function< void(const QChatServerEnterAsVisitorResp &)> ServerEnterAsVisitorCallback
以游客身份进入服务器回调
Definition: nim_qchat_server_cpp_def.h:896
std::function< void(const QChatServerBanMemberResp &)> ServerBanMemberCallback
封禁成员回调
Definition: nim_qchat_server_cpp_def.h:874
GetServersPageCallback ServerSearchPageCallback
搜索服务器分页回调
Definition: nim_qchat_server_cpp_def.h:880
std::function< void(const QChatServerAcceptInviteResp &)> ServerAcceptInviteCallback
接受邀请加入服务器回调
Definition: nim_qchat_server_cpp_def.h:852
std::function< void(const QChatServerGetServersPageResp &)> GetServersPageCallback
查询服务器列表分页回调
Definition: nim_qchat_server_cpp_def.h:848
std::function< void(const QChatServerMarkReadResp &)> ServerMarkReadCallback
服务器标记已读
Definition: nim_qchat_server_cpp_def.h:892
std::function< void(const QChatServerUpdateMemberInfoResp &)> ServerUpdateMemberInfoCallback
更新服务器成员信息回调
Definition: nim_qchat_server_cpp_def.h:866
std::function< void(const QChatServerInviteResp &)> ServerInviteCallback
邀请用户加入服务器回调
Definition: nim_qchat_server_cpp_def.h:850
std::function< void(const QChatServerSubscribeResp &)> ServerSubscribeCallback
订阅回调
Definition: nim_qchat_server_cpp_def.h:872
std::function< void(const QChatServerDeleteResp &)> ServerRemoveCallback
删除服务器回调
Definition: nim_qchat_server_cpp_def.h:842
std::function< void(const QChatServerRejectApplyResp &)> ServerRejectApplyCallback
拒绝申请加入服务器回调
Definition: nim_qchat_server_cpp_def.h:860
std::function< void(const QChatServerGetInviteApplyRecordOfServerResp &)> ServerGetInviteApplyRecordOfServerCallback
查询服务器下的申请邀请记录回调
Definition: nim_qchat_server_cpp_def.h:888
std::function< void(const QChatServerGenerateInviteCodeResp &)> ServerGenerateInviteCodeCallback
生成邀请码回调
Definition: nim_qchat_server_cpp_def.h:884
std::function< void(const QChatServerGetInviteApplyRecordOfSelfResp &)> ServerGetInviteApplyRecordOfSelfCallback
查询自己的申请邀请记录回调
Definition: nim_qchat_server_cpp_def.h:890
std::function< void(const QChatServerKickResp &)> ServerKickCallback
踢出服务器回调
Definition: nim_qchat_server_cpp_def.h:862
std::function< void(const QChatServerRejectInviteResp &)> ServerRejectInviteCallback
拒绝邀请加入服务器回调
Definition: nim_qchat_server_cpp_def.h:854
std::function< void(const QChatServerCreateResp &)> ServerCreateCallback
创建服务器回调
Definition: nim_qchat_server_cpp_def.h:840
std::function< void(const QChatServerLeaveResp &)> ServerLeaveCallback
离开服务器回调
Definition: nim_qchat_server_cpp_def.h:864
std::function< void(const QChatServerLeaveAsVisitorResp &)> ServerLeaveAsVisitorCallback
以游客身份离开服务器回调
Definition: nim_qchat_server_cpp_def.h:898
NIMQChatSubscribeType
Definition: nim_qchat_public_def.h:56
@ kNIMQChatSubscribeTypeVisitorServerNotification
以游客身份订阅某个server的【消息】/【通知】
Definition: nim_qchat_public_def.h:72
@ kNIMQChatSubscribeTypeServerNotification
订阅某个server的【消息】/【通知】
Definition: nim_qchat_public_def.h:66
NIMQChatServerSearchSort
服务器搜索排序规则
Definition: nim_qchat_public_def.h:117
@ kNIMQChatServerSearchSortCreateTime
创建时间排序
Definition: nim_qchat_public_def.h:121
NIMQChatSearchOrder
搜索排序顺序
Definition: nim_qchat_public_def.h:109
@ kNIMQChatSearchOrderAsc
按时间正序
Definition: nim_qchat_public_def.h:111
NIMQChatSubscribeOpeType
Definition: nim_qchat_public_def.h:48
@ kNIMQChatSubscribeOpeTypeSubscribe
订阅
Definition: nim_qchat_public_def.h:50
#define NIM_QCHAT_SDK_CPPWRAPPER_DLL_API
Definition: nim_qchat_sdk_cpp_wrapper.h:38
NIMQChatServerInviteMode
Definition: nim_qchat_server_def.h:22
@ kNIMQChatServerInviteModeNeedConfirm
需要验证
Definition: nim_qchat_server_def.h:24
NIMQChatInviteApplyRecordType
Definition: nim_qchat_server_def.h:89
@ kNIMQChatInviteApplyRecordTypeInvite
邀请
Definition: nim_qchat_server_def.h:93
@ kNIMQChatInviteApplyRecordTypeJoinByInviteCode
通过邀请码加入
Definition: nim_qchat_server_def.h:99
@ kNIMQChatInviteApplyRecordTypeGenerateInviteCode
生成邀请码
Definition: nim_qchat_server_def.h:97
@ kNIMQChatInviteApplyRecordTypeApply
申请
Definition: nim_qchat_server_def.h:91
@ kNIMQChatInviteApplyRecordTypeBeInvited
被邀请
Definition: nim_qchat_server_def.h:95
NIMQChatServerInviteFailReason
Definition: nim_qchat_server_def.h:37
NIMQChatInviteApplyRecordStatus
Definition: nim_qchat_server_def.h:103
@ kNIMQChatInviteApplyRecordStatusInitial
初始状态
Definition: nim_qchat_server_def.h:105
NIMQChatServerApplyMode
Definition: nim_qchat_server_def.h:29
@ kNIMQChatServerApplyModeNormal
不需要验证
Definition: nim_qchat_server_def.h:31
NIMQChatServerSearchType
Definition: nim_qchat_server_def.h:45
@ kNIMQChatServerSearchTypeSquare
广场搜索
Definition: nim_qchat_server_def.h:47
@ kNIMResSuccess
没有错误,一切正常
Definition: public_defines.h:26
Definition: nim_qchat_server_def.h:121
char * apply_postscript
申请附言
Definition: nim_qchat_server_def.h:123
char * update_postscript
更新附言
Definition: nim_qchat_server_def.h:127
char * update_accid
更新者 id
Definition: nim_qchat_server_def.h:125
Definition: nim_qchat_server_def.h:153
char * update_postscript
更新附言
Definition: nim_qchat_server_def.h:157
char * invite_postscript
邀请附言
Definition: nim_qchat_server_def.h:155
Definition: nim_qchat_server_def.h:161
uint32_t invite_count
邀请人数
Definition: nim_qchat_server_def.h:167
char * invite_code
邀请码
Definition: nim_qchat_server_def.h:165
char * invite_postscript
邀请附言
Definition: nim_qchat_server_def.h:163
Definition: nim_qchat_server_def.h:181
NIMQChatBeInvitedInfoData be_invited_data
被邀请数据
Definition: nim_qchat_server_def.h:208
NIMQChatJoinByInviteCodeInfoData join_by_invite_code_data
通过邀请码加入数据
Definition: nim_qchat_server_def.h:212
NIMQChatApplyInfoData apply_data
申请数据
Definition: nim_qchat_server_def.h:204
uint64_t server_id
服务器ID
Definition: nim_qchat_server_def.h:187
NIMQChatGenerateInviteCodeInfoData generate_invite_code_data
生成邀请码数据
Definition: nim_qchat_server_def.h:210
char * accid
accid
Definition: nim_qchat_server_def.h:183
uint64_t update_time
更新时间
Definition: nim_qchat_server_def.h:197
NIMQChatInviteApplyRecordType type
type
Definition: nim_qchat_server_def.h:185
uint64_t create_time
创建时间
Definition: nim_qchat_server_def.h:195
uint64_t record_id
记录ID
Definition: nim_qchat_server_def.h:193
uint64_t expire_time
过期时间
Definition: nim_qchat_server_def.h:199
char * raw_data
邀请申请信息原始Json数据
Definition: nim_qchat_server_def.h:201
NIMQChatInviteInfoData invite_data
邀请数据
Definition: nim_qchat_server_def.h:206
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:191
NIMQChatInviteApplyRecordStatus status
状态
Definition: nim_qchat_server_def.h:189
Definition: nim_qchat_server_def.h:143
char * invite_postscript
邀请附言
Definition: nim_qchat_server_def.h:145
NIMQChatInviteUserInfo * invite_user_infos
邀请成员信息列表
Definition: nim_qchat_server_def.h:147
size_t invite_user_infos_count
邀请成员信息列表数量
Definition: nim_qchat_server_def.h:149
Definition: nim_qchat_server_def.h:131
NIMQChatInviteApplyRecordStatus status
状态
Definition: nim_qchat_server_def.h:137
char * accid
accid
Definition: nim_qchat_server_def.h:133
uint64_t update_time
更新时间
Definition: nim_qchat_server_def.h:139
char * update_postscript
更新附言
Definition: nim_qchat_server_def.h:135
Definition: nim_qchat_server_def.h:171
char * update_postscript
更新附言
Definition: nim_qchat_server_def.h:175
char * invite_code
邀请码
Definition: nim_qchat_server_def.h:177
char * invite_postscript
邀请附言
Definition: nim_qchat_server_def.h:173
Definition: nim_qchat_server_def.h:654
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:664
char * accid
申请人 id
Definition: nim_qchat_server_def.h:662
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:660
nim_qchat_server_accept_apply_cb_func cb
接受申请异步回调
Definition: nim_qchat_server_def.h:656
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:658
Definition: nim_qchat_server_def.h:610
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:620
nim_qchat_server_accept_invite_cb_func cb
接受邀请异步回调
Definition: nim_qchat_server_def.h:612
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:614
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:616
char * accid
邀请人 id
Definition: nim_qchat_server_def.h:618
Definition: nim_qchat_server_def.h:640
nim_qchat_server_apply_cb_func cb
申请加入异步回调
Definition: nim_qchat_server_def.h:642
char * postscript
附言
Definition: nim_qchat_server_def.h:650
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:644
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:646
uint64_t ttl
请求生存时间 ms
Definition: nim_qchat_server_def.h:648
Definition: nim_qchat_server_def.h:283
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:285
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:289
uint64_t expire_time
过期时间
Definition: nim_qchat_server_def.h:291
Definition: nim_qchat_server_def.h:768
char * accid
用户id
Definition: nim_qchat_server_def.h:776
char * custom
自定义字段
Definition: nim_qchat_server_def.h:778
nim_qchat_server_ban_member_cb_func cb
封禁成员异步回调
Definition: nim_qchat_server_def.h:770
uint64_t server_id
服务器ID
Definition: nim_qchat_server_def.h:774
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:772
Definition: nim_qchat_server_def.h:534
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_server_def.h:542
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:538
nim_qchat_server_create_cb_func cb
创建会话异步回调
Definition: nim_qchat_server_def.h:536
NIMQChatServerInfo server_info
服务器信息
Definition: nim_qchat_server_def.h:540
Definition: nim_qchat_server_def.h:217
NIMQChatServerInfo server_info
服务器 id
Definition: nim_qchat_server_def.h:223
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:219
Definition: nim_qchat_server_def.h:546
nim_qchat_server_remove_cb_func cb
删除会话异步回调
Definition: nim_qchat_server_def.h:548
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:552
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:550
Definition: nim_qchat_server_def.h:942
uint64_t * server_ids
服务器 id 列表
Definition: nim_qchat_server_def.h:950
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:946
nim_qchat_server_enter_as_visitor_cb_func cb
以游客身份进入服务器异步回调
Definition: nim_qchat_server_def.h:944
size_t server_ids_count
服务器 id 列表长度
Definition: nim_qchat_server_def.h:948
Definition: nim_qchat_server_def.h:852
uint64_t ttl
请求生存时间 ms
Definition: nim_qchat_server_def.h:860
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:856
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:858
nim_qchat_server_generate_invite_code_cb_func cb
生成邀请码异步回调
Definition: nim_qchat_server_def.h:854
Definition: nim_qchat_server_def.h:384
char * invite_code
邀请码
Definition: nim_qchat_server_def.h:394
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:392
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:386
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:390
uint64_t expire_time
过期时间
Definition: nim_qchat_server_def.h:396
Definition: nim_qchat_server_def.h:796
nim_qchat_server_get_banned_members_page_cb_func cb
查询封禁成员列表异步回调
Definition: nim_qchat_server_def.h:798
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:806
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:802
uint64_t timestamp
时间戳
Definition: nim_qchat_server_def.h:804
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:800
Definition: nim_qchat_server_def.h:354
size_t ban_list_count
封禁成员信息列表数量
Definition: nim_qchat_server_def.h:362
NIMQChatMemberBanInfo * ban_list
封禁成员信息列表
Definition: nim_qchat_server_def.h:364
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_server_def.h:360
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:356
Definition: nim_qchat_server_def.h:898
uint64_t end_time
结束时间
Definition: nim_qchat_server_def.h:906
nim_qchat_server_get_invite_apply_record_by_self_cb_func cb
查询自己邀请申请历史异步回调
Definition: nim_qchat_server_def.h:900
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:910
bool reverse
是否倒序, false: 否, true: 是
Definition: nim_qchat_server_def.h:908
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:902
uint64_t exclude_record_id
要排除的记录id
Definition: nim_qchat_server_def.h:912
uint64_t start_time
起始时间
Definition: nim_qchat_server_def.h:904
Definition: nim_qchat_server_def.h:878
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:884
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:892
bool reverse
是否倒序, false: 否, true: 是
Definition: nim_qchat_server_def.h:890
uint64_t start_time
起始时间
Definition: nim_qchat_server_def.h:886
uint64_t exclude_record_id
要排除的记录id
Definition: nim_qchat_server_def.h:894
uint64_t end_time
结束时间
Definition: nim_qchat_server_def.h:888
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:882
nim_qchat_server_get_invite_apply_record_of_server_cb_func cb
查询服务器下邀请申请历史异步回调
Definition: nim_qchat_server_def.h:880
Definition: nim_qchat_server_def.h:403
size_t invite_apply_records_count
邀请申请历史列表数量
Definition: nim_qchat_server_def.h:409
NIMQChatInviteApplyRecord * invite_apply_records
邀请申请历史列表
Definition: nim_qchat_server_def.h:411
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:405
Definition: nim_qchat_server_def.h:738
uint64_t timestamp
时间戳
Definition: nim_qchat_server_def.h:746
nim_qchat_server_get_members_page_cb_func cb
查询成员列表异步回调
Definition: nim_qchat_server_def.h:740
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:744
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:742
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:748
Definition: nim_qchat_server_def.h:322
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:324
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_server_def.h:328
NIMQChatMemberInfo * member_list
成员信息列表
Definition: nim_qchat_server_def.h:332
size_t member_list_count
成员信息列表数量
Definition: nim_qchat_server_def.h:330
Definition: nim_qchat_server_def.h:726
nim_qchat_server_get_members_cb_func cb
查询成员列表异步回调
Definition: nim_qchat_server_def.h:728
NIMQChatServerMemberPair * server_accid_list
服务器id和accid列表
Definition: nim_qchat_server_def.h:732
size_t server_accid_list_count
服务器id和accid列表长度
Definition: nim_qchat_server_def.h:734
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:730
Definition: nim_qchat_server_def.h:310
size_t member_list_count
成员信息列表数量
Definition: nim_qchat_server_def.h:316
NIMQChatMemberInfo * member_list
成员信息列表
Definition: nim_qchat_server_def.h:318
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:312
Definition: nim_qchat_server_def.h:580
uint64_t timestamp
时间戳
Definition: nim_qchat_server_def.h:586
nim_qchat_server_get_servers_page_cb_func cb
查询会话列表分页异步回调
Definition: nim_qchat_server_def.h:582
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:584
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:588
Definition: nim_qchat_server_def.h:245
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_server_def.h:251
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:247
size_t server_list_count
服务器列表数量
Definition: nim_qchat_server_def.h:253
NIMQChatServerInfo * server_list
服务器列表
Definition: nim_qchat_server_def.h:255
Definition: nim_qchat_server_def.h:568
uint64_t * server_ids
服务器 id 列表
Definition: nim_qchat_server_def.h:576
nim_qchat_server_get_servers_cb_func cb
查询会话列表异步回调
Definition: nim_qchat_server_def.h:570
size_t server_ids_count
服务器 id 列表长度
Definition: nim_qchat_server_def.h:574
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:572
Definition: nim_qchat_server_def.h:233
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:235
NIMQChatServerInfo * server_list
服务器列表
Definition: nim_qchat_server_def.h:241
size_t server_list_count
服务器列表数量
Definition: nim_qchat_server_def.h:239
Definition: nim_qchat_server_def.h:53
NIMQChatServerApplyMode apply_mode
申请模式
Definition: nim_qchat_server_def.h:73
uint64_t reorder_weight
自定义排序权重值
Definition: nim_qchat_server_def.h:85
char * icon
图标 url
Definition: nim_qchat_server_def.h:63
char * owner_id
所有者 id
Definition: nim_qchat_server_def.h:67
char * custom
自定义字段
Definition: nim_qchat_server_def.h:65
uint64_t member_count
成员数量
Definition: nim_qchat_server_def.h:69
bool searchable
是否能被搜索
Definition: nim_qchat_server_def.h:59
uint32_t server_type
用户自定义服务器类别, 0表示无类别
Definition: nim_qchat_server_def.h:57
uint32_t channel_category_count
总频道分组数量
Definition: nim_qchat_server_def.h:79
uint64_t create_time
创建时间
Definition: nim_qchat_server_def.h:81
char * name
名称
Definition: nim_qchat_server_def.h:61
uint32_t channel_count
该服务器下频道总数
Definition: nim_qchat_server_def.h:77
uint64_t server_id
server id
Definition: nim_qchat_server_def.h:55
NIMQChatServerInviteMode invite_mode
邀请模式
Definition: nim_qchat_server_def.h:71
bool valid_flag
有效标记,false:无效 true:有效
Definition: nim_qchat_server_def.h:75
uint64_t update_time
更新时间
Definition: nim_qchat_server_def.h:83
Definition: nim_qchat_server_def.h:592
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:598
size_t invite_ids_count
受邀人 id 列表长度
Definition: nim_qchat_server_def.h:602
char * postscript
附言
Definition: nim_qchat_server_def.h:606
uint64_t ttl
请求生存时间 ms
Definition: nim_qchat_server_def.h:604
char ** invite_ids
受邀人 id 列表
Definition: nim_qchat_server_def.h:600
nim_qchat_server_invite_cb_func cb
邀请异步回调
Definition: nim_qchat_server_def.h:594
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:596
Definition: nim_qchat_server_def.h:259
NIMQChatServerInviteFailReason * fail_reasons
邀请失败原因列表
Definition: nim_qchat_server_def.h:273
uint64_t expire_time
过期时间
Definition: nim_qchat_server_def.h:267
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:265
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:261
size_t accids_count
邀请失败 id 列表数量
Definition: nim_qchat_server_def.h:269
char ** accids
邀请失败 id 列表
Definition: nim_qchat_server_def.h:271
Definition: nim_qchat_server_def.h:864
nim_qchat_server_join_by_invite_code_cb_func cb
通过邀请码加入异步回调
Definition: nim_qchat_server_def.h:866
char * invite_code
邀请码
Definition: nim_qchat_server_def.h:872
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:868
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:870
char * postscript
附言
Definition: nim_qchat_server_def.h:874
Definition: nim_qchat_server_def.h:684
char ** accids
被踢人 id 列表
Definition: nim_qchat_server_def.h:692
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:690
size_t accids_count
被踢人 id 列表长度
Definition: nim_qchat_server_def.h:694
nim_qchat_server_kick_cb_func cb
踢人异步回调
Definition: nim_qchat_server_def.h:686
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:688
Definition: nim_qchat_server_def.h:954
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:958
uint64_t * server_ids
服务器 id 列表
Definition: nim_qchat_server_def.h:962
nim_qchat_server_leave_as_visitor_cb_func cb
以游客身份离开服务器异步回调
Definition: nim_qchat_server_def.h:956
size_t server_ids_count
服务器 id 列表长度
Definition: nim_qchat_server_def.h:960
Definition: nim_qchat_server_def.h:698
nim_qchat_server_leave_cb_func cb
离开异步回调
Definition: nim_qchat_server_def.h:700
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:702
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:704
Definition: nim_qchat_server_def.h:916
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:920
nim_qchat_server_mark_read_cb_func cb
标记服务器下消息已读异步回调
Definition: nim_qchat_server_def.h:918
size_t server_ids_count
服务器 id 列表长度
Definition: nim_qchat_server_def.h:924
uint64_t * server_ids
服务器 id 列表
Definition: nim_qchat_server_def.h:922
Definition: nim_qchat_server_def.h:418
size_t succeeded_servers_count
成功列表数量
Definition: nim_qchat_server_def.h:426
uint64_t timestamp
标记已读时间戳
Definition: nim_qchat_server_def.h:432
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:420
size_t failed_servers_count
失败列表数量
Definition: nim_qchat_server_def.h:430
uint64_t * succeeded_servers
成功列表
Definition: nim_qchat_server_def.h:424
uint64_t * failed_servers
失败列表
Definition: nim_qchat_server_def.h:428
Definition: nim_qchat_server_def.h:720
char * accid
Definition: nim_qchat_server_def.h:722
uint64_t server_id
Definition: nim_qchat_server_def.h:721
Definition: nim_qchat_server_def.h:838
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:844
nim_qchat_server_member_search_cb_func cb
搜索异步回调
Definition: nim_qchat_server_def.h:840
char * keyword
搜索内容
Definition: nim_qchat_server_def.h:846
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:842
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:848
Definition: nim_qchat_server_def.h:528
nim_qchat_server_unread_cb_func cb
Definition: nim_qchat_server_def.h:529
Definition: nim_qchat_server_def.h:668
char * postscript
附言
Definition: nim_qchat_server_def.h:678
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:674
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:672
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:680
char * accid
申请人 id
Definition: nim_qchat_server_def.h:676
nim_qchat_server_reject_apply_cb_func cb
拒绝申请异步回调
Definition: nim_qchat_server_def.h:670
Definition: nim_qchat_server_def.h:624
nim_qchat_server_reject_invite_cb_func cb
拒绝邀请异步回调
Definition: nim_qchat_server_def.h:626
char * postscript
附言
Definition: nim_qchat_server_def.h:634
char * accid
邀请人 id
Definition: nim_qchat_server_def.h:632
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:628
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:630
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:636
Definition: nim_qchat_server_def.h:810
uint64_t start_time
起始时间
Definition: nim_qchat_server_def.h:818
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:832
NIMQChatServerSearchSort sort
排序规则
Definition: nim_qchat_server_def.h:824
char * keyword
搜索内容
Definition: nim_qchat_server_def.h:816
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:814
NIMQChatServerSearchType search_type
搜索类型
Definition: nim_qchat_server_def.h:830
char * cursor
查询游标, 查询的起始位置
Definition: nim_qchat_server_def.h:834
uint64_t end_time
结束时间
Definition: nim_qchat_server_def.h:820
size_t server_types_count
服务器类型长度
Definition: nim_qchat_server_def.h:828
uint32_t * server_types
搜索的服务器类型, 为空表示搜索所有类型
Definition: nim_qchat_server_def.h:826
NIMQChatSearchOrder order
排序顺序
Definition: nim_qchat_server_def.h:822
nim_qchat_server_search_page_cb_func cb
搜索异步回调
Definition: nim_qchat_server_def.h:812
Definition: nim_qchat_server_def.h:928
NIMQChatSubscribeType sub_type
订阅类型
Definition: nim_qchat_server_def.h:934
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:932
nim_qchat_server_subscribe_all_channel_cb_func cb
订阅所有频道异步回调
Definition: nim_qchat_server_def.h:930
uint64_t * server_ids
服务器 id 列表
Definition: nim_qchat_server_def.h:936
size_t server_ids_count
服务器 id 列表长度
Definition: nim_qchat_server_def.h:938
Definition: nim_qchat_server_def.h:436
size_t unread_infos_count
频道未读信息数量
Definition: nim_qchat_server_def.h:448
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:438
size_t failed_servers_count
失败的服务器列表数量
Definition: nim_qchat_server_def.h:444
NIMQChatUnreadInfo * unread_infos
频道未读信息, 内部使用,未读相关变更关注RegUnreadCb回调
Definition: nim_qchat_server_def.h:446
uint64_t * failed_servers
失败的服务器列表
Definition: nim_qchat_server_def.h:442
Definition: nim_qchat_server_def.h:966
uint64_t * server_ids
服务器 id 列表
Definition: nim_qchat_server_def.h:976
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:970
NIMQChatSubscribeOpeType ope_type
操作类型
Definition: nim_qchat_server_def.h:972
NIMQChatSubscribeType sub_type
Definition: nim_qchat_server_def.h:979
nim_qchat_server_subscribe_as_visitor_cb_func cb
以游客身份订阅服务器异步回调
Definition: nim_qchat_server_def.h:968
size_t server_ids_count
服务器 id 列表长度
Definition: nim_qchat_server_def.h:974
Definition: nim_qchat_server_def.h:752
size_t server_ids_count
服务器 id 列表长度
Definition: nim_qchat_server_def.h:762
NIMQChatSubscribeType sub_type
订阅类型
Definition: nim_qchat_server_def.h:760
nim_qchat_server_subscribe_cb_func cb
订阅频道信息回调函数
Definition: nim_qchat_server_def.h:754
NIMQChatSubscribeOpeType ope_type
操作类型
Definition: nim_qchat_server_def.h:758
uint64_t * server_ids
服务器 id 列表
Definition: nim_qchat_server_def.h:764
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:756
Definition: nim_qchat_server_def.h:336
uint64_t * failed_servers
失败列表
Definition: nim_qchat_server_def.h:342
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_server_def.h:338
size_t failed_servers_count
失败列表数量
Definition: nim_qchat_server_def.h:344
Definition: nim_qchat_server_def.h:782
uint64_t server_id
服务器ID
Definition: nim_qchat_server_def.h:788
char * custom
自定义字段
Definition: nim_qchat_server_def.h:792
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:786
char * accid
用户id
Definition: nim_qchat_server_def.h:790
nim_qchat_server_unban_member_cb_func cb
解封成员异步回调
Definition: nim_qchat_server_def.h:784
Definition: nim_qchat_server_def.h:374
size_t unread_infos_count
未读数信息列表长度
Definition: nim_qchat_server_def.h:378
NIMQChatServerUnreadInfo * unread_infos
未读数信息列表
Definition: nim_qchat_server_def.h:380
Definition: nim_qchat_server_def.h:708
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_server_def.h:716
NIMQChatMemberInfo member_info
成员信息
Definition: nim_qchat_server_def.h:714
nim_qchat_server_update_member_info_cb_func cb
更新成员信息异步回调
Definition: nim_qchat_server_def.h:710
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:712
Definition: nim_qchat_server_def.h:556
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:560
nim_qchat_server_update_cb_func cb
更新会话异步回调
Definition: nim_qchat_server_def.h:558
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_server_def.h:564
NIMQChatServerInfo server_info
服务器信息
Definition: nim_qchat_server_def.h:562
Definition: nim_qchat_public_def.h:214
Definition: nim_qchat_server_cpp_def.h:128
std::string update_postscript
更新附言
Definition: nim_qchat_server_cpp_def.h:134
std::string update_accid
更新者 id
Definition: nim_qchat_server_cpp_def.h:132
QChatApplyInfoData(const NIMQChatApplyInfoData &c_param)
Definition: nim_qchat_server_cpp_def.h:136
NIMQChatApplyInfoData ToCParam() const
Definition: nim_qchat_server_cpp_def.h:141
std::string apply_postscript
申请附言
Definition: nim_qchat_server_cpp_def.h:130
Definition: nim_qchat_public_cpp_def.h:49
Definition: nim_qchat_server_cpp_def.h:180
QChatBeInvitedInfoData(const NIMQChatBeInvitedInfoData &c_param)
Definition: nim_qchat_server_cpp_def.h:186
std::string invite_postscript
邀请附言
Definition: nim_qchat_server_cpp_def.h:182
std::string update_postscript
更新附言
Definition: nim_qchat_server_cpp_def.h:184
NIMQChatBeInvitedInfoData ToCParam() const
Definition: nim_qchat_server_cpp_def.h:190
Definition: nim_qchat_public_cpp_def.h:62
Definition: nim_qchat_server_cpp_def.h:199
std::string invite_postscript
邀请附言
Definition: nim_qchat_server_cpp_def.h:201
NIMQChatGenerateInviteCodeInfoData ToCParam() const
Definition: nim_qchat_server_cpp_def.h:212
std::string invite_code
邀请码
Definition: nim_qchat_server_cpp_def.h:203
QChatGenerateInviteCodeInfoData(const NIMQChatGenerateInviteCodeInfoData &c_param)
Definition: nim_qchat_server_cpp_def.h:207
Definition: nim_qchat_server_cpp_def.h:123
virtual ~QChatInviteApplyRecordData()
Definition: nim_qchat_server_cpp_def.h:124
Definition: nim_qchat_server_cpp_def.h:245
std::string accid
accid
Definition: nim_qchat_server_cpp_def.h:247
std::string raw_data
邀请申请信息原始Json数据
Definition: nim_qchat_server_cpp_def.h:267
QChatInviteApplyRecord(const NIMQChatInviteApplyRecord &c_param)
Definition: nim_qchat_server_cpp_def.h:269
std::shared_ptr< QChatInviteApplyRecordData > data
邀请申请信息数据
Definition: nim_qchat_server_cpp_def.h:265
NIMQChatInviteApplyRecord ToCParam() const
Definition: nim_qchat_server_cpp_def.h:298
Definition: nim_qchat_server_cpp_def.h:151
std::string invite_postscript
邀请附言
Definition: nim_qchat_server_cpp_def.h:153
std::vector< NIMQChatInviteUserInfo > c_invite_user_infos
Definition: nim_qchat_server_cpp_def.h:176
NIMQChatInviteInfoData ToCParam() const
Definition: nim_qchat_server_cpp_def.h:163
std::vector< QChatInviteUserInfo > invite_user_infos
邀请成员信息列表
Definition: nim_qchat_server_cpp_def.h:155
QChatInviteInfoData(const NIMQChatInviteInfoData &c_param)
Definition: nim_qchat_server_cpp_def.h:157
Definition: nim_qchat_server_cpp_def.h:96
std::string accid
accid
Definition: nim_qchat_server_cpp_def.h:98
QChatInviteUserInfo(const NIMQChatInviteUserInfo &c_param)
Definition: nim_qchat_server_cpp_def.h:106
std::string update_postscript
更新附言
Definition: nim_qchat_server_cpp_def.h:100
NIMQChatInviteUserInfo ToCParam() const
Definition: nim_qchat_server_cpp_def.h:112
Definition: nim_qchat_server_cpp_def.h:222
QChatJoinByInviteCodeInfoData(const NIMQChatJoinByInviteCodeInfoData &c_param)
Definition: nim_qchat_server_cpp_def.h:230
NIMQChatJoinByInviteCodeInfoData ToCParam() const
Definition: nim_qchat_server_cpp_def.h:235
std::string invite_postscript
邀请附言
Definition: nim_qchat_server_cpp_def.h:224
std::string invite_code
邀请码
Definition: nim_qchat_server_cpp_def.h:228
std::string update_postscript
更新附言
Definition: nim_qchat_server_cpp_def.h:226
Definition: nim_qchat_member_cpp_def.h:19
Definition: nim_qchat_public_cpp_def.h:81
Definition: nim_qchat_server_cpp_def.h:1226
NIMQChatServerAcceptApplyParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1246
QChatServerAcceptApplyParam(const NIMQChatServerAcceptApplyParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1236
Definition: nim_qchat_server_cpp_def.h:1117
NIMQChatServerAcceptInviteParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1137
QChatServerAcceptInviteParam(const NIMQChatServerAcceptInviteParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1127
Definition: nim_qchat_server_cpp_def.h:1191
QChatServerApplyParam(const NIMQChatServerApplyParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1201
std::string postscript
附言
Definition: nim_qchat_server_cpp_def.h:1199
NIMQChatServerApplyParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1211
Definition: nim_qchat_server_cpp_def.h:467
NIMQChatServerApplyResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:480
QChatServerApplyResp(const NIMQChatServerApplyResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:475
Definition: nim_qchat_server_cpp_def.h:1515
NIMQChatServerBanMemberParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1535
std::string custom
自定义字段
Definition: nim_qchat_server_cpp_def.h:1523
std::string accid
用户id
Definition: nim_qchat_server_cpp_def.h:1521
QChatServerBanMemberParam(const NIMQChatServerBanMemberParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1525
Definition: nim_qchat_server_cpp_def.h:918
NIMQChatServerCreateParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:935
QChatServerCreateParam(const NIMQChatServerCreateParam &c_param)
Definition: nim_qchat_server_cpp_def.h:926
Definition: nim_qchat_server_cpp_def.h:332
NIMQChatServerCreateResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:344
QChatServerCreateResp(const NIMQChatServerCreateResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:338
Definition: nim_qchat_server_cpp_def.h:949
NIMQChatServerDeleteParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:963
QChatServerDeleteParam(const NIMQChatServerDeleteParam &c_param)
Definition: nim_qchat_server_cpp_def.h:955
Definition: nim_qchat_server_cpp_def.h:1937
QChatServerEnterAsVisitorParam(const NIMQChatServerEnterAsVisitorParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1943
NIMQChatServerEnterAsVisitorParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1953
Definition: nim_qchat_server_cpp_def.h:772
NIMQChatServerEnterAsVisitorResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:784
QChatServerEnterAsVisitorResp(const NIMQChatServerEnterAsVisitorResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:778
Definition: nim_qchat_server_cpp_def.h:1717
QChatServerGenerateInviteCodeParam(const NIMQChatServerGenerateInviteCodeParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1725
NIMQChatServerGenerateInviteCodeParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1734
QChatServerGenerateInviteCodeResp
Definition: nim_qchat_server_cpp_def.h:644
NIMQChatServerGenerateInviteCodeResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:663
std::string invite_code
邀请码
Definition: nim_qchat_server_cpp_def.h:652
QChatServerGenerateInviteCodeResp(const NIMQChatServerGenerateInviteCodeResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:656
Definition: nim_qchat_server_cpp_def.h:1585
NIMQChatServerGetBannedMembersPageParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1605
QChatServerGetBannedMembersPageParam(const NIMQChatServerGetBannedMembersPageParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1595
Definition: nim_qchat_server_cpp_def.h:591
NIMQChatServerGetBannedMembersPageResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:608
std::vector< NIMQChatMemberBanInfo > c_ban_list
Definition: nim_qchat_server_cpp_def.h:622
QChatServerGetBannedMembersPageResp(const NIMQChatServerGetBannedMembersPageResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:599
Definition: nim_qchat_server_cpp_def.h:1830
NIMQChatServerGetInviteApplyRecordOfSelfParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1856
QChatServerGetInviteApplyRecordOfSelfParam(const NIMQChatServerGetInviteApplyRecordOfSelfParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1844
Definition: nim_qchat_server_cpp_def.h:1783
NIMQChatServerGetInviteApplyRecordOfServerParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1812
QChatServerGetInviteApplyRecordOfServerParam(const NIMQChatServerGetInviteApplyRecordOfServerParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1799
Definition: nim_qchat_server_cpp_def.h:678
std::vector< NIMQChatInviteApplyRecord > c_invite_apply_records
Definition: nim_qchat_server_cpp_def.h:703
NIMQChatServerGetInviteApplyRecordOfServerResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:690
QChatServerGetInviteApplyRecordOfServerResp(const NIMQChatServerGetInviteApplyRecordOfServerResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:684
Definition: nim_qchat_server_cpp_def.h:1442
QChatServerGetMembersPageParam(const NIMQChatServerGetMembersPageParam c_param)
Definition: nim_qchat_server_cpp_def.h:1452
NIMQChatServerGetMembersPageParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1462
Definition: nim_qchat_server_cpp_def.h:535
NIMQChatServerGetMembersPageResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:548
QChatServerGetMembersPageResp(const NIMQChatServerGetMembersPageResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:539
Definition: nim_qchat_server_cpp_def.h:1400
NIMQChatServerGetMembersParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1418
QChatServerGetMembersParam(const NIMQChatServerGetMembersParam c_param)
Definition: nim_qchat_server_cpp_def.h:1406
std::vector< std::pair< uint64_t, std::string > > server_accid_list
服务器id和accid列表
Definition: nim_qchat_server_cpp_def.h:1404
std::vector< NIMQChatServerMemberPair > vec_server_accid_list
Definition: nim_qchat_server_cpp_def.h:1438
Definition: nim_qchat_server_cpp_def.h:505
QChatServerGetMembersResp(const NIMQChatServerGetMembersResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:511
std::vector< NIMQChatMemberInfo > vec_members
Definition: nim_qchat_server_cpp_def.h:532
NIMQChatServerGetMembersResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:519
Definition: nim_qchat_server_cpp_def.h:1037
QChatServerGetServersPageParam(const NIMQChatServerGetServersPageParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1045
NIMQChatServerGetServersPageParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1054
GetServersPageCallback cb
回调函数
Definition: nim_qchat_server_cpp_def.h:1039
Definition: nim_qchat_server_cpp_def.h:392
QChatServerGetServersPageResp(const NIMQChatServerGetServersPageResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:396
NIMQChatServerGetServersPageResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:405
Definition: nim_qchat_server_cpp_def.h:1007
QChatServerGetServersParam(const NIMQChatServerGetServersParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1013
NIMQChatServerGetServersParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1023
Definition: nim_qchat_server_cpp_def.h:361
NIMQChatServerGetServersResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:375
QChatServerGetServersResp(const NIMQChatServerGetServersResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:367
std::vector< NIMQChatServerInfo > vec_servers
Definition: nim_qchat_server_cpp_def.h:388
Definition: nim_qchat_server_cpp_def.h:21
QChatServerInfo()=default
NIMQChatServerInfo ToCParam() const
Definition: nim_qchat_server_cpp_def.h:73
QChatServerInfo(const NIMQChatServerInfo &c_param)
Definition: nim_qchat_server_cpp_def.h:55
Definition: nim_qchat_server_cpp_def.h:1068
NIMQChatServerInviteParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1093
std::string postscript
附言
Definition: nim_qchat_server_cpp_def.h:1078
QChatServerInviteParam(const NIMQChatServerInviteParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1080
Definition: nim_qchat_server_cpp_def.h:420
std::map< std::string, NIMQChatServerInviteFailReason > fail_map
邀请失败的成员id和失败原因
Definition: nim_qchat_server_cpp_def.h:428
QChatServerInviteResp(const NIMQChatServerInviteResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:430
std::vector< NIMQChatServerInviteFailReason > vec_fail_reason
Definition: nim_qchat_server_cpp_def.h:457
std::vector< char * > vec_accids
Definition: nim_qchat_server_cpp_def.h:456
NIMQChatServerInviteResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:438
Definition: nim_qchat_server_cpp_def.h:1748
std::string postscript
附言
Definition: nim_qchat_server_cpp_def.h:1756
QChatServerJoinByInviteCodeParam(const NIMQChatServerJoinByInviteCodeParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1758
NIMQChatServerJoinByInviteCodeParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1768
std::string invite_code
邀请码
Definition: nim_qchat_server_cpp_def.h:1754
Definition: nim_qchat_server_cpp_def.h:1300
std::vector< char * > vec_accids
Definition: nim_qchat_server_cpp_def.h:1338
NIMQChatServerKickParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1319
QChatServerKickParam(const NIMQChatServerKickParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1308
Definition: nim_qchat_server_cpp_def.h:1967
NIMQChatServerLeaveAsVisitorParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1983
QChatServerLeaveAsVisitorParam(const NIMQChatServerLeaveAsVisitorParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1973
Definition: nim_qchat_server_cpp_def.h:794
QChatServerLeaveAsVisitorResp(const NIMQChatServerLeaveAsVisitorResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:800
NIMQChatServerLeaveAsVisitorResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:806
Definition: nim_qchat_server_cpp_def.h:1342
NIMQChatServerLeaveParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1356
QChatServerLeaveParam(const NIMQChatServerLeaveParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1348
Definition: nim_qchat_server_cpp_def.h:1873
NIMQChatServerMarkReadParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1889
QChatServerMarkReadParam(const NIMQChatServerMarkReadParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1879
std::vector< uint64_t > server_ids
服务器 id 列表
Definition: nim_qchat_server_cpp_def.h:1877
Definition: nim_qchat_server_cpp_def.h:710
QChatServerMarkReadResp(const NIMQChatServerMarkReadResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:720
NIMQChatServerMarkReadResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:730
Definition: nim_qchat_server_cpp_def.h:1682
NIMQChatServerMemberSearchParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1702
QChatServerMemberSearchParam(const NIMQChatServerMemberSearchParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1692
Definition: nim_qchat_server_cpp_def.h:903
NIMQChatServerRegUnreadCbParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:905
Definition: nim_qchat_server_cpp_def.h:1261
std::string postscript
附言
Definition: nim_qchat_server_cpp_def.h:1269
QChatServerRejectApplyParam(const NIMQChatServerRejectApplyParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1273
NIMQChatServerRejectApplyParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1284
Definition: nim_qchat_server_cpp_def.h:1152
QChatServerRejectInviteParam(const NIMQChatServerRejectInviteParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1164
std::string postscript
附言
Definition: nim_qchat_server_cpp_def.h:1160
NIMQChatServerRejectInviteParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1175
Definition: nim_qchat_server_cpp_def.h:1620
QChatServerSearchPageParam(const NIMQChatServerSearchPageParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1642
NIMQChatServerSearchPageParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1660
std::vector< uint32_t > server_types
搜索的服务器类型, 为空表示搜索所有类型
Definition: nim_qchat_server_cpp_def.h:1634
Definition: nim_qchat_server_cpp_def.h:1903
QChatServerSubscribeAllChannelParam(const NIMQChatServerSubscribeAllChannelParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1911
NIMQChatServerSubscribeAllChannelParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1922
std::vector< uint64_t > server_ids
服务器 id 列表
Definition: nim_qchat_server_cpp_def.h:1909
NIMQChatSubscribeType sub_type
订阅类型
Definition: nim_qchat_server_cpp_def.h:1907
Definition: nim_qchat_server_cpp_def.h:743
QChatServerSubscribeAllChannelResp(const NIMQChatServerSubscribeAllChannelResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:751
NIMQChatServerSubscribeAllChannelResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:760
Definition: nim_qchat_server_cpp_def.h:1997
QChatServerSubscribeAsVisitorParam(const NIMQChatServerSubscribeAsVisitorParam &c_param)
Definition: nim_qchat_server_cpp_def.h:2005
NIMQChatServerSubscribeAsVisitorParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:2017
Definition: nim_qchat_server_cpp_def.h:816
QChatServerSubscribeAsVisitorResp(const NIMQChatServerSubscribeAsVisitorResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:822
NIMQChatServerSubscribeAsVisitorResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:828
Definition: nim_qchat_server_cpp_def.h:1477
NIMQChatServerSubscribeParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1499
QChatServerSubscribeParam(const NIMQChatServerSubscribeParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1487
Definition: nim_qchat_server_cpp_def.h:563
QChatServerSubscribeResp(const NIMQChatServerSubscribeResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:569
NIMQChatServerSubscribeResp ToCParam() const
Definition: nim_qchat_server_cpp_def.h:575
Definition: nim_qchat_server_cpp_def.h:1550
std::string accid
用户id
Definition: nim_qchat_server_cpp_def.h:1556
std::string custom
自定义字段
Definition: nim_qchat_server_cpp_def.h:1558
NIMQChatServerUnbanMemberParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1570
QChatServerUnbanMemberParam(const NIMQChatServerUnbanMemberParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1560
Definition: nim_qchat_server_cpp_def.h:632
QChatServerUnreadResp(const NIMQChatServerUnreadResp &c_resp)
Definition: nim_qchat_server_cpp_def.h:636
Definition: nim_qchat_server_cpp_def.h:1369
NIMQChatServerUpdateMemberInfoParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:1386
QChatServerUpdateMemberInfoParam(const NIMQChatServerUpdateMemberInfoParam &c_param)
Definition: nim_qchat_server_cpp_def.h:1377
Definition: nim_qchat_server_cpp_def.h:976
QChatServerUpdateParam(const NIMQChatServerUpdateParam &c_param)
Definition: nim_qchat_server_cpp_def.h:984
NIMQChatServerUpdateParam ToCParam() const
Definition: nim_qchat_server_cpp_def.h:993