NIM PC Cross Platform SDK
nim_qchat_server_cpp_def.h
Go to the documentation of this file.
1
11#ifndef __NIM_QCHAT_SERVER_CPP_DEF_H__
12#define __NIM_QCHAT_SERVER_CPP_DEF_H__
13
16#include "nim_qchat_helper.h"
18
19namespace nim_qchat {
20
22struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerInfo {
24 uint64_t server_id{0};
26 uint32_t server_type{0};
28 bool searchable{true};
30 std::string name{""};
32 std::string icon{""};
34 std::string custom{""};
36 std::string owner_id{""};
38 uint64_t member_count{0};
44 bool valid_flag{false};
46 uint32_t channel_count{0};
48 uint32_t channel_category_count{0};
50 uint64_t create_time{0};
52 uint64_t update_time{0};
54 uint64_t reorder_weight{0};
55 QChatServerInfo() = default;
56 QChatServerInfo(const NIMQChatServerInfo& c_param) {
57 server_id = c_param.server_id;
58 server_type = c_param.server_type;
59 searchable = c_param.searchable;
60 name = c_param.name ? c_param.name : "";
61 icon = c_param.icon ? c_param.icon : "";
62 custom = c_param.custom ? c_param.custom : "";
63 owner_id = c_param.owner_id ? c_param.owner_id : "";
64 member_count = c_param.member_count;
65 invite_mode = c_param.invite_mode;
66 apply_mode = c_param.apply_mode;
67 valid_flag = c_param.valid_flag;
68 channel_count = c_param.channel_count;
69 channel_category_count = c_param.channel_category_count;
70 create_time = c_param.create_time;
71 update_time = c_param.update_time;
72 reorder_weight = c_param.reorder_weight;
73 }
74 const NIMQChatServerInfo ToCParam() const {
75 NIMQChatServerInfo c_param;
76 c_param.server_id = server_id;
77 c_param.server_type = server_type;
78 c_param.searchable = searchable;
79 c_param.name = const_cast<char*>(name.c_str());
80 c_param.icon = const_cast<char*>(icon.c_str());
81 c_param.custom = const_cast<char*>(custom.c_str());
82 c_param.owner_id = const_cast<char*>(owner_id.c_str());
83 c_param.member_count = member_count;
84 c_param.invite_mode = invite_mode;
85 c_param.apply_mode = apply_mode;
86 c_param.valid_flag = valid_flag;
87 c_param.channel_count = channel_count;
88 c_param.channel_category_count = channel_category_count;
89 c_param.create_time = create_time;
90 c_param.update_time = update_time;
91 c_param.reorder_weight = reorder_weight;
92 return c_param;
93 }
94};
95
97struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatInviteUserInfo {
99 std::string accid;
101 std::string update_postscript;
105 uint64_t update_time{0};
106 QChatInviteUserInfo() = default;
108 accid = c_param.accid ? c_param.accid : "";
109 update_postscript = c_param.update_postscript ? c_param.update_postscript : "";
110 status = c_param.status;
111 update_time = c_param.update_time;
112 }
113 const NIMQChatInviteUserInfo ToCParam() const {
115 c_param.accid = const_cast<char*>(accid.c_str());
116 c_param.update_postscript = const_cast<char*>(update_postscript.c_str());
117 c_param.status = status;
118 c_param.update_time = update_time;
119 return c_param;
120 }
121};
122
124struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatInviteApplyRecordData {
125 virtual ~QChatInviteApplyRecordData(){};
126};
127
129struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatApplyInfoData : QChatInviteApplyRecordData {
131 std::string apply_postscript;
133 std::string update_accid;
135 std::string update_postscript;
136 QChatApplyInfoData() = default;
138 apply_postscript = c_param.apply_postscript ? c_param.apply_postscript : "";
139 update_accid = c_param.update_accid ? c_param.update_accid : "";
140 update_postscript = c_param.update_postscript ? c_param.update_postscript : "";
141 }
142 const NIMQChatApplyInfoData ToCParam() const {
143 NIMQChatApplyInfoData c_param;
144 c_param.apply_postscript = const_cast<char*>(apply_postscript.c_str());
145 c_param.update_accid = const_cast<char*>(update_accid.c_str());
146 c_param.update_postscript = const_cast<char*>(update_postscript.c_str());
147 return c_param;
148 }
149};
150
152struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatInviteInfoData : QChatInviteApplyRecordData {
154 std::string invite_postscript;
156 std::vector<QChatInviteUserInfo> invite_user_infos;
157 QChatInviteInfoData() = default;
159 invite_postscript = c_param.invite_postscript ? c_param.invite_postscript : "";
160 for (size_t i = 0; i < c_param.invite_user_infos_count; i++) {
161 invite_user_infos.emplace_back(c_param.invite_user_infos[i]);
162 }
163 }
164 const NIMQChatInviteInfoData ToCParam() const {
166 c_param.invite_postscript = const_cast<char*>(invite_postscript.c_str());
167 c_invite_user_infos.clear();
168 for (auto&& user_info : invite_user_infos) {
169 c_invite_user_infos.push_back(user_info.ToCParam());
170 }
171 c_param.invite_user_infos = const_cast<NIMQChatInviteUserInfo*>(c_invite_user_infos.data());
172 c_param.invite_user_infos_count = c_invite_user_infos.size();
173 return c_param;
174 }
175
176protected:
177 mutable std::vector<NIMQChatInviteUserInfo> c_invite_user_infos;
178};
179
181struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatBeInvitedInfoData : QChatInviteApplyRecordData {
183 std::string invite_postscript;
185 std::string update_postscript;
186 QChatBeInvitedInfoData() = default;
188 invite_postscript = c_param.invite_postscript ? c_param.invite_postscript : "";
189 update_postscript = c_param.update_postscript ? c_param.update_postscript : "";
190 }
191 const NIMQChatBeInvitedInfoData ToCParam() const {
193 c_param.invite_postscript = const_cast<char*>(invite_postscript.c_str());
194 c_param.update_postscript = const_cast<char*>(update_postscript.c_str());
195 return c_param;
196 }
197};
198
200struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatGenerateInviteCodeInfoData : QChatInviteApplyRecordData {
202 std::string invite_postscript;
204 std::string invite_code;
206 uint32_t invite_count{0};
209 invite_postscript = c_param.invite_postscript ? c_param.invite_postscript : "";
210 invite_code = c_param.invite_code ? c_param.invite_code : "";
211 invite_count = c_param.invite_count;
212 }
213 const NIMQChatGenerateInviteCodeInfoData ToCParam() const {
215 c_param.invite_postscript = const_cast<char*>(invite_postscript.c_str());
216 c_param.invite_code = const_cast<char*>(invite_code.c_str());
217 c_param.invite_count = invite_count;
218 return c_param;
219 }
220};
221
223struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatJoinByInviteCodeInfoData : QChatInviteApplyRecordData {
225 std::string invite_postscript;
227 std::string update_postscript;
229 std::string invite_code;
232 invite_postscript = c_param.invite_postscript ? c_param.invite_postscript : "";
233 update_postscript = c_param.update_postscript ? c_param.update_postscript : "";
234 invite_code = c_param.invite_code ? c_param.invite_code : "";
235 }
236 const NIMQChatJoinByInviteCodeInfoData ToCParam() const {
238 c_param.invite_postscript = const_cast<char*>(invite_postscript.c_str());
239 c_param.update_postscript = const_cast<char*>(update_postscript.c_str());
240 c_param.invite_code = const_cast<char*>(invite_code.c_str());
241 return c_param;
242 }
243};
244
246struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatInviteApplyRecord {
248 std::string accid;
252 uint64_t server_id{0};
256 uint64_t request_id{0};
258 uint64_t record_id{0};
260 uint64_t create_time{0};
262 uint64_t update_time{0};
264 uint64_t expire_time{0};
266 std::shared_ptr<QChatInviteApplyRecordData> data;
268 std::string raw_data;
269 QChatInviteApplyRecord() = default;
271 accid = c_param.accid ? c_param.accid : "";
272 type = c_param.type;
273 server_id = c_param.server_id;
274 status = c_param.status;
275 request_id = c_param.request_id;
276 record_id = c_param.record_id;
277 create_time = c_param.create_time;
278 update_time = c_param.update_time;
279 expire_time = c_param.expire_time;
280 switch (type) {
282 data = std::make_shared<QChatApplyInfoData>(c_param.apply_data);
283 break;
285 data = std::make_shared<QChatInviteInfoData>(c_param.invite_data);
286 break;
288 data = std::make_shared<QChatBeInvitedInfoData>(c_param.be_invited_data);
289 break;
291 data = std::make_shared<QChatGenerateInviteCodeInfoData>(c_param.generate_invite_code_data);
292 break;
294 data = std::make_shared<QChatJoinByInviteCodeInfoData>(c_param.join_by_invite_code_data);
295 break;
296 }
297 raw_data = c_param.raw_data ? c_param.raw_data : "";
298 }
299 const NIMQChatInviteApplyRecord ToCParam() const {
301 c_param.accid = const_cast<char*>(accid.c_str());
302 c_param.type = type;
303 c_param.server_id = server_id;
304 c_param.status = status;
305 c_param.request_id = request_id;
306 c_param.record_id = record_id;
307 c_param.create_time = create_time;
308 c_param.update_time = update_time;
309 c_param.expire_time = expire_time;
310 switch (type) {
312 c_param.apply_data = dynamic_cast<QChatApplyInfoData*>(data.get())->ToCParam();
313 break;
315 c_param.invite_data = dynamic_cast<QChatInviteInfoData*>(data.get())->ToCParam();
316 break;
318 c_param.be_invited_data = dynamic_cast<QChatBeInvitedInfoData*>(data.get())->ToCParam();
319 break;
321 c_param.generate_invite_code_data = dynamic_cast<QChatGenerateInviteCodeInfoData*>(data.get())->ToCParam();
322 break;
324 c_param.join_by_invite_code_data = dynamic_cast<QChatJoinByInviteCodeInfoData*>(data.get())->ToCParam();
325 break;
326 }
327 c_param.raw_data = const_cast<char*>(raw_data.c_str());
328 return c_param;
329 }
330};
331
333struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerCreateResp {
335 uint32_t res_code{0};
337 QChatServerInfo server_info{};
338 QChatServerCreateResp() = default;
340 res_code = c_resp.res_code;
341 if (c_resp.res_code != kNIMResSuccess)
342 return;
343 server_info = c_resp.server_info;
344 }
345 NIMQChatServerCreateResp ToCParam() const {
347 c_resp.res_code = res_code;
348 if (res_code != kNIMResSuccess)
349 return c_resp;
350 c_resp.server_info = server_info.ToCParam();
351 return c_resp;
352 }
353};
354
356using QChatServerDeleteResp = QChatBaseResp;
357
359using QChatServerUpdateResp = QChatServerCreateResp;
360
362struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetServersResp {
364 uint32_t res_code{0};
366 std::list<QChatServerInfo> server_list{};
367 QChatServerGetServersResp() = default;
369 res_code = c_resp.res_code;
370 if (c_resp.res_code != kNIMResSuccess)
371 return;
372 for (size_t i = 0; i < c_resp.server_list_count; i++) {
373 server_list.emplace_back(c_resp.server_list[i]);
374 }
375 }
376 const NIMQChatServerGetServersResp ToCParam() const {
377 NIMQChatServerGetServersResp c_response{};
378 c_response.res_code = res_code;
379 vec_servers.clear();
380 for (auto&& info : server_list) {
381 vec_servers.push_back(info.ToCParam());
382 }
383 c_response.server_list_count = vec_servers.size();
384 c_response.server_list = vec_servers.data();
385 return c_response;
386 };
387
388protected:
389 mutable std::vector<NIMQChatServerInfo> vec_servers;
390};
391
393struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetServersPageResp : public QChatServerGetServersResp {
395 QChatPageInfo page_info{};
398 res_code = c_resp.res_code;
399 page_info = c_resp.page_info;
400 if (c_resp.res_code != kNIMResSuccess)
401 return;
402 for (size_t i = 0; i < c_resp.server_list_count; i++) {
403 server_list.emplace_back(c_resp.server_list[i]);
404 }
405 }
406 const NIMQChatServerGetServersPageResp ToCParam() const {
408 c_response.res_code = res_code;
409 c_response.page_info = page_info.ToCParam();
410 vec_servers.clear();
411 for (auto&& info : server_list) {
412 vec_servers.push_back(info.ToCParam());
413 }
414 c_response.server_list_count = vec_servers.size();
415 c_response.server_list = vec_servers.data();
416 return c_response;
417 };
418};
419
421struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerInviteResp {
423 uint32_t res_code{0};
425 uint64_t request_id{0};
427 uint64_t expire_time{0};
429 std::map<std::string, NIMQChatServerInviteFailReason> fail_map;
430 QChatServerInviteResp() = default;
432 res_code = c_resp.res_code;
433 request_id = c_resp.request_id;
434 expire_time = c_resp.expire_time;
435 for (size_t i = 0; i < c_resp.accids_count; i++) {
436 fail_map.emplace(c_resp.accids[i], c_resp.fail_reasons[i]);
437 }
438 };
439 NIMQChatServerInviteResp ToCParam() const {
441 c_resp.res_code = res_code;
442 c_resp.request_id = request_id;
443 c_resp.expire_time = expire_time;
444 vec_accids.clear();
445 vec_fail_reason.clear();
446 for (auto&& pair : fail_map) {
447 vec_accids.push_back(const_cast<char*>(pair.first.c_str()));
448 vec_fail_reason.push_back(pair.second);
449 }
450 c_resp.accids_count = vec_accids.size();
451 c_resp.accids = vec_accids.data();
452 c_resp.fail_reasons = const_cast<NIMQChatServerInviteFailReason*>(vec_fail_reason.data());
453 return c_resp;
454 }
455
456protected:
457 mutable std::vector<char*> vec_accids;
458 mutable std::vector<NIMQChatServerInviteFailReason> vec_fail_reason;
459};
460
462using QChatServerAcceptInviteResp = QChatBaseResp;
463
465using QChatServerRejectInviteResp = QChatBaseResp;
466
468struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerApplyResp {
470 uint32_t res_code{0};
472 uint64_t request_id{0};
474 uint64_t expire_time{0};
475 QChatServerApplyResp() = default;
477 res_code = c_resp.res_code;
478 request_id = c_resp.request_id;
479 expire_time = c_resp.expire_time;
480 };
481 NIMQChatServerApplyResp ToCParam() const {
483 c_resp.res_code = res_code;
484 c_resp.request_id = request_id;
485 c_resp.expire_time = expire_time;
486 return c_resp;
487 }
488};
489
491using QChatServerAcceptApplyResp = QChatBaseResp;
492
494using QChatServerRejectApplyResp = QChatBaseResp;
495
497using QChatServerKickResp = QChatBaseResp;
498
500using QChatServerLeaveResp = QChatBaseResp;
501
503using QChatServerUpdateMemberInfoResp = QChatBaseResp;
504
506struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetMembersResp {
508 uint32_t res_code{0};
510 std::list<QChatMemberInfo> member_list{};
511 QChatServerGetMembersResp() = default;
513 res_code = c_resp.res_code;
514 if (c_resp.res_code != kNIMResSuccess)
515 return;
516 for (size_t i = 0; i < c_resp.member_list_count; i++) {
517 member_list.emplace_back(c_resp.member_list[i]);
518 }
519 }
520 NIMQChatServerGetMembersResp ToCParam() const {
521 NIMQChatServerGetMembersResp c_response{};
522 c_response.res_code = res_code;
523 vec_members.clear();
524 for (auto&& info : member_list) {
525 vec_members.push_back(info.ToCParam());
526 }
527 c_response.member_list_count = vec_members.size();
528 c_response.member_list = vec_members.data();
529 return c_response;
530 };
531
532protected:
533 mutable std::vector<NIMQChatMemberInfo> vec_members;
534};
535
536struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetMembersPageResp : public QChatServerGetMembersResp {
538 QChatPageInfo page_info{};
541 res_code = c_resp.res_code;
542 page_info = c_resp.page_info;
543 if (c_resp.res_code != kNIMResSuccess)
544 return;
545 for (size_t i = 0; i < c_resp.member_list_count; i++) {
546 member_list.emplace_back(c_resp.member_list[i]);
547 }
548 }
549 NIMQChatServerGetMembersPageResp ToCParam() const {
551 c_response.res_code = res_code;
552 c_response.page_info = page_info.ToCParam();
553 vec_members.clear();
554 for (auto&& info : member_list) {
555 vec_members.push_back(info.ToCParam());
556 }
557 c_response.member_list_count = vec_members.size();
558 c_response.member_list = vec_members.data();
559 return c_response;
560 };
561};
562
564struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerSubscribeResp {
566 uint32_t res_code{0};
568 std::vector<uint64_t> failed_servers{};
569 QChatServerSubscribeResp() = default;
571 res_code = c_resp.res_code;
572 for (size_t i = 0; i < c_resp.failed_servers_count; i++) {
573 failed_servers.push_back(c_resp.failed_servers[i]);
574 }
575 }
576 NIMQChatServerSubscribeResp ToCParam() const {
578 c_resp.res_code = res_code;
579 c_resp.failed_servers = const_cast<uint64_t*>(failed_servers.data());
580 c_resp.failed_servers_count = failed_servers.size();
581 return c_resp;
582 }
583};
584
586using QChatServerBanMemberResp = QChatBaseResp;
587
589using QChatServerUnbanMemberResp = QChatBaseResp;
590
592struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetBannedMembersPageResp {
594 uint32_t res_code{0};
596 QChatPageInfo page_info{};
598 std::list<QChatMemberBanInfo> ban_list{};
601 res_code = c_resp.res_code;
602 page_info = c_resp.page_info;
603 if (c_resp.res_code != kNIMResSuccess)
604 return;
605 for (size_t i = 0; i < c_resp.ban_list_count; i++) {
606 ban_list.emplace_back(c_resp.ban_list[i]);
607 }
608 }
609 const NIMQChatServerGetBannedMembersPageResp ToCParam() const {
611 c_response.res_code = res_code;
612 c_response.page_info = page_info.ToCParam();
613 c_ban_list.clear();
614 for (auto&& info : ban_list) {
615 c_ban_list.push_back(info.ToCParam());
616 }
617 c_response.ban_list_count = c_ban_list.size();
618 c_response.ban_list = c_ban_list.data();
619 return c_response;
620 }
621
622protected:
623 mutable std::vector<NIMQChatMemberBanInfo> c_ban_list;
624};
625
627using QChatServerSearchPageResp = QChatServerGetServersPageResp;
628
630using QChatServerMemberSearchResp = QChatServerGetMembersResp;
631
633struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerUnreadResp {
635 std::vector<NIMQChatServerUnreadInfo> unread_infos{};
636 QChatServerUnreadResp() = default;
638 for (size_t i = 0; i < c_resp.unread_infos_count; i++) {
639 unread_infos.emplace_back(c_resp.unread_infos[i]);
640 }
641 }
642};
643
645struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGenerateInviteCodeResp {
647 uint32_t res_code{0};
649 uint64_t server_id{0};
651 uint64_t request_id{0};
653 std::string invite_code;
655 uint64_t expire_time{0};
658 res_code = c_resp.res_code;
659 server_id = c_resp.server_id;
660 request_id = c_resp.request_id;
661 invite_code = c_resp.invite_code ? c_resp.invite_code : "";
662 expire_time = c_resp.expire_time;
663 }
664 const NIMQChatServerGenerateInviteCodeResp ToCParam() const {
666 c_response.res_code = res_code;
667 c_response.server_id = server_id;
668 c_response.request_id = request_id;
669 c_response.invite_code = const_cast<char*>(invite_code.c_str());
670 c_response.expire_time = expire_time;
671 return c_response;
672 }
673};
674
676using QChatServerJoinByInviteCodeResp = QChatBaseResp;
677
679struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetInviteApplyRecordOfServerResp {
681 uint32_t res_code{0};
683 std::vector<QChatInviteApplyRecord> invite_apply_records{};
686 res_code = c_resp.res_code;
687 for (size_t i = 0; i < c_resp.invite_apply_records_count; i++) {
688 invite_apply_records.emplace_back(c_resp.invite_apply_records[i]);
689 }
690 }
693 c_response.res_code = res_code;
694 c_invite_apply_records.clear();
695 for (auto&& info : invite_apply_records) {
696 c_invite_apply_records.push_back(info.ToCParam());
697 }
698 c_response.invite_apply_records_count = c_invite_apply_records.size();
699 c_response.invite_apply_records = const_cast<NIMQChatInviteApplyRecord*>(c_invite_apply_records.data());
700 return c_response;
701 }
702
703protected:
704 mutable std::vector<NIMQChatInviteApplyRecord> c_invite_apply_records;
705};
706
708using QChatServerGetInviteApplyRecordOfSelfResp = QChatServerGetInviteApplyRecordOfServerResp;
709
711struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerMarkReadResp {
713 uint32_t res_code{0};
715 std::vector<uint64_t> succeeded_servers{};
717 std::vector<uint64_t> failed_servers{};
719 uint64_t timestamp{0};
720 QChatServerMarkReadResp() = default;
722 res_code = c_resp.res_code;
723 for (size_t i = 0; i < c_resp.succeeded_servers_count; i++) {
724 succeeded_servers.emplace_back(c_resp.succeeded_servers[i]);
725 }
726 for (size_t i = 0; i < c_resp.failed_servers_count; i++) {
727 failed_servers.emplace_back(c_resp.failed_servers[i]);
728 }
729 timestamp = c_resp.timestamp;
730 }
731 const NIMQChatServerMarkReadResp ToCParam() const {
732 NIMQChatServerMarkReadResp c_response{};
733 c_response.res_code = res_code;
734 c_response.succeeded_servers = const_cast<uint64_t*>(succeeded_servers.data());
735 c_response.succeeded_servers_count = succeeded_servers.size();
736 c_response.failed_servers = const_cast<uint64_t*>(failed_servers.data());
737 c_response.failed_servers_count = failed_servers.size();
738 c_response.timestamp = timestamp;
739 return c_response;
740 }
741};
742
744struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerSubscribeAllChannelResp {
746 uint32_t res_code{0};
748 std::vector<uint64_t> failed_servers{};
750 std::vector<NIMQChatUnreadInfo> unread_infos{};
753 res_code = c_resp.res_code;
754 for (size_t i = 0; i < c_resp.failed_servers_count; i++) {
755 failed_servers.emplace_back(c_resp.failed_servers[i]);
756 }
757 for (size_t i = 0; i < c_resp.unread_infos_count; i++) {
758 unread_infos.emplace_back(c_resp.unread_infos[i]);
759 }
760 }
761 const NIMQChatServerSubscribeAllChannelResp ToCParam() const {
763 c_response.res_code = res_code;
764 c_response.failed_servers = const_cast<uint64_t*>(failed_servers.data());
765 c_response.failed_servers_count = failed_servers.size();
766 c_response.unread_infos = const_cast<NIMQChatUnreadInfo*>(unread_infos.data());
767 c_response.unread_infos_count = unread_infos.size();
768 return c_response;
769 }
770};
771
773using ServerUnreadCallback = std::function<void(const QChatServerUnreadResp&)>;
775typedef std::function<void(const QChatServerCreateResp&)> ServerCreateCallback;
777typedef std::function<void(const QChatServerDeleteResp&)> ServerRemoveCallback;
779typedef std::function<void(const QChatServerUpdateResp&)> ServerUpdateCallback;
781typedef std::function<void(const QChatServerGetServersResp&)> GetServersCallback;
783typedef std::function<void(const QChatServerGetServersPageResp&)> GetServersPageCallback;
785typedef std::function<void(const QChatServerInviteResp&)> ServerInviteCallback;
787typedef std::function<void(const QChatServerAcceptInviteResp&)> ServerAcceptInviteCallback;
789typedef std::function<void(const QChatServerRejectInviteResp&)> ServerRejectInviteCallback;
791typedef std::function<void(const QChatServerApplyResp&)> ServerApplyCallback;
793typedef std::function<void(const QChatServerAcceptApplyResp&)> ServerAcceptApplyCallback;
795typedef std::function<void(const QChatServerRejectApplyResp&)> ServerRejectApplyCallback;
797typedef std::function<void(const QChatServerKickResp&)> ServerKickCallback;
799typedef std::function<void(const QChatServerLeaveResp&)> ServerLeaveCallback;
803typedef std::function<void(const QChatServerGetMembersResp&)> ServerGetMembersCallback;
807typedef std::function<void(const QChatServerSubscribeResp&)> ServerSubscribeCallback;
809typedef std::function<void(const QChatServerBanMemberResp&)> ServerBanMemberCallback;
811typedef std::function<void(const QChatServerUnbanMemberResp&)> ServerUnbanMemberCallback;
827using ServerMarkReadCallback = std::function<void(const QChatServerMarkReadResp&)>;
830
832struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerRegUnreadCbParam {
833 ServerUnreadCallback cb{nullptr};
834 const NIMQChatServerRegUnreadCbParam ToCParam() const {
835 static ServerUnreadCallback cb_holder = nullptr;
836 cb_holder = cb;
838 param.cb = [](const NIMQChatServerUnreadResp& resp) {
839 if (cb_holder)
840 cb_holder(resp);
841 };
842 return param;
843 }
844};
845
847struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerCreateParam {
851 QChatServerInfo server_info{};
854 QChatServerCreateParam() = default;
856 server_info = c_param.server_info;
857 anti_spam_info = c_param.anti_spam_info;
858 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerCreateResp& response) {
859 auto c_response = response.ToCParam();
860 c_response.user_data = user_data;
861 c_callback(c_response);
862 };
863 }
864 const NIMQChatServerCreateParam ToCParam() const {
865 auto cb_holder = new ServerCreateCallback(cb);
866 NIMQChatServerCreateParam param = {};
867 param.user_data = cb_holder;
868 param.cb = [](const NIMQChatServerCreateResp& resp) {
869 InvokeCallback<ServerCreateCallback, NIMQChatServerCreateResp>(resp);
870 };
871 param.server_info = server_info.ToCParam();
872 param.anti_spam_info = anti_spam_info.ToCParam();
873 return param;
874 }
875};
876
878struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerDeleteParam {
882 uint64_t server_id{0};
883 QChatServerDeleteParam() = default;
885 server_id = c_param.server_id;
886 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerDeleteResp& response) {
887 auto c_response = response.ToCParam();
888 c_response.user_data = user_data;
889 c_callback(c_response);
890 };
891 }
892 const NIMQChatServerDeleteParam ToCParam() const {
893 auto cb_holder = new ServerRemoveCallback(cb);
894 NIMQChatServerDeleteParam param = {};
895 param.user_data = cb_holder;
896 param.cb = [](const NIMQChatServerDeleteResp& resp) {
897 InvokeCallback<ServerRemoveCallback, NIMQChatServerDeleteResp>(resp);
898 };
899 param.server_id = server_id;
900 return param;
901 }
902};
903
905struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerUpdateParam {
909 QChatServerInfo server_info{};
912 QChatServerUpdateParam() = default;
914 server_info = c_param.server_info;
915 anti_spam_info = c_param.anti_spam_info;
916 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerUpdateResp& response) {
917 auto c_response = response.ToCParam();
918 c_response.user_data = user_data;
919 c_callback(c_response);
920 };
921 }
922 const NIMQChatServerUpdateParam ToCParam() const {
923 auto cb_holder = new ServerUpdateCallback(cb);
924 NIMQChatServerUpdateParam param = {};
925 param.user_data = cb_holder;
926 param.cb = [](const NIMQChatServerUpdateResp& resp) {
927 InvokeCallback<ServerUpdateCallback, NIMQChatServerUpdateResp>(resp);
928 };
929 param.server_info = server_info.ToCParam();
930 param.anti_spam_info = anti_spam_info.ToCParam();
931 return param;
932 }
933};
934
936struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetServersParam {
940 std::vector<uint64_t> server_ids{};
941 QChatServerGetServersParam() = default;
943 for (size_t i = 0; i < c_param.server_ids_count; i++) {
944 server_ids.push_back(c_param.server_ids[i]);
945 }
946 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetServersResp& response) {
947 auto c_response = response.ToCParam();
948 c_response.user_data = user_data;
949 c_callback(c_response);
950 };
951 }
952 const NIMQChatServerGetServersParam ToCParam() const {
953 auto cb_holder = new GetServersCallback(cb);
955 param.user_data = cb_holder;
956 param.cb = [](const NIMQChatServerGetServersResp& resp) {
957 InvokeCallback<GetServersCallback, NIMQChatServerGetServersResp>(resp);
958 };
959 param.server_ids_count = server_ids.size();
960 param.server_ids = const_cast<uint64_t*>(server_ids.data());
961 return param;
962 }
963};
964
966struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetServersPageParam {
970 uint64_t timestamp{0};
972 uint32_t limit{100};
975 timestamp = c_param.timestamp;
976 limit = c_param.limit;
977 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetServersPageResp& response) {
978 auto c_response = response.ToCParam();
979 c_response.user_data = user_data;
980 c_callback(c_response);
981 };
982 }
983 const NIMQChatServerGetServersPageParam ToCParam() const {
984 auto cb_holder = new GetServersPageCallback(cb);
986 param.user_data = cb_holder;
987 param.cb = [](const NIMQChatServerGetServersPageResp& resp) {
988 InvokeCallback<GetServersPageCallback, NIMQChatServerGetServersPageResp>(resp);
989 };
990 param.timestamp = timestamp;
991 param.limit = limit;
992 return param;
993 }
994};
995
997struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerInviteParam {
1001 uint64_t server_id{0};
1003 std::list<std::string> invite_ids{};
1005 uint64_t ttl{0};
1007 std::string postscript;
1008 QChatServerInviteParam() = default;
1010 server_id = c_param.server_id;
1011 for (size_t i = 0; i < c_param.invite_ids_count; i++) {
1012 invite_ids.push_back(c_param.invite_ids[i]);
1013 }
1014 ttl = c_param.ttl;
1015 postscript = c_param.postscript;
1016 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerInviteResp& response) {
1017 auto c_response = response.ToCParam();
1018 c_response.user_data = user_data;
1019 c_callback(c_response);
1020 };
1021 }
1022 const NIMQChatServerInviteParam ToCParam() const {
1023 auto cb_holder = new ServerInviteCallback(cb);
1024 NIMQChatServerInviteParam param = {};
1025 vec_invite_ids.clear();
1026 for (auto&& id : invite_ids) {
1027 vec_invite_ids.push_back(const_cast<char*>(id.c_str()));
1028 }
1029 param.invite_ids_count = vec_invite_ids.size();
1030 param.invite_ids = vec_invite_ids.data();
1031 param.user_data = cb_holder;
1032 param.cb = [](const NIMQChatServerInviteResp& resp) {
1033 InvokeCallback<ServerInviteCallback, NIMQChatServerInviteResp>(resp);
1034 };
1035 param.server_id = server_id;
1036 param.ttl = ttl;
1037 param.postscript = const_cast<char*>(postscript.c_str());
1038 return param;
1039 }
1040
1041protected:
1042 mutable std::vector<char*> vec_invite_ids{};
1043};
1044
1046struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerAcceptInviteParam {
1050 uint64_t server_id{0};
1052 std::string accid{""};
1054 uint64_t request_id;
1055 QChatServerAcceptInviteParam() = default;
1057 server_id = c_param.server_id;
1058 accid = c_param.accid;
1059 request_id = c_param.request_id;
1060 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerAcceptInviteResp& response) {
1061 auto c_response = response.ToCParam();
1062 c_response.user_data = user_data;
1063 c_callback(c_response);
1064 };
1065 }
1066 const NIMQChatServerAcceptInviteParam ToCParam() const {
1067 auto cb_holder = new ServerAcceptInviteCallback(cb);
1069 param.user_data = cb_holder;
1070 param.cb = [](const NIMQChatServerAcceptInviteResp& resp) {
1071 InvokeCallback<ServerAcceptInviteCallback, NIMQChatServerAcceptInviteResp>(resp);
1072 };
1073 param.server_id = server_id;
1074 param.accid = const_cast<char*>(accid.c_str());
1075 param.request_id = request_id;
1076 return param;
1077 }
1078};
1079
1081struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerRejectInviteParam {
1085 uint64_t server_id{0};
1087 std::string accid{""};
1089 std::string postscript;
1091 uint64_t request_id;
1092 QChatServerRejectInviteParam() = default;
1094 server_id = c_param.server_id;
1095 accid = c_param.accid;
1096 postscript = c_param.postscript;
1097 request_id = c_param.request_id;
1098 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerRejectInviteResp& response) {
1099 auto c_response = response.ToCParam();
1100 c_response.user_data = user_data;
1101 c_callback(c_response);
1102 };
1103 }
1104 const NIMQChatServerRejectInviteParam ToCParam() const {
1105 auto cb_holder = new ServerRejectInviteCallback(cb);
1107 param.user_data = cb_holder;
1108 param.cb = [](const NIMQChatServerRejectInviteResp& resp) {
1109 InvokeCallback<ServerRejectInviteCallback, NIMQChatServerRejectInviteResp>(resp);
1110 };
1111 param.server_id = server_id;
1112 param.accid = const_cast<char*>(accid.c_str());
1113 param.postscript = const_cast<char*>(postscript.c_str());
1114 param.request_id = request_id;
1115 return param;
1116 }
1117};
1118
1120struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerApplyParam {
1124 uint64_t server_id{0};
1126 uint64_t ttl{0};
1128 std::string postscript;
1129 QChatServerApplyParam() = default;
1131 server_id = c_param.server_id;
1132 postscript = c_param.postscript;
1133 ttl = c_param.ttl;
1134 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerApplyResp& response) {
1135 auto c_response = response.ToCParam();
1136 c_response.user_data = user_data;
1137 c_callback(c_response);
1138 };
1139 }
1140 const NIMQChatServerApplyParam ToCParam() const {
1141 auto cb_holder = new ServerApplyCallback(cb);
1142 NIMQChatServerApplyParam param = {};
1143 param.user_data = cb_holder;
1144 param.cb = [](const NIMQChatServerApplyResp& resp) {
1145 InvokeCallback<ServerApplyCallback, NIMQChatServerApplyResp>(resp);
1146 };
1147 param.server_id = server_id;
1148 param.ttl = ttl;
1149 param.postscript = const_cast<char*>(postscript.c_str());
1150 return param;
1151 }
1152};
1153
1155struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerAcceptApplyParam {
1159 uint64_t server_id{0};
1161 std::string accid{""};
1163 uint64_t request_id;
1164 QChatServerAcceptApplyParam() = default;
1166 server_id = c_param.server_id;
1167 accid = c_param.accid;
1168 request_id = c_param.request_id;
1169 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerAcceptApplyResp& response) {
1170 auto c_response = response.ToCParam();
1171 c_response.user_data = user_data;
1172 c_callback(c_response);
1173 };
1174 }
1175 const NIMQChatServerAcceptApplyParam ToCParam() const {
1176 auto cb_holder = new ServerAcceptApplyCallback(cb);
1178 param.user_data = cb_holder;
1179 param.cb = [](const NIMQChatServerAcceptApplyResp& resp) {
1180 InvokeCallback<ServerAcceptApplyCallback, NIMQChatServerAcceptApplyResp>(resp);
1181 };
1182 param.server_id = server_id;
1183 param.accid = const_cast<char*>(accid.c_str());
1184 param.request_id = request_id;
1185 return param;
1186 }
1187};
1188
1190struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerRejectApplyParam {
1194 uint64_t server_id{0};
1196 std::string accid{""};
1198 std::string postscript;
1200 uint64_t request_id;
1201 QChatServerRejectApplyParam() = default;
1203 server_id = c_param.server_id;
1204 accid = c_param.accid;
1205 postscript = c_param.postscript;
1206 request_id = c_param.request_id;
1207 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerRejectApplyResp& response) {
1208 auto c_response = response.ToCParam();
1209 c_response.user_data = user_data;
1210 c_callback(c_response);
1211 };
1212 }
1213 const NIMQChatServerRejectApplyParam ToCParam() const {
1214 auto cb_holder = new ServerRejectApplyCallback(cb);
1216 param.user_data = cb_holder;
1217 param.cb = [](const NIMQChatServerRejectApplyResp& resp) {
1218 InvokeCallback<ServerRejectApplyCallback, NIMQChatServerRejectApplyResp>(resp);
1219 };
1220 param.server_id = server_id;
1221 param.accid = const_cast<char*>(accid.c_str());
1222 param.postscript = const_cast<char*>(postscript.c_str());
1223 param.request_id = request_id;
1224 return param;
1225 }
1226};
1227
1229struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerKickParam {
1233 uint64_t server_id{0};
1235 std::list<std::string> accids{};
1236 QChatServerKickParam() = default;
1238 server_id = c_param.server_id;
1239 for (size_t i = 0; i < c_param.accids_count; i++) {
1240 accids.push_back(c_param.accids[i]);
1241 }
1242 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerKickResp& response) {
1243 auto c_response = response.ToCParam();
1244 c_response.user_data = user_data;
1245 c_callback(c_response);
1246 };
1247 }
1248 const NIMQChatServerKickParam ToCParam() const {
1249 auto cb_holder = new ServerKickCallback(cb);
1250 NIMQChatServerKickParam param = {};
1251 vec_accids.clear();
1252 for (auto&& id : accids) {
1253 vec_accids.push_back(const_cast<char*>(id.c_str()));
1254 }
1255 param.accids_count = vec_accids.size();
1256 param.accids = vec_accids.data();
1257 param.user_data = cb_holder;
1258 param.cb = [](const NIMQChatServerKickResp& resp) {
1259 InvokeCallback<ServerKickCallback, NIMQChatServerKickResp>(resp);
1260 };
1261 param.server_id = server_id;
1262 return param;
1263 }
1264
1265protected:
1266 // 以下字段为内部使用
1267 mutable std::vector<char*> vec_accids;
1268};
1269
1271struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerLeaveParam {
1275 uint64_t server_id{0};
1276 QChatServerLeaveParam() = default;
1278 server_id = c_param.server_id;
1279 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerLeaveResp& response) {
1280 auto c_response = response.ToCParam();
1281 c_response.user_data = user_data;
1282 c_callback(c_response);
1283 };
1284 }
1285 const NIMQChatServerLeaveParam ToCParam() const {
1286 auto cb_holder = new ServerLeaveCallback(cb);
1287 NIMQChatServerLeaveParam param = {};
1288 param.user_data = cb_holder;
1289 param.cb = [](const NIMQChatServerLeaveResp& resp) {
1290 InvokeCallback<ServerLeaveCallback, NIMQChatServerLeaveResp>(resp);
1291 };
1292 param.server_id = server_id;
1293 return param;
1294 }
1295};
1296
1298struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerUpdateMemberInfoParam {
1302 QChatMemberInfo member_info{};
1307 member_info = c_param.member_info;
1308 anti_spam_info = c_param.anti_spam_info;
1309 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerUpdateMemberInfoResp& response) {
1310 auto c_response = response.ToCParam();
1311 c_response.user_data = user_data;
1312 c_callback(c_response);
1313 };
1314 }
1315 const NIMQChatServerUpdateMemberInfoParam ToCParam() const {
1316 auto cb_holder = new ServerUpdateMemberInfoCallback(cb);
1318 param.user_data = cb_holder;
1319 param.cb = [](const NIMQChatServerUpdateMemberInfoResp& resp) {
1320 InvokeCallback<ServerUpdateMemberInfoCallback, NIMQChatServerUpdateMemberInfoResp>(resp);
1321 };
1322 param.member_info = member_info.ToCParam();
1323 param.anti_spam_info = anti_spam_info.ToCParam();
1324 return param;
1325 }
1326};
1327
1329struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetMembersParam {
1333 std::list<std::pair<uint64_t, std::string>> server_accid_list;
1334 QChatServerGetMembersParam() = default;
1336 server_accid_list.clear();
1337 for (auto index = 0; index < c_param.server_accid_list_count; index++) {
1338 server_accid_list.push_back(
1339 std::make_pair(c_param.server_accid_list[index].server_id, std::string(c_param.server_accid_list[index].accid)));
1340 }
1341 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetMembersResp& response) {
1342 auto c_response = response.ToCParam();
1343 c_response.user_data = user_data;
1344 c_callback(c_response);
1345 };
1346 }
1347 const NIMQChatServerGetMembersParam ToCParam() const {
1348 auto cb_holder = new ServerGetMembersCallback(cb);
1349 for (auto&& item : server_accid_list) {
1350 NIMQChatServerMemberPair pair = {};
1351 pair.server_id = item.first;
1352 pair.accid = const_cast<char*>(item.second.c_str());
1353 vec_server_accid_list.push_back(pair);
1354 }
1356 param.user_data = cb_holder;
1357 param.server_accid_list = vec_server_accid_list.data();
1358 param.server_accid_list_count = vec_server_accid_list.size();
1359 param.cb = [](const NIMQChatServerGetMembersResp& resp) {
1360 InvokeCallback<ServerGetMembersCallback, NIMQChatServerGetMembersResp>(resp);
1361 };
1362 return param;
1363 }
1364
1365protected:
1366 // 以下字段为内部使用
1367 mutable std::vector<NIMQChatServerMemberPair> vec_server_accid_list;
1368};
1369
1371struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetMembersPageParam {
1375 uint64_t server_id{0};
1377 uint64_t timestamp{0};
1379 uint32_t limit{100};
1382 server_id = c_param.server_id;
1383 timestamp = c_param.timestamp;
1384 limit = c_param.limit;
1385 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetMembersPageResp& response) {
1386 auto c_response = response.ToCParam();
1387 c_response.user_data = user_data;
1388 c_callback(c_response);
1389 };
1390 }
1391 const NIMQChatServerGetMembersPageParam ToCParam() const {
1392 auto cb_holder = new ServerGetMembersPageCallback(cb);
1394 param.user_data = cb_holder;
1395 param.cb = [](const NIMQChatServerGetMembersPageResp& resp) {
1396 InvokeCallback<ServerGetMembersPageCallback, NIMQChatServerGetMembersPageResp>(resp);
1397 };
1398 param.server_id = server_id;
1399 param.timestamp = timestamp;
1400 param.limit = limit;
1401 return param;
1402 }
1403};
1404
1406struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerSubscribeParam {
1414 std::vector<uint64_t> server_ids{};
1415 QChatServerSubscribeParam() = default;
1417 ope_type = c_param.ope_type;
1418 sub_type = c_param.sub_type;
1419 for (size_t i = 0; i < c_param.server_ids_count; i++) {
1420 server_ids.push_back(c_param.server_ids[i]);
1421 }
1422 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerSubscribeResp& response) {
1423 auto c_response = response.ToCParam();
1424 c_response.user_data = user_data;
1425 c_callback(c_response);
1426 };
1427 }
1428 const NIMQChatServerSubscribeParam ToCParam() const {
1429 auto cb_holder = new ServerSubscribeCallback(cb);
1431 param.user_data = cb_holder;
1432 param.cb = [](const NIMQChatServerSubscribeResp& resp) {
1433 InvokeCallback<ServerSubscribeCallback, NIMQChatServerSubscribeResp>(resp);
1434 };
1435 param.ope_type = ope_type;
1436 param.sub_type = sub_type;
1437 param.server_ids_count = server_ids.size();
1438 param.server_ids = const_cast<uint64_t*>(server_ids.data());
1439 return param;
1440 }
1441};
1442
1444struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerBanMemberParam {
1448 uint64_t server_id{0};
1450 std::string accid;
1452 std::string custom;
1453 QChatServerBanMemberParam() = default;
1455 server_id = c_param.server_id;
1456 accid = c_param.accid;
1457 custom = c_param.custom;
1458 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerBanMemberResp& response) {
1459 auto c_response = response.ToCParam();
1460 c_response.user_data = user_data;
1461 c_callback(c_response);
1462 };
1463 }
1464 const NIMQChatServerBanMemberParam ToCParam() const {
1465 auto cb_holder = new ServerBanMemberCallback(cb);
1467 param.user_data = cb_holder;
1468 param.cb = [](const NIMQChatServerBanMemberResp& resp) {
1469 InvokeCallback<ServerBanMemberCallback, NIMQChatServerBanMemberResp>(resp);
1470 };
1471 param.server_id = server_id;
1472 param.accid = const_cast<char*>(accid.c_str());
1473 param.custom = const_cast<char*>(custom.c_str());
1474 return param;
1475 }
1476};
1477
1479struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerUnbanMemberParam {
1483 uint64_t server_id{0};
1485 std::string accid;
1487 std::string custom;
1488 QChatServerUnbanMemberParam() = default;
1490 server_id = c_param.server_id;
1491 accid = c_param.accid;
1492 custom = c_param.custom;
1493 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerUnbanMemberResp& response) {
1494 auto c_response = response.ToCParam();
1495 c_response.user_data = user_data;
1496 c_callback(c_response);
1497 };
1498 }
1499 const NIMQChatServerUnbanMemberParam ToCParam() const {
1500 auto cb_holder = new ServerUnbanMemberCallback(cb);
1502 param.user_data = cb_holder;
1503 param.cb = [](const NIMQChatServerUnbanMemberResp& resp) {
1504 InvokeCallback<ServerUnbanMemberCallback, NIMQChatServerUnbanMemberResp>(resp);
1505 };
1506 param.server_id = server_id;
1507 param.accid = const_cast<char*>(accid.c_str());
1508 param.custom = const_cast<char*>(custom.c_str());
1509 return param;
1510 }
1511};
1512
1514struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetBannedMembersPageParam {
1518 uint64_t server_id{0};
1520 uint64_t timestamp{0};
1522 uint32_t limit{100};
1525 server_id = c_param.server_id;
1526 timestamp = c_param.timestamp;
1527 limit = c_param.limit;
1528 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetBannedMembersPageResp& response) {
1529 auto c_response = response.ToCParam();
1530 c_response.user_data = user_data;
1531 c_callback(c_response);
1532 };
1533 }
1534 const NIMQChatServerGetBannedMembersPageParam ToCParam() const {
1535 auto cb_holder = new ServerGetBannedMembersPageCallback(cb);
1537 param.user_data = cb_holder;
1538 param.cb = [](const NIMQChatServerGetBannedMembersPageResp& resp) {
1539 InvokeCallback<ServerGetBannedMembersPageCallback, NIMQChatServerGetBannedMembersPageResp>(resp);
1540 };
1541 param.server_id = server_id;
1542 param.timestamp = timestamp;
1543 param.limit = limit;
1544 return param;
1545 }
1546};
1547
1549struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerSearchPageParam {
1553 std::string keyword{""};
1555 uint64_t start_time{0};
1557 uint64_t end_time{0};
1563 std::vector<uint32_t> server_types;
1567 uint32_t limit{100};
1569 std::string cursor{""};
1570 QChatServerSearchPageParam() = default;
1572 keyword = c_param.keyword ? c_param.keyword : "";
1573 start_time = c_param.start_time;
1574 end_time = c_param.end_time;
1575 order = c_param.order;
1576 sort = c_param.sort;
1577 for (size_t i = 0; i < c_param.server_types_count; i++) {
1578 server_types.push_back(c_param.server_types[i]);
1579 }
1580 search_type = c_param.search_type;
1581 limit = c_param.limit;
1582 cursor = c_param.cursor ? c_param.cursor : "";
1583 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerSearchPageResp& response) {
1584 auto c_response = response.ToCParam();
1585 c_response.user_data = user_data;
1586 c_callback(c_response);
1587 };
1588 }
1589 const NIMQChatServerSearchPageParam ToCParam() const {
1590 auto cb_holder = new ServerSearchPageCallback(cb);
1592 param.user_data = cb_holder;
1593 param.cb = [](const NIMQChatServerSearchPageResp& resp) {
1594 InvokeCallback<ServerSearchPageCallback, NIMQChatServerSearchPageResp>(resp);
1595 };
1596 param.keyword = const_cast<char*>(keyword.c_str());
1597 param.start_time = start_time;
1598 param.end_time = end_time;
1599 param.order = order;
1600 param.sort = sort;
1601 param.server_types = const_cast<uint32_t*>(server_types.data());
1602 param.server_types_count = server_types.size();
1603 param.search_type = search_type;
1604 param.limit = limit;
1605 param.cursor = const_cast<char*>(cursor.c_str());
1606 return param;
1607 }
1608};
1609
1611struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerMemberSearchParam {
1615 uint64_t server_id{0};
1617 std::string keyword{""};
1619 uint32_t limit{100};
1620 QChatServerMemberSearchParam() = default;
1622 server_id = c_param.server_id;
1623 keyword = c_param.keyword;
1624 limit = c_param.limit;
1625 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerMemberSearchResp& response) {
1626 auto c_response = response.ToCParam();
1627 c_response.user_data = user_data;
1628 c_callback(c_response);
1629 };
1630 }
1631 const NIMQChatServerMemberSearchParam ToCParam() const {
1632 auto cb_holder = new ServerMemberSearchCallback(cb);
1634 param.user_data = cb_holder;
1635 param.cb = [](const NIMQChatServerMemberSearchResp& resp) {
1636 InvokeCallback<ServerMemberSearchCallback, NIMQChatServerMemberSearchResp>(resp);
1637 };
1638 param.server_id = server_id;
1639 param.keyword = const_cast<char*>(keyword.c_str());
1640 param.limit = limit;
1641 return param;
1642 }
1643};
1644
1646struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGenerateInviteCodeParam {
1650 uint64_t server_id{0};
1652 uint64_t ttl{0};
1655 server_id = c_param.server_id;
1656 ttl = c_param.ttl;
1657 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGenerateInviteCodeResp& response) {
1658 auto c_response = response.ToCParam();
1659 c_response.user_data = user_data;
1660 c_callback(c_response);
1661 };
1662 }
1663 const NIMQChatServerGenerateInviteCodeParam ToCParam() const {
1664 auto cb_holder = new ServerGenerateInviteCodeCallback(cb);
1666 param.user_data = cb_holder;
1667 param.cb = [](const NIMQChatServerGenerateInviteCodeResp& resp) {
1668 InvokeCallback<ServerGenerateInviteCodeCallback, NIMQChatServerGenerateInviteCodeResp>(resp);
1669 };
1670 param.server_id = server_id;
1671 param.ttl = ttl;
1672 return param;
1673 }
1674};
1675
1677struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerJoinByInviteCodeParam {
1681 uint64_t server_id{0};
1683 std::string invite_code;
1685 std::string postscript;
1688 server_id = c_param.server_id;
1689 invite_code = c_param.invite_code;
1690 postscript = c_param.postscript;
1691 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerJoinByInviteCodeResp& response) {
1692 auto c_response = response.ToCParam();
1693 c_response.user_data = user_data;
1694 c_callback(c_response);
1695 };
1696 }
1697 const NIMQChatServerJoinByInviteCodeParam ToCParam() const {
1698 auto cb_holder = new ServerJoinByInviteCodeCallback(cb);
1700 param.user_data = cb_holder;
1701 param.cb = [](const NIMQChatServerJoinByInviteCodeResp& resp) {
1702 InvokeCallback<ServerJoinByInviteCodeCallback, NIMQChatServerJoinByInviteCodeResp>(resp);
1703 };
1704 param.server_id = server_id;
1705 param.invite_code = const_cast<char*>(invite_code.c_str());
1706 param.postscript = const_cast<char*>(postscript.c_str());
1707 return param;
1708 }
1709};
1710
1712struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetInviteApplyRecordOfServerParam {
1716 uint64_t server_id{0};
1718 uint64_t start_time{0};
1720 uint64_t end_time{0};
1722 bool reverse{false};
1724 uint32_t limit{0};
1726 uint64_t exclude_record_id{0};
1729 server_id = c_param.server_id;
1730 start_time = c_param.start_time;
1731 end_time = c_param.end_time;
1732 reverse = c_param.reverse;
1733 limit = c_param.limit;
1734 exclude_record_id = c_param.exclude_record_id;
1735 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetInviteApplyRecordOfServerResp& response) {
1736 auto c_response = response.ToCParam();
1737 c_response.user_data = user_data;
1738 c_callback(c_response);
1739 };
1740 }
1742 auto cb_holder = new ServerGetInviteApplyRecordOfServerCallback(cb);
1744 param.user_data = cb_holder;
1745 param.cb = [](const NIMQChatServerGetInviteApplyRecordOfServerResp& resp) {
1746 InvokeCallback<ServerGetInviteApplyRecordOfServerCallback, NIMQChatServerGetInviteApplyRecordOfServerResp>(resp);
1747 };
1748 param.server_id = server_id;
1749 param.start_time = start_time;
1750 param.end_time = end_time;
1751 param.reverse = reverse;
1752 param.limit = limit;
1753 param.exclude_record_id = exclude_record_id;
1754 return param;
1755 }
1756};
1757
1759struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerGetInviteApplyRecordOfSelfParam {
1763 uint64_t start_time{0};
1765 uint64_t end_time{0};
1767 bool reverse{false};
1769 uint32_t limit{0};
1771 uint64_t exclude_record_id{0};
1774 start_time = c_param.start_time;
1775 end_time = c_param.end_time;
1776 reverse = c_param.reverse;
1777 limit = c_param.limit;
1778 exclude_record_id = c_param.exclude_record_id;
1779 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerGetInviteApplyRecordOfSelfResp& response) {
1780 auto c_response = response.ToCParam();
1781 c_response.user_data = user_data;
1782 c_callback(c_response);
1783 };
1784 }
1785 const NIMQChatServerGetInviteApplyRecordOfSelfParam ToCParam() const {
1786 auto cb_holder = new ServerGetInviteApplyRecordOfSelfCallback(cb);
1788 param.user_data = cb_holder;
1789 param.cb = [](const NIMQChatServerGetInviteApplyRecordOfSelfResp& resp) {
1790 InvokeCallback<ServerGetInviteApplyRecordOfSelfCallback, NIMQChatServerGetInviteApplyRecordOfSelfResp>(resp);
1791 };
1792 param.start_time = start_time;
1793 param.end_time = end_time;
1794 param.reverse = reverse;
1795 param.limit = limit;
1796 param.exclude_record_id = exclude_record_id;
1797 return param;
1798 }
1799};
1800
1802struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerMarkReadParam {
1806 std::vector<uint64_t> server_ids;
1807 QChatServerMarkReadParam() = default;
1809 for (size_t i = 0; i < c_param.server_ids_count; i++) {
1810 server_ids.push_back(c_param.server_ids[i]);
1811 }
1812 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerMarkReadResp& response) {
1813 auto c_response = response.ToCParam();
1814 c_response.user_data = user_data;
1815 c_callback(c_response);
1816 };
1817 }
1818 const NIMQChatServerMarkReadParam ToCParam() const {
1819 auto cb_holder = new ServerMarkReadCallback(cb);
1820 NIMQChatServerMarkReadParam param = {};
1821 param.user_data = cb_holder;
1822 param.cb = [](const NIMQChatServerMarkReadResp& resp) {
1823 InvokeCallback<ServerMarkReadCallback, NIMQChatServerMarkReadResp>(resp);
1824 };
1825 param.server_ids_count = server_ids.size();
1826 param.server_ids = const_cast<uint64_t*>(server_ids.data());
1827 return param;
1828 }
1829};
1830
1832struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatServerSubscribeAllChannelParam {
1838 std::vector<uint64_t> server_ids;
1841 sub_type = c_param.sub_type;
1842 for (size_t i = 0; i < c_param.server_ids_count; i++) {
1843 server_ids.push_back(c_param.server_ids[i]);
1844 }
1845 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatServerSubscribeAllChannelResp& response) {
1846 auto c_response = response.ToCParam();
1847 c_response.user_data = user_data;
1848 c_callback(c_response);
1849 };
1850 }
1851 const NIMQChatServerSubscribeAllChannelParam ToCParam() const {
1852 auto cb_holder = new ServerSubscribeAllChannelCallback(cb);
1854 param.user_data = cb_holder;
1855 param.cb = [](const NIMQChatServerSubscribeAllChannelResp& resp) {
1856 InvokeCallback<ServerSubscribeAllChannelCallback, NIMQChatServerSubscribeAllChannelResp>(resp);
1857 };
1858 param.sub_type = sub_type;
1859 param.server_ids_count = server_ids.size();
1860 param.server_ids = const_cast<uint64_t*>(server_ids.data());
1861 return param;
1862 }
1863};
1864
1865} // namespace nim_qchat
1866
1867#endif // __NIM_QCHAT_SERVER_CPP_DEF_H__
namespace nim_qchat
std::function< void(const QChatServerGenerateInviteCodeResp &)> ServerGenerateInviteCodeCallback
生成邀请码回调
Definition: nim_qchat_server_cpp_def.h:819
std::function< void(const QChatServerUnbanMemberResp &)> ServerUnbanMemberCallback
解封成员回调
Definition: nim_qchat_server_cpp_def.h:811
std::function< void(const QChatServerMarkReadResp &)> ServerMarkReadCallback
服务器标记已读
Definition: nim_qchat_server_cpp_def.h:827
std::function< void(const QChatServerAcceptInviteResp &)> ServerAcceptInviteCallback
接受邀请加入服务器回调
Definition: nim_qchat_server_cpp_def.h:787
std::function< void(const QChatServerJoinByInviteCodeResp &)> ServerJoinByInviteCodeCallback
通过邀请码加入回调
Definition: nim_qchat_server_cpp_def.h:821
std::function< void(const QChatServerAcceptApplyResp &)> ServerAcceptApplyCallback
接受申请加入服务器回调
Definition: nim_qchat_server_cpp_def.h:793
std::function< void(const QChatServerRejectApplyResp &)> ServerRejectApplyCallback
拒绝申请加入服务器回调
Definition: nim_qchat_server_cpp_def.h:795
std::function< void(const QChatServerInviteResp &)> ServerInviteCallback
邀请用户加入服务器回调
Definition: nim_qchat_server_cpp_def.h:785
std::function< void(const QChatServerGetInviteApplyRecordOfServerResp &)> ServerGetInviteApplyRecordOfServerCallback
查询服务器下的申请邀请记录回调
Definition: nim_qchat_server_cpp_def.h:823
std::function< void(const QChatServerSubscribeResp &)> ServerSubscribeCallback
订阅回调
Definition: nim_qchat_server_cpp_def.h:807
std::function< void(const QChatServerGetBannedMembersPageResp &)> ServerGetBannedMembersPageCallback
查询服务器成员封禁列表分页回调
Definition: nim_qchat_server_cpp_def.h:813
std::function< void(const QChatServerSubscribeAllChannelResp &)> ServerSubscribeAllChannelCallback
订阅所有频道
Definition: nim_qchat_server_cpp_def.h:829
std::function< void(const QChatServerDeleteResp &)> ServerRemoveCallback
删除服务器回调
Definition: nim_qchat_server_cpp_def.h:777
std::function< void(const QChatServerUpdateResp &)> ServerUpdateCallback
更新服务器回调
Definition: nim_qchat_server_cpp_def.h:779
std::function< void(const QChatServerKickResp &)> ServerKickCallback
踢出服务器回调
Definition: nim_qchat_server_cpp_def.h:797
std::function< void(const QChatServerRejectInviteResp &)> ServerRejectInviteCallback
拒绝邀请加入服务器回调
Definition: nim_qchat_server_cpp_def.h:789
std::function< void(const QChatServerLeaveResp &)> ServerLeaveCallback
离开服务器回调
Definition: nim_qchat_server_cpp_def.h:799
std::function< void(const QChatServerGetMembersResp &)> ServerGetMembersCallback
查询服务器成员列表回调
Definition: nim_qchat_server_cpp_def.h:803
GetServersPageCallback ServerSearchPageCallback
搜索服务器分页回调
Definition: nim_qchat_server_cpp_def.h:815
std::function< void(const QChatServerGetServersResp &)> GetServersCallback
查询服务器列表回调
Definition: nim_qchat_server_cpp_def.h:781
std::function< void(const QChatServerUpdateMemberInfoResp &)> ServerUpdateMemberInfoCallback
更新服务器成员信息回调
Definition: nim_qchat_server_cpp_def.h:801
std::function< void(const QChatServerGetInviteApplyRecordOfSelfResp &)> ServerGetInviteApplyRecordOfSelfCallback
查询自己的申请邀请记录回调
Definition: nim_qchat_server_cpp_def.h:825
std::function< void(const QChatServerApplyResp &)> ServerApplyCallback
申请加入服务器回调
Definition: nim_qchat_server_cpp_def.h:791
std::function< void(const QChatServerCreateResp &)> ServerCreateCallback
创建服务器回调
Definition: nim_qchat_server_cpp_def.h:775
std::function< void(const QChatServerBanMemberResp &)> ServerBanMemberCallback
封禁成员回调
Definition: nim_qchat_server_cpp_def.h:809
ServerGetMembersCallback ServerMemberSearchCallback
搜索服务器成员分页回调
Definition: nim_qchat_server_cpp_def.h:817
std::function< void(const QChatServerGetServersPageResp &)> GetServersPageCallback
查询服务器列表分页回调
Definition: nim_qchat_server_cpp_def.h:783
std::function< void(const QChatServerGetMembersPageResp &)> ServerGetMembersPageCallback
查询服务器成员列表分页回调
Definition: nim_qchat_server_cpp_def.h:805
std::function< void(const QChatServerUnreadResp &)> ServerUnreadCallback
未读数回调
Definition: nim_qchat_server_cpp_def.h:773
@ kNIMResSuccess
Definition: nim_chatroom_res_code_def.h:18
圈组CPP wrapper helpers
NIMQChatSubscribeType
Definition: nim_qchat_public_def.h:45
@ kNIMQChatSubscribeTypeServerNotification
订阅某个server的【通知】
Definition: nim_qchat_public_def.h:55
NIMQChatServerSearchSort
服务器搜索排序规则
Definition: nim_qchat_public_def.h:90
@ kNIMQChatServerSearchSortCreateTime
创建时间排序
Definition: nim_qchat_public_def.h:94
NIMQChatSearchOrder
搜索排序顺序
Definition: nim_qchat_public_def.h:82
@ kNIMQChatSearchOrderAsc
按时间正序
Definition: nim_qchat_public_def.h:84
NIMQChatSubscribeOpeType
Definition: nim_qchat_public_def.h:37
@ kNIMQChatSubscribeOpeTypeSubscribe
订阅
Definition: nim_qchat_public_def.h:39
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
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:639
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:649
char * accid
申请人 id
Definition: nim_qchat_server_def.h:647
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:645
nim_qchat_server_accept_apply_cb_func cb
接受申请异步回调
Definition: nim_qchat_server_def.h:641
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:643
Definition: nim_qchat_server_def.h:595
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:605
nim_qchat_server_accept_invite_cb_func cb
接受邀请异步回调
Definition: nim_qchat_server_def.h:597
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:599
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:601
char * accid
邀请人 id
Definition: nim_qchat_server_def.h:603
Definition: nim_qchat_server_def.h:625
nim_qchat_server_apply_cb_func cb
申请加入异步回调
Definition: nim_qchat_server_def.h:627
char * postscript
附言
Definition: nim_qchat_server_def.h:635
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:629
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:631
uint64_t ttl
请求生存时间 ms
Definition: nim_qchat_server_def.h:633
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:753
char * accid
用户id
Definition: nim_qchat_server_def.h:761
char * custom
自定义字段
Definition: nim_qchat_server_def.h:763
nim_qchat_server_ban_member_cb_func cb
封禁成员异步回调
Definition: nim_qchat_server_def.h:755
uint64_t server_id
服务器ID
Definition: nim_qchat_server_def.h:759
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:757
Definition: nim_qchat_server_def.h:519
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_server_def.h:527
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:523
nim_qchat_server_create_cb_func cb
创建会话异步回调
Definition: nim_qchat_server_def.h:521
NIMQChatServerInfo server_info
服务器信息
Definition: nim_qchat_server_def.h:525
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:531
nim_qchat_server_remove_cb_func cb
删除会话异步回调
Definition: nim_qchat_server_def.h:533
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:537
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:535
Definition: nim_qchat_server_def.h:837
uint64_t ttl
请求生存时间 ms
Definition: nim_qchat_server_def.h:845
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:841
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:843
nim_qchat_server_generate_invite_code_cb_func cb
生成邀请码异步回调
Definition: nim_qchat_server_def.h:839
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:781
nim_qchat_server_get_banned_members_page_cb_func cb
查询封禁成员列表异步回调
Definition: nim_qchat_server_def.h:783
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:791
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:787
uint64_t timestamp
时间戳
Definition: nim_qchat_server_def.h:789
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:785
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:883
uint64_t end_time
结束时间
Definition: nim_qchat_server_def.h:891
nim_qchat_server_get_invite_apply_record_by_self_cb_func cb
查询自己邀请申请历史异步回调
Definition: nim_qchat_server_def.h:885
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:895
bool reverse
是否倒序, false: 否, true: 是
Definition: nim_qchat_server_def.h:893
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:887
uint64_t exclude_record_id
要排除的记录id
Definition: nim_qchat_server_def.h:897
uint64_t start_time
起始时间
Definition: nim_qchat_server_def.h:889
Definition: nim_qchat_server_def.h:863
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:869
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:877
bool reverse
是否倒序, false: 否, true: 是
Definition: nim_qchat_server_def.h:875
uint64_t start_time
起始时间
Definition: nim_qchat_server_def.h:871
uint64_t exclude_record_id
要排除的记录id
Definition: nim_qchat_server_def.h:879
uint64_t end_time
结束时间
Definition: nim_qchat_server_def.h:873
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:867
nim_qchat_server_get_invite_apply_record_of_server_cb_func cb
查询服务器下邀请申请历史异步回调
Definition: nim_qchat_server_def.h:865
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:723
uint64_t timestamp
时间戳
Definition: nim_qchat_server_def.h:731
nim_qchat_server_get_members_page_cb_func cb
查询成员列表异步回调
Definition: nim_qchat_server_def.h:725
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:729
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:727
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:733
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:711
nim_qchat_server_get_members_cb_func cb
查询成员列表异步回调
Definition: nim_qchat_server_def.h:713
NIMQChatServerMemberPair * server_accid_list
服务器id和accid列表
Definition: nim_qchat_server_def.h:717
size_t server_accid_list_count
服务器id和accid列表长度
Definition: nim_qchat_server_def.h:719
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:715
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:565
uint64_t timestamp
时间戳
Definition: nim_qchat_server_def.h:571
nim_qchat_server_get_servers_page_cb_func cb
查询会话列表分页异步回调
Definition: nim_qchat_server_def.h:567
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:569
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:573
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:553
uint64_t * server_ids
服务器 id 列表
Definition: nim_qchat_server_def.h:561
nim_qchat_server_get_servers_cb_func cb
查询会话列表异步回调
Definition: nim_qchat_server_def.h:555
size_t server_ids_count
服务器 id 列表长度
Definition: nim_qchat_server_def.h:559
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:557
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:577
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:583
size_t invite_ids_count
受邀人 id 列表长度
Definition: nim_qchat_server_def.h:587
char * postscript
附言
Definition: nim_qchat_server_def.h:591
uint64_t ttl
请求生存时间 ms
Definition: nim_qchat_server_def.h:589
char ** invite_ids
受邀人 id 列表
Definition: nim_qchat_server_def.h:585
nim_qchat_server_invite_cb_func cb
邀请异步回调
Definition: nim_qchat_server_def.h:579
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:581
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:849
nim_qchat_server_join_by_invite_code_cb_func cb
通过邀请码加入异步回调
Definition: nim_qchat_server_def.h:851
char * invite_code
邀请码
Definition: nim_qchat_server_def.h:857
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:853
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:855
char * postscript
附言
Definition: nim_qchat_server_def.h:859
Definition: nim_qchat_server_def.h:669
char ** accids
被踢人 id 列表
Definition: nim_qchat_server_def.h:677
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:675
size_t accids_count
被踢人 id 列表长度
Definition: nim_qchat_server_def.h:679
nim_qchat_server_kick_cb_func cb
踢人异步回调
Definition: nim_qchat_server_def.h:671
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:673
Definition: nim_qchat_server_def.h:683
nim_qchat_server_leave_cb_func cb
离开异步回调
Definition: nim_qchat_server_def.h:685
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:687
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:689
Definition: nim_qchat_server_def.h:901
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:905
nim_qchat_server_mark_read_cb_func cb
标记服务器下消息已读异步回调
Definition: nim_qchat_server_def.h:903
size_t server_ids_count
服务器 id 列表长度
Definition: nim_qchat_server_def.h:909
uint64_t * server_ids
服务器 id 列表
Definition: nim_qchat_server_def.h:907
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:705
Definition: nim_qchat_server_def.h:823
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:829
nim_qchat_server_member_search_cb_func cb
搜索异步回调
Definition: nim_qchat_server_def.h:825
char * keyword
搜索内容
Definition: nim_qchat_server_def.h:831
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:827
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:833
Definition: nim_qchat_server_def.h:513
Definition: nim_qchat_server_def.h:653
char * postscript
附言
Definition: nim_qchat_server_def.h:663
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:659
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:657
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:665
char * accid
申请人 id
Definition: nim_qchat_server_def.h:661
nim_qchat_server_reject_apply_cb_func cb
拒绝申请异步回调
Definition: nim_qchat_server_def.h:655
Definition: nim_qchat_server_def.h:609
nim_qchat_server_reject_invite_cb_func cb
拒绝邀请异步回调
Definition: nim_qchat_server_def.h:611
char * postscript
附言
Definition: nim_qchat_server_def.h:619
char * accid
邀请人 id
Definition: nim_qchat_server_def.h:617
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:613
uint64_t server_id
服务器 id
Definition: nim_qchat_server_def.h:615
uint64_t request_id
请求ID
Definition: nim_qchat_server_def.h:621
Definition: nim_qchat_server_def.h:795
uint64_t start_time
起始时间
Definition: nim_qchat_server_def.h:803
uint32_t limit
查询条数
Definition: nim_qchat_server_def.h:817
NIMQChatServerSearchSort sort
排序规则
Definition: nim_qchat_server_def.h:809
char * keyword
搜索内容
Definition: nim_qchat_server_def.h:801
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:799
NIMQChatServerSearchType search_type
搜索类型
Definition: nim_qchat_server_def.h:815
char * cursor
查询游标, 查询的起始位置
Definition: nim_qchat_server_def.h:819
uint64_t end_time
结束时间
Definition: nim_qchat_server_def.h:805
size_t server_types_count
服务器类型长度
Definition: nim_qchat_server_def.h:813
uint32_t * server_types
搜索的服务器类型, 为空表示搜索所有类型
Definition: nim_qchat_server_def.h:811
NIMQChatSearchOrder order
排序顺序
Definition: nim_qchat_server_def.h:807
nim_qchat_server_search_page_cb_func cb
搜索异步回调
Definition: nim_qchat_server_def.h:797
Definition: nim_qchat_server_def.h:913
NIMQChatSubscribeType sub_type
订阅类型
Definition: nim_qchat_server_def.h:919
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:917
nim_qchat_server_subscribe_all_channel_cb_func cb
订阅所有频道异步回调
Definition: nim_qchat_server_def.h:915
uint64_t * server_ids
服务器 id 列表
Definition: nim_qchat_server_def.h:921
size_t server_ids_count
服务器 id 列表长度
Definition: nim_qchat_server_def.h:923
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:737
size_t server_ids_count
服务器 id 列表长度
Definition: nim_qchat_server_def.h:747
NIMQChatSubscribeType sub_type
订阅类型
Definition: nim_qchat_server_def.h:745
nim_qchat_server_subscribe_cb_func cb
订阅频道信息回调函数
Definition: nim_qchat_server_def.h:739
NIMQChatSubscribeOpeType ope_type
操作类型
Definition: nim_qchat_server_def.h:743
uint64_t * server_ids
服务器 id 列表
Definition: nim_qchat_server_def.h:749
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:741
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:767
uint64_t server_id
服务器ID
Definition: nim_qchat_server_def.h:773
char * custom
自定义字段
Definition: nim_qchat_server_def.h:777
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:771
char * accid
用户id
Definition: nim_qchat_server_def.h:775
nim_qchat_server_unban_member_cb_func cb
解封成员异步回调
Definition: nim_qchat_server_def.h:769
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:693
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_server_def.h:701
NIMQChatMemberInfo member_info
成员信息
Definition: nim_qchat_server_def.h:699
nim_qchat_server_update_member_info_cb_func cb
更新成员信息异步回调
Definition: nim_qchat_server_def.h:695
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:697
Definition: nim_qchat_server_def.h:541
void * user_data
自定义用户数据
Definition: nim_qchat_server_def.h:545
nim_qchat_server_update_cb_func cb
更新会话异步回调
Definition: nim_qchat_server_def.h:543
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_server_def.h:549
NIMQChatServerInfo server_info
服务器信息
Definition: nim_qchat_server_def.h:547
Definition: nim_qchat_public_def.h:330
Definition: nim_qchat_server_cpp_def.h:129
std::string update_accid
更新者 id
Definition: nim_qchat_server_cpp_def.h:133
std::string update_postscript
更新附言
Definition: nim_qchat_server_cpp_def.h:135
std::string apply_postscript
申请附言
Definition: nim_qchat_server_cpp_def.h:131
Definition: nim_qchat_public_cpp_def.h:40
Definition: nim_qchat_server_cpp_def.h:181
std::string update_postscript
更新附言
Definition: nim_qchat_server_cpp_def.h:185
std::string invite_postscript
邀请附言
Definition: nim_qchat_server_cpp_def.h:183
Definition: nim_qchat_public_cpp_def.h:53
Definition: nim_qchat_server_cpp_def.h:200
std::string invite_postscript
邀请附言
Definition: nim_qchat_server_cpp_def.h:202
std::string invite_code
邀请码
Definition: nim_qchat_server_cpp_def.h:204
Definition: nim_qchat_server_cpp_def.h:124
Definition: nim_qchat_server_cpp_def.h:246
std::string raw_data
邀请申请信息原始Json数据
Definition: nim_qchat_server_cpp_def.h:268
std::shared_ptr< QChatInviteApplyRecordData > data
邀请申请信息数据
Definition: nim_qchat_server_cpp_def.h:266
std::string accid
accid
Definition: nim_qchat_server_cpp_def.h:248
Definition: nim_qchat_server_cpp_def.h:152
std::string invite_postscript
邀请附言
Definition: nim_qchat_server_cpp_def.h:154
std::vector< QChatInviteUserInfo > invite_user_infos
邀请成员信息列表
Definition: nim_qchat_server_cpp_def.h:156
Definition: nim_qchat_server_cpp_def.h:97
std::string update_postscript
更新附言
Definition: nim_qchat_server_cpp_def.h:101
std::string accid
accid
Definition: nim_qchat_server_cpp_def.h:99
Definition: nim_qchat_server_cpp_def.h:223
std::string invite_code
邀请码
Definition: nim_qchat_server_cpp_def.h:229
std::string invite_postscript
邀请附言
Definition: nim_qchat_server_cpp_def.h:225
std::string update_postscript
更新附言
Definition: nim_qchat_server_cpp_def.h:227
Definition: nim_qchat_member_cpp_def.h:20
Definition: nim_qchat_public_cpp_def.h:72
Definition: nim_qchat_server_cpp_def.h:1155
uint64_t request_id
请求ID
Definition: nim_qchat_server_cpp_def.h:1163
Definition: nim_qchat_server_cpp_def.h:1046
uint64_t request_id
请求ID
Definition: nim_qchat_server_cpp_def.h:1054
Definition: nim_qchat_server_cpp_def.h:1120
std::string postscript
附言
Definition: nim_qchat_server_cpp_def.h:1128
Definition: nim_qchat_server_cpp_def.h:468
Definition: nim_qchat_server_cpp_def.h:1444
std::string accid
用户id
Definition: nim_qchat_server_cpp_def.h:1450
std::string custom
自定义字段
Definition: nim_qchat_server_cpp_def.h:1452
Definition: nim_qchat_server_cpp_def.h:847
Definition: nim_qchat_server_cpp_def.h:333
Definition: nim_qchat_server_cpp_def.h:878
Definition: nim_qchat_server_cpp_def.h:1646
QChatServerGenerateInviteCodeResp.
Definition: nim_qchat_server_cpp_def.h:645
std::string invite_code
邀请码
Definition: nim_qchat_server_cpp_def.h:653
Definition: nim_qchat_server_cpp_def.h:1514
Definition: nim_qchat_server_cpp_def.h:592
Definition: nim_qchat_server_cpp_def.h:1759
Definition: nim_qchat_server_cpp_def.h:1712
Definition: nim_qchat_server_cpp_def.h:679
Definition: nim_qchat_server_cpp_def.h:1371
Definition: nim_qchat_server_cpp_def.h:536
Definition: nim_qchat_server_cpp_def.h:1329
std::list< std::pair< uint64_t, std::string > > server_accid_list
服务器id和accid列表
Definition: nim_qchat_server_cpp_def.h:1333
Definition: nim_qchat_server_cpp_def.h:506
Definition: nim_qchat_server_cpp_def.h:966
GetServersPageCallback cb
回调函数
Definition: nim_qchat_server_cpp_def.h:968
Definition: nim_qchat_server_cpp_def.h:393
Definition: nim_qchat_server_cpp_def.h:936
Definition: nim_qchat_server_cpp_def.h:362
Definition: nim_qchat_server_cpp_def.h:22
Definition: nim_qchat_server_cpp_def.h:997
std::string postscript
附言
Definition: nim_qchat_server_cpp_def.h:1007
Definition: nim_qchat_server_cpp_def.h:421
std::map< std::string, NIMQChatServerInviteFailReason > fail_map
邀请失败的成员id和失败原因
Definition: nim_qchat_server_cpp_def.h:429
Definition: nim_qchat_server_cpp_def.h:1677
std::string postscript
附言
Definition: nim_qchat_server_cpp_def.h:1685
std::string invite_code
邀请码
Definition: nim_qchat_server_cpp_def.h:1683
Definition: nim_qchat_server_cpp_def.h:1229
Definition: nim_qchat_server_cpp_def.h:1271
Definition: nim_qchat_server_cpp_def.h:1802
std::vector< uint64_t > server_ids
服务器 id 列表
Definition: nim_qchat_server_cpp_def.h:1806
Definition: nim_qchat_server_cpp_def.h:711
Definition: nim_qchat_server_cpp_def.h:1611
Definition: nim_qchat_server_cpp_def.h:832
Definition: nim_qchat_server_cpp_def.h:1190
std::string postscript
附言
Definition: nim_qchat_server_cpp_def.h:1198
uint64_t request_id
请求ID
Definition: nim_qchat_server_cpp_def.h:1200
Definition: nim_qchat_server_cpp_def.h:1081
std::string postscript
附言
Definition: nim_qchat_server_cpp_def.h:1089
uint64_t request_id
请求ID
Definition: nim_qchat_server_cpp_def.h:1091
Definition: nim_qchat_server_cpp_def.h:1549
std::vector< uint32_t > server_types
搜索的服务器类型, 为空表示搜索所有类型
Definition: nim_qchat_server_cpp_def.h:1563
Definition: nim_qchat_server_cpp_def.h:1832
std::vector< uint64_t > server_ids
服务器 id 列表
Definition: nim_qchat_server_cpp_def.h:1838
NIMQChatSubscribeType sub_type
订阅类型
Definition: nim_qchat_server_cpp_def.h:1836
Definition: nim_qchat_server_cpp_def.h:744
Definition: nim_qchat_server_cpp_def.h:1406
Definition: nim_qchat_server_cpp_def.h:564
Definition: nim_qchat_server_cpp_def.h:1479
std::string accid
用户id
Definition: nim_qchat_server_cpp_def.h:1485
std::string custom
自定义字段
Definition: nim_qchat_server_cpp_def.h:1487
Definition: nim_qchat_server_cpp_def.h:633
Definition: nim_qchat_server_cpp_def.h:1298
Definition: nim_qchat_server_cpp_def.h:905