NIM PC Cross Platform SDK
nim_qchat_channel_cpp_def.h
Go to the documentation of this file.
1
11#ifndef __NIM_QCHAT_CHANNEL_CPP_DEF_H__
12#define __NIM_QCHAT_CHANNEL_CPP_DEF_H__
13
16#include "nim_qchat_helper.h"
20
21namespace nim_qchat {
22
24struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelInfo {
26 uint64_t server_id{0};
28 uint64_t channel_id{0};
30 std::string name{""};
32 std::string topic{""};
34 std::string custom{""};
38 std::string owner{""};
42 bool valid_flag{false};
44 uint64_t create_time{0};
46 uint64_t update_time{0};
48 uint64_t category_id{0};
52 uint64_t reorder_weight{0};
53 QChatChannelInfo() = default;
55 server_id = c_param.server_id;
56 channel_id = c_param.channel_id;
57 name = c_param.name ? c_param.name : "";
58 topic = c_param.topic ? c_param.topic : "";
59 custom = c_param.custom ? c_param.custom : "";
60 type = c_param.type;
61 owner = c_param.owner ? c_param.owner : "";
62 view_mode = c_param.view_mode;
63 valid_flag = c_param.valid_flag;
64 create_time = c_param.create_time;
65 update_time = c_param.update_time;
66 category_id = c_param.category_id;
67 sync_mode = c_param.sync_mode;
68 reorder_weight = c_param.reorder_weight;
69 }
70 const NIMQChatChannelInfo ToCParam() const {
71 NIMQChatChannelInfo c_param = {};
72 c_param.server_id = server_id;
73 c_param.channel_id = channel_id;
74 c_param.name = const_cast<char*>(name.c_str());
75 c_param.topic = const_cast<char*>(topic.c_str());
76 c_param.custom = const_cast<char*>(custom.c_str());
77 c_param.type = type;
78 c_param.owner = const_cast<char*>(owner.c_str());
79 c_param.view_mode = view_mode;
80 c_param.valid_flag = valid_flag;
81 c_param.create_time = create_time;
82 c_param.update_time = update_time;
83 c_param.category_id = category_id;
84 c_param.sync_mode = sync_mode;
85 c_param.reorder_weight = reorder_weight;
86 return c_param;
87 }
88};
89
91struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelRTCAudioInfo {
93 std::string profile;
95 std::string scenario;
96 QChatChannelRTCAudioInfo() = default;
98 profile = c_param.profile ? c_param.profile : "";
99 scenario = c_param.scenario ? c_param.scenario : "";
100 }
101 const NIMQChatChannelRTCAudioInfo ToCParam() const {
102 NIMQChatChannelRTCAudioInfo c_param = {};
103 c_param.profile = const_cast<char*>(profile.c_str());
104 c_param.scenario = const_cast<char*>(scenario.c_str());
105 return c_param;
106 }
107};
108
110struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelRTCVideoInfo {
112 uint32_t width{640};
114 uint32_t height{480};
116 uint32_t fps{15};
117 QChatChannelRTCVideoInfo() = default;
119 width = c_param.width;
120 height = c_param.height;
121 fps = c_param.fps;
122 }
123 const NIMQChatChannelRTCVideoInfo ToCParam() const {
124 NIMQChatChannelRTCVideoInfo c_param = {};
125 c_param.width = width;
126 c_param.height = height;
127 c_param.fps = fps;
128 return c_param;
129 }
130};
131
133struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelRTCInfo {
135 uint32_t limit{99};
140 QChatChannelRTCInfo() = default;
142 limit = c_param.limit;
143 audio = c_param.audio;
144 video = c_param.video;
145 }
146 const NIMQChatChannelRTCInfo ToCParam() const {
147 NIMQChatChannelRTCInfo c_param = {};
148 c_param.limit = limit;
149 c_param.audio = audio.ToCParam();
150 c_param.video = video.ToCParam();
151 return c_param;
152 }
153};
154
156struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryInfo {
158 uint64_t server_id{0};
160 uint64_t category_id{0};
162 std::string name{""};
164 std::string custom{""};
166 std::string owner{""};
170 bool valid_flag{false};
172 uint64_t create_time{0};
174 uint64_t update_time{0};
175 QChatChannelCategoryInfo() = default;
177 server_id = c_param.server_id;
178 category_id = c_param.category_id;
179 name = c_param.name ? c_param.name : "";
180 custom = c_param.custom ? c_param.custom : "";
181 owner = c_param.owner ? c_param.owner : "";
182 view_mode = c_param.view_mode;
183 valid_flag = c_param.valid_flag;
184 create_time = c_param.create_time;
185 update_time = c_param.update_time;
186 }
187 const NIMQChatChannelCategoryInfo ToCParam() const {
188 NIMQChatChannelCategoryInfo c_param = {};
189 c_param.server_id = server_id;
190 c_param.category_id = category_id;
191 c_param.name = const_cast<char*>(name.c_str());
192 c_param.custom = const_cast<char*>(custom.c_str());
193 c_param.owner = const_cast<char*>(owner.c_str());
194 c_param.view_mode = view_mode;
195 c_param.valid_flag = valid_flag;
196 c_param.create_time = create_time;
197 c_param.update_time = update_time;
198 return c_param;
199 }
200};
201
203struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelSubscribeResp {
205 uint32_t res_code{0};
207 std::vector<NIMQChatChannelIDInfo> failed_channels{};
209 std::vector<NIMQChatUnreadInfo> unread_infos{};
210 QChatChannelSubscribeResp() = default;
212 res_code = c_resp.res_code;
213 for (size_t i = 0; i < c_resp.failed_channels_count; i++) {
214 failed_channels.push_back(c_resp.failed_channels[i]);
215 }
216 for (size_t i = 0; i < c_resp.unread_infos_count; i++) {
217 unread_infos.push_back(c_resp.unread_infos[i]);
218 }
219 }
220 NIMQChatChannelSubscribeResp ToCParam() const {
222 c_resp.res_code = res_code;
223 c_resp.failed_channels = const_cast<NIMQChatChannelIDInfo*>(failed_channels.data());
224 c_resp.failed_channels_count = failed_channels.size();
225 c_resp.unread_infos = const_cast<NIMQChatUnreadInfo*>(unread_infos.data());
226 c_resp.unread_infos_count = unread_infos.size();
227 return c_resp;
228 }
229};
230
232struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelQueryUnreadInfoResp {
234 uint32_t res_code{0};
236 std::vector<NIMQChatUnreadInfo> unread_infos;
239 res_code = c_resp.res_code;
240 if (c_resp.res_code != kNIMResSuccess)
241 return;
242 for (size_t i = 0; i < c_resp.unread_info_count; i++) {
243 unread_infos.push_back(c_resp.unread_infos[i]);
244 }
245 }
246 NIMQChatChannelQueryUnreadInfoResp ToCParam() const {
248 c_resp.res_code = res_code;
249 if (res_code != kNIMResSuccess)
250 return c_resp;
251 c_resp.unread_infos = const_cast<NIMQChatUnreadInfo*>(unread_infos.data());
252 c_resp.unread_info_count = unread_infos.size();
253 return c_resp;
254 }
255};
256
258struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCreateResp {
260 uint32_t res_code{0};
262 QChatChannelInfo channel_info{};
263 QChatChannelCreateResp() = default;
265 res_code = c_resp.res_code;
266 if (c_resp.res_code != kNIMResSuccess)
267 return;
268 channel_info = c_resp.channel_info;
269 }
270 NIMQChatChannelCreateResp ToCParam() const {
271 NIMQChatChannelCreateResp c_resp = {};
272 c_resp.res_code = res_code;
273 if (res_code != kNIMResSuccess)
274 return c_resp;
275 c_resp.channel_info = channel_info.ToCParam();
276 return c_resp;
277 }
278};
279
281using QChatChannelDeleteResp = QChatBaseResp;
282
284using QChatChannelUpdateResp = QChatChannelCreateResp;
285
287using QChatChannelUpdateCategoryInfoResp = QChatChannelCreateResp;
288
290struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetChannelsResp {
292 uint32_t res_code{0};
294 std::list<QChatChannelInfo> channel_list{};
295 QChatChannelGetChannelsResp() = default;
297 res_code = c_resp.res_code;
298 if (c_resp.res_code != kNIMResSuccess)
299 return;
300 for (size_t i = 0; i < c_resp.channel_list_count; i++) {
301 channel_list.emplace_back(c_resp.channel_list[i]);
302 }
303 }
304 NIMQChatChannelGetChannelsResp ToCParam() const {
306 c_param.res_code = res_code;
307 vec_channels.clear();
308 for (auto&& it : channel_list) {
309 vec_channels.push_back(it.ToCParam());
310 }
311 c_param.channel_list = vec_channels.data();
312 c_param.channel_list_count = vec_channels.size();
313 return c_param;
314 }
315
316protected:
317 mutable std::vector<NIMQChatChannelInfo> vec_channels;
318};
319
321struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetChannelsPageResp {
323 uint32_t res_code{0};
325 QChatPageInfo page_info{};
327 std::list<QChatChannelInfo> channel_list{};
330 res_code = c_resp.res_code;
331 page_info = c_resp.page_info;
332 if (c_resp.res_code != kNIMResSuccess)
333 return;
334 for (size_t i = 0; i < c_resp.channel_list_count; i++) {
335 channel_list.emplace_back(c_resp.channel_list[i]);
336 }
337 }
338 const NIMQChatChannelGetChannelsPageResp ToCParam() const {
340 c_response.res_code = res_code;
341 c_response.page_info = page_info.ToCParam();
342 vec_channels.clear();
343 for (auto&& info : channel_list) {
344 vec_channels.push_back(info.ToCParam());
345 }
346 c_response.channel_list_count = vec_channels.size();
347 c_response.channel_list = vec_channels.data();
348 return c_response;
349 }
350
351protected:
352 mutable std::vector<NIMQChatChannelInfo> vec_channels;
353};
354
356struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelUnreadResp {
358 std::vector<NIMQChatUnreadInfo> unread_infos;
359 QChatChannelUnreadResp() = default;
361 for (size_t i = 0; i < c_resp.unread_infos_count; i++) {
362 unread_infos.emplace_back(c_resp.unread_infos[i]);
363 }
364 }
365};
366
367typedef QChatBaseResp QChatChannelUpdateWhiteBlackRoleResp;
368typedef QChatBaseResp QChatChannelUpdateWhiteBlackMembersResp;
369
371struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetWhiteBlackRolesPageResp {
373 uint32_t res_code{0};
375 QChatPageInfo page_info{};
377 std::list<QChatServerRoleInfo> roles{};
380 res_code = c_resp.res_code;
381 page_info = c_resp.page_info;
382 if (c_resp.res_code != kNIMResSuccess)
383 return;
384 for (size_t i = 0; i < c_resp.role_count; i++) {
385 roles.emplace_back(c_resp.roles[i]);
386 }
387 }
388 const NIMQChatChannelGetWhiteBlackRolesPageResp ToCParam() const {
390 c_response.res_code = res_code;
391 c_response.page_info = page_info.ToCParam();
392 c_roles.clear();
393 for (const auto& role : roles) {
394 c_roles.push_back(role.ToCParam());
395 }
396 c_response.role_count = c_roles.size();
397 c_response.roles = const_cast<NIMQChatRoleInfo*>(c_roles.data());
398 return c_response;
399 }
400
401protected:
402 mutable std::vector<NIMQChatRoleInfo> c_roles;
403};
404
406struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetWhiteBlackMembersPageResp {
408 uint32_t res_code{0};
410 QChatPageInfo page_info{};
412 std::list<QChatMemberInfo> members{};
415 res_code = c_resp.res_code;
416 page_info = c_resp.page_info;
417 if (c_resp.res_code != kNIMResSuccess)
418 return;
419 for (size_t i = 0; i < c_resp.member_count; i++) {
420 members.emplace_back(c_resp.members[i]);
421 }
422 }
423 const NIMQChatChannelGetWhiteBlackMembersPageResp ToCParam() const {
425 c_response.res_code = res_code;
426 c_response.page_info = page_info.ToCParam();
427 c_members.clear();
428 for (const auto& member : members) {
429 c_members.push_back(member.ToCParam());
430 }
431 c_response.member_count = c_members.size();
432 c_response.members = const_cast<NIMQChatMemberInfo*>(c_members.data());
433 return c_response;
434 }
435
436protected:
437 mutable std::vector<NIMQChatMemberInfo> c_members;
438};
439
441struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetExistingWhiteBlackRolesResp {
443 uint32_t res_code{0};
445 std::list<QChatServerRoleInfo> roles{};
448 res_code = c_resp.res_code;
449 if (c_resp.res_code != kNIMResSuccess)
450 return;
451 for (size_t i = 0; i < c_resp.role_count; i++) {
452 roles.emplace_back(c_resp.roles[i]);
453 }
454 }
455 const NIMQChatChannelGetExistingWhiteBlackRolesResp ToCParam() const {
457 c_response.res_code = res_code;
458 c_roles.clear();
459 for (const auto& role : roles) {
460 c_roles.push_back(role.ToCParam());
461 }
462 c_response.role_count = c_roles.size();
463 c_response.roles = const_cast<NIMQChatRoleInfo*>(c_roles.data());
464 return c_response;
465 }
466
467protected:
468 mutable std::vector<NIMQChatRoleInfo> c_roles;
469};
470
472struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetExistingWhiteBlackMembersResp {
474 uint32_t res_code{0};
476 std::list<QChatMemberInfo> members{};
479 res_code = c_resp.res_code;
480 if (c_resp.res_code != kNIMResSuccess)
481 return;
482 for (size_t i = 0; i < c_resp.member_count; i++) {
483 members.emplace_back(c_resp.members[i]);
484 }
485 }
488 c_response.res_code = res_code;
489 c_members.clear();
490 for (const auto& member : members) {
491 c_members.push_back(member.ToCParam());
492 }
493 c_response.member_count = c_members.size();
494 c_response.members = const_cast<NIMQChatMemberInfo*>(c_members.data());
495 return c_response;
496 }
497
498protected:
499 mutable std::vector<NIMQChatMemberInfo> c_members;
500};
501using QChatChannelGetMembersPageResp = QChatServerGetMembersPageResp;
502using QChatChannelSearchPageResp = QChatChannelGetChannelsPageResp;
504struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelMemberSearchResp {
506 uint32_t res_code{0};
508 std::list<QChatMemberInfo> member_list{};
511 res_code = c_resp.res_code;
512 if (c_resp.res_code != kNIMResSuccess)
513 return;
514 for (size_t i = 0; i < c_resp.member_list_count; i++) {
515 member_list.emplace_back(c_resp.member_list[i]);
516 }
517 }
518 NIMQChatChannelMemberSearchResp ToCParam() const {
520 c_response.res_code = res_code;
521 vec_members.clear();
522 for (auto&& info : member_list) {
523 vec_members.push_back(info.ToCParam());
524 }
525 c_response.member_list_count = vec_members.size();
526 c_response.member_list = vec_members.data();
527 return c_response;
528 };
529
530protected:
531 mutable std::vector<NIMQChatMemberInfo> vec_members;
532};
533
535struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryCreateResp {
537 uint32_t res_code{0};
542 res_code = c_resp.res_code;
543 if (c_resp.res_code != kNIMResSuccess)
544 return;
545 category_info = c_resp.category_info;
546 }
547 const NIMQChatChannelCategoryCreateResp ToCParam() const {
549 c_response.res_code = res_code;
550 c_response.category_info = category_info.ToCParam();
551 return c_response;
552 }
553};
554
556using QChatChannelCategoryRemoveResp = QChatBaseResp;
557
559using QChatChannelCategoryUpdateResp = QChatChannelCategoryCreateResp;
560
562struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetCategoriesByIDResp {
564 uint32_t res_code{0};
566 std::list<QChatChannelCategoryInfo> categories{};
569 res_code = c_resp.res_code;
570 if (c_resp.res_code != kNIMResSuccess)
571 return;
572 for (size_t i = 0; i < c_resp.category_count; i++) {
573 categories.emplace_back(c_resp.categories[i]);
574 }
575 }
576 const NIMQChatChannelGetCategoriesByIDResp ToCParam() const {
578 c_response.res_code = res_code;
579 c_categories.clear();
580 for (const auto& category : categories) {
581 c_categories.push_back(category.ToCParam());
582 }
583 c_response.category_count = c_categories.size();
584 c_response.categories = const_cast<NIMQChatChannelCategoryInfo*>(c_categories.data());
585 return c_response;
586 }
587
588protected:
589 mutable std::vector<NIMQChatChannelCategoryInfo> c_categories;
590};
591
593struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetCategoriesPageResp {
595 uint32_t res_code{0};
597 QChatPageInfo page_info{};
599 std::list<QChatChannelCategoryInfo> categories{};
602 res_code = c_resp.res_code;
603 if (c_resp.res_code != kNIMResSuccess)
604 return;
605 page_info = c_resp.page_info;
606 for (size_t i = 0; i < c_resp.category_count; i++) {
607 categories.emplace_back(c_resp.categories[i]);
608 }
609 }
610 const NIMQChatChannelGetCategoriesPageResp ToCParam() const {
612 c_response.res_code = res_code;
613 c_response.page_info = page_info.ToCParam();
614 c_categories.clear();
615 for (const auto& category : categories) {
616 c_categories.push_back(category.ToCParam());
617 }
618 c_response.category_count = c_categories.size();
619 c_response.categories = const_cast<NIMQChatChannelCategoryInfo*>(c_categories.data());
620 return c_response;
621 }
622
623protected:
624 mutable std::vector<NIMQChatChannelCategoryInfo> c_categories;
625};
626
628using QChatChannelGetCategoryChannelsPageResp = QChatChannelGetChannelsPageResp;
629
632
634struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryGetWhiteBlackRolesPageResp {
636 uint32_t res_code{0};
638 QChatPageInfo page_info{};
640 std::list<QChatServerRoleInfo> roles{};
643 res_code = c_resp.res_code;
644 if (c_resp.res_code != kNIMResSuccess)
645 return;
646 page_info = c_resp.page_info;
647 for (size_t i = 0; i < c_resp.role_count; i++) {
648 roles.emplace_back(c_resp.roles[i]);
649 }
650 }
653 c_response.res_code = res_code;
654 c_response.page_info = page_info.ToCParam();
655 c_roles.clear();
656 for (const auto& role : roles) {
657 c_roles.push_back(role.ToCParam());
658 }
659 c_response.role_count = c_roles.size();
660 c_response.roles = const_cast<NIMQChatRoleInfo*>(c_roles.data());
661 return c_response;
662 }
663
664protected:
665 mutable std::vector<NIMQChatRoleInfo> c_roles;
666};
667
669struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryGetExistingWhiteBlackRolesResp {
671 uint32_t res_code{0};
673 std::list<QChatServerRoleInfo> roles{};
676 res_code = c_resp.res_code;
677 if (c_resp.res_code != kNIMResSuccess)
678 return;
679 for (size_t i = 0; i < c_resp.role_count; i++) {
680 roles.emplace_back(c_resp.roles[i]);
681 }
682 }
685 c_response.res_code = res_code;
686 c_roles.clear();
687 for (const auto& role : roles) {
688 c_roles.push_back(role.ToCParam());
689 }
690 c_response.role_count = c_roles.size();
691 c_response.roles = const_cast<NIMQChatRoleInfo*>(c_roles.data());
692 return c_response;
693 }
694
695protected:
696 mutable std::vector<NIMQChatRoleInfo> c_roles;
697};
698
701
703struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryGetWhiteBlackMembersPageResp {
705 uint32_t res_code{0};
707 QChatPageInfo page_info{};
709 std::list<QChatMemberInfo> members{};
712 res_code = c_resp.res_code;
713 if (c_resp.res_code != kNIMResSuccess)
714 return;
715 page_info = c_resp.page_info;
716 for (size_t i = 0; i < c_resp.member_count; i++) {
717 members.emplace_back(c_resp.members[i]);
718 }
719 }
722 c_response.res_code = res_code;
723 c_response.page_info = page_info.ToCParam();
724 c_members.clear();
725 for (const auto& member : members) {
726 c_members.push_back(member.ToCParam());
727 }
728 c_response.member_count = c_members.size();
729 c_response.members = const_cast<NIMQChatMemberInfo*>(c_members.data());
730 return c_response;
731 }
732
733protected:
734 mutable std::vector<NIMQChatMemberInfo> c_members;
735};
736
738struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryGetExistingWhiteBlackMembersResp {
740 uint32_t res_code{0};
742 std::list<QChatMemberInfo> members{};
745 res_code = c_resp.res_code;
746 if (c_resp.res_code != kNIMResSuccess)
747 return;
748 for (size_t i = 0; i < c_resp.member_count; i++) {
749 members.emplace_back(c_resp.members[i]);
750 }
751 }
754 c_response.res_code = res_code;
755 c_members.clear();
756 for (const auto& member : members) {
757 c_members.push_back(member.ToCParam());
758 }
759 c_response.member_count = c_members.size();
760 c_response.members = const_cast<NIMQChatMemberInfo*>(c_members.data());
761 return c_response;
762 }
763
764protected:
765 mutable std::vector<NIMQChatMemberInfo> c_members;
766};
767
769using QChatChannelUpdateRTCInfoResp = QChatBaseResp;
770
772struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetRTCInfoResp {
774 uint32_t res_code;
777 QChatChannelGetRTCInfoResp() = default;
779 res_code = c_resp.res_code;
780 if (c_resp.res_code != kNIMResSuccess)
781 return;
782 rtc_info = c_resp.rtc_info;
783 }
784 const NIMQChatChannelGetRTCInfoResp ToCParam() const {
786 c_response.res_code = res_code;
787 c_response.rtc_info = rtc_info.ToCParam();
788 return c_response;
789 }
790};
791
793struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetRTCOnlineMembersResp {
795 uint32_t res_code;
797 std::vector<QChatMemberInfo> members;
800 res_code = c_resp.res_code;
801 if (c_resp.res_code != kNIMResSuccess)
802 return;
803 for (size_t i = 0; i < c_resp.member_count; i++) {
804 members.emplace_back(c_resp.members[i]);
805 }
806 }
807 const NIMQChatChannelGetRTCOnlineMembersResp ToCParam() const {
809 c_response.res_code = res_code;
810 c_members.clear();
811 for (const auto& member : members) {
812 c_members.push_back(member.ToCParam());
813 }
814 c_response.member_count = c_members.size();
815 c_response.members = const_cast<NIMQChatMemberInfo*>(c_members.data());
816 return c_response;
817 }
818
819protected:
820 mutable std::vector<NIMQChatMemberInfo> c_members;
821};
822
824typedef std::function<void(const QChatChannelUnreadResp&)> ChannelUnreadCallback;
826typedef std::function<void(const QChatChannelCreateResp&)> ChannelCreateCallback;
828typedef std::function<void(const QChatChannelDeleteResp&)> ChannelDeleteCallback;
830typedef std::function<void(const QChatChannelUpdateResp&)> ChannelUpdateCallback;
834typedef std::function<void(const QChatChannelGetChannelsResp&)> GetChannelsCallback;
842typedef std::function<void(const QChatChannelSubscribeResp&)> ChannelSubscribeCallback;
886using ChannelGetRTCInfoCallback = std::function<void(const QChatChannelGetRTCInfoResp&)>;
889
891struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelRegUnreadCbParam {
892 ChannelUnreadCallback cb{nullptr};
893 const NIMQChatChannelRegUnreadCbParam ToCParam() const {
894 static ChannelUnreadCallback cb_holder = nullptr;
895 cb_holder = cb;
897 param.cb = [](const NIMQChatChannelUnreadResp& resp) {
898 if (cb_holder)
899 cb_holder(resp);
900 };
901 return param;
902 }
903};
904
906struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelSubscribeParam {
914 std::vector<NIMQChatChannelIDInfo> id_infos{};
915 QChatChannelSubscribeParam() = default;
917 ope_type = c_param.ope_type;
918 sub_type = c_param.sub_type;
919 for (size_t i = 0; i < c_param.id_infos_count; i++) {
920 id_infos.push_back(c_param.id_infos[i]);
921 }
922 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelSubscribeResp& response) {
923 auto c_response = response.ToCParam();
924 c_response.user_data = user_data;
925 c_callback(c_response);
926 };
927 }
928 const NIMQChatChannelSubscribeParam ToCParam() const {
929 auto cb_holder = new ChannelSubscribeCallback(cb);
931 param.user_data = cb_holder;
932 param.cb = [](const NIMQChatChannelSubscribeResp& resp) {
933 InvokeCallback<ChannelSubscribeCallback, NIMQChatChannelSubscribeResp>(resp);
934 };
935 param.ope_type = ope_type;
936 param.sub_type = sub_type;
937 param.id_infos_count = id_infos.size();
938 param.id_infos = const_cast<NIMQChatChannelIDInfo*>(id_infos.data());
939 return param;
940 }
941};
942
944struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelQueryUnreadInfoParam {
948 std::vector<NIMQChatChannelIDInfo> id_infos{};
951 for (size_t i = 0; i < c_param.id_infos_count; i++) {
952 id_infos.push_back(c_param.id_infos[i]);
953 }
954 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelQueryUnreadInfoResp& response) {
955 auto c_response = response.ToCParam();
956 c_response.user_data = user_data;
957 c_callback(c_response);
958 };
959 }
960 const NIMQChatChannelQueryUnreadInfoParam ToCParam() const {
961 auto cb_holder = new ChannelQueryUnreadInfoCallback(cb);
963 param.user_data = cb_holder;
964 param.cb = [](const NIMQChatChannelQueryUnreadInfoResp& resp) {
965 InvokeCallback<ChannelQueryUnreadInfoCallback, NIMQChatChannelQueryUnreadInfoResp>(resp);
966 };
967 param.id_infos_count = id_infos.size();
968 param.id_infos = const_cast<NIMQChatChannelIDInfo*>(id_infos.data());
969 return param;
970 }
971};
972
974struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCreateParam {
978 QChatChannelInfo channel_info{};
981 QChatChannelCreateParam() = default;
983 channel_info = c_param.channel_info;
984 anti_spam_info = c_param.anti_spam_info;
985 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCreateResp& response) {
986 auto c_response = response.ToCParam();
987 c_response.user_data = user_data;
988 c_callback(c_response);
989 };
990 }
991 const NIMQChatChannelCreateParam ToCParam() const {
992 auto cb_holder = new ChannelCreateCallback(cb);
994 param.user_data = cb_holder;
995 param.cb = [](const NIMQChatChannelCreateResp& resp) {
996 InvokeCallback<ChannelCreateCallback, NIMQChatChannelCreateResp>(resp);
997 };
998 param.channel_info = channel_info.ToCParam();
999 param.anti_spam_info = anti_spam_info.ToCParam();
1000 return param;
1001 }
1002};
1003
1005struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelDeleteParam {
1009 uint64_t channel_id{0};
1010 QChatChannelDeleteParam() = default;
1012 channel_id = c_param.channel_id;
1013 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelDeleteResp& response) {
1014 auto c_response = response.ToCParam();
1015 c_response.user_data = user_data;
1016 c_callback(c_response);
1017 };
1018 }
1019 const NIMQChatChannelDeleteParam ToCParam() const {
1020 auto cb_holder = new ChannelDeleteCallback(cb);
1021 NIMQChatChannelDeleteParam param = {};
1022 param.user_data = cb_holder;
1023 param.cb = [](const NIMQChatChannelDeleteResp& resp) {
1024 InvokeCallback<ChannelDeleteCallback, NIMQChatChannelDeleteResp>(resp);
1025 };
1026 param.channel_id = channel_id;
1027 return param;
1028 }
1029};
1030
1032struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelUpdateParam {
1036 uint64_t channel_id{0};
1038 std::string name;
1040 std::string topic;
1042 std::string custom;
1047 QChatChannelUpdateParam() = default;
1049 channel_id = c_param.channel_id;
1050 name = c_param.name;
1051 topic = c_param.topic;
1052 custom = c_param.custom;
1053 view_mode = c_param.view_mode;
1054 anti_spam_info = c_param.anti_spam_info;
1055 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelUpdateResp& response) {
1056 auto c_response = response.ToCParam();
1057 c_response.user_data = user_data;
1058 c_callback(c_response);
1059 };
1060 }
1061 const NIMQChatChannelUpdateParam ToCParam() const {
1062 auto cb_holder = new ChannelUpdateCallback(cb);
1063 NIMQChatChannelUpdateParam param = {};
1064 param.user_data = cb_holder;
1065 param.cb = [](const NIMQChatChannelUpdateResp& resp) {
1066 InvokeCallback<ChannelUpdateCallback, NIMQChatChannelUpdateResp>(resp);
1067 };
1068 param.channel_id = channel_id;
1069 param.name = const_cast<char*>(name.c_str());
1070 param.topic = const_cast<char*>(topic.c_str());
1071 param.custom = const_cast<char*>(custom.c_str());
1072 param.view_mode = view_mode;
1073 param.anti_spam_info = anti_spam_info.ToCParam();
1074 return param;
1075 }
1076};
1077
1079struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelUpdateCategoryInfoParam {
1083 uint64_t channel_id{0};
1085 uint64_t category_id{0};
1090 channel_id = c_param.channel_id;
1091 category_id = c_param.category_id;
1092 sync_mode = c_param.sync_mode;
1093 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelUpdateCategoryInfoResp& response) {
1094 auto c_response = response.ToCParam();
1095 c_response.user_data = user_data;
1096 c_callback(c_response);
1097 };
1098 }
1099 const NIMQChatChannelUpdateCategoryInfoParam ToCParam() const {
1100 auto cb_holder = new ChannelUpdateCategoryInfoCallback(cb);
1102 param.user_data = cb_holder;
1103 param.cb = [](const NIMQChatChannelUpdateCategoryInfoResp& resp) {
1104 InvokeCallback<ChannelUpdateCategoryInfoCallback, NIMQChatChannelUpdateCategoryInfoResp>(resp);
1105 };
1106 param.channel_id = channel_id;
1107 param.category_id = category_id;
1108 param.sync_mode = sync_mode;
1109 return param;
1110 }
1111};
1112
1114struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetChannelsParam {
1118 std::vector<uint64_t> channel_ids{};
1119 QChatChannelGetChannelsParam() = default;
1121 for (auto index = 0; index < c_param.channel_ids_count; index++) {
1122 channel_ids.push_back(c_param.channel_ids[index]);
1123 }
1124 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetChannelsResp& response) {
1125 auto c_response = response.ToCParam();
1126 c_response.user_data = user_data;
1127 c_callback(c_response);
1128 };
1129 }
1130 const NIMQChatChannelGetChannelsParam ToCParam() const {
1131 auto cb_holder = new GetChannelsCallback(cb);
1133 param.user_data = cb_holder;
1134 param.cb = [](const NIMQChatChannelGetChannelsResp& resp) {
1135 InvokeCallback<GetChannelsCallback, NIMQChatChannelGetChannelsResp>(resp);
1136 };
1137 param.channel_ids_count = channel_ids.size();
1138 param.channel_ids = const_cast<uint64_t*>(channel_ids.data());
1139 return param;
1140 }
1141};
1142
1144struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetChannelsPageParam {
1148 uint64_t server_id{0};
1150 uint64_t timestamp{0};
1152 uint32_t limit{100};
1155 server_id = c_param.server_id;
1156 timestamp = c_param.timestamp;
1157 limit = c_param.limit;
1158 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetChannelsPageResp& response) {
1159 auto c_response = response.ToCParam();
1160 c_response.user_data = user_data;
1161 c_callback(c_response);
1162 };
1163 }
1164 const NIMQChatChannelGetChannelsPageParam ToCParam() const {
1165 auto cb_holder = new GetChannelsPageCallback(cb);
1167 param.user_data = cb_holder;
1168 param.cb = [](const NIMQChatChannelGetChannelsPageResp& resp) {
1169 InvokeCallback<GetChannelsPageCallback, NIMQChatChannelGetChannelsPageResp>(resp);
1170 };
1171 param.server_id = server_id;
1172 param.timestamp = timestamp;
1173 param.limit = limit;
1174 return param;
1175 }
1176};
1177
1179struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetMembersPageParam {
1183 uint64_t server_id{0};
1185 uint64_t channel_id{0};
1187 uint64_t timestamp{0};
1189 uint32_t limit{100};
1192 server_id = c_param.server_id;
1193 channel_id = c_param.channel_id;
1194 timestamp = c_param.timestamp;
1195 limit = c_param.limit;
1196 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetMembersPageResp& response) {
1197 auto c_response = response.ToCParam();
1198 c_response.user_data = user_data;
1199 c_callback(c_response);
1200 };
1201 }
1202 const NIMQChatChannelGetMembersPageParam ToCParam() const {
1203 auto cb_holder = new ChannelGetMembersPageCallback(cb);
1205 param.user_data = cb_holder;
1206 param.cb = [](const NIMQChatChannelGetMembersPageResp& resp) {
1207 InvokeCallback<ChannelGetMembersPageCallback, NIMQChatChannelGetMembersPageResp>(resp);
1208 };
1209 param.server_id = server_id;
1210 param.channel_id = channel_id;
1211 param.timestamp = timestamp;
1212 param.limit = limit;
1213 return param;
1214 }
1215};
1216
1218struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelUpdateWhiteBlackRoleParam {
1222 uint64_t server_id{0};
1224 uint64_t channel_id{0};
1226 uint64_t role_id{0};
1228 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
1230 NIMQChatChannelWhiteBlackOpeType ope_type{kNIMQChatChannelWhiteBlackOpeTypeAdd};
1233 server_id = c_param.server_id;
1234 channel_id = c_param.channel_id;
1235 role_id = c_param.role_id;
1236 type = c_param.type;
1237 ope_type = c_param.ope_type;
1238 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelUpdateWhiteBlackRoleResp& response) {
1239 auto c_response = response.ToCParam();
1240 c_response.user_data = user_data;
1241 c_callback(c_response);
1242 };
1243 }
1244 const NIMQChatChannelUpdateWhiteBlackRoleParam ToCParam() const {
1245 auto cb_holder = new UpdateWhiteBlackRoleCallback(cb);
1247 param.user_data = cb_holder;
1248 param.cb = [](const NIMQChatChannelUpdateWhiteBlackRoleResp& resp) {
1249 InvokeCallback<UpdateWhiteBlackRoleCallback, NIMQChatChannelUpdateWhiteBlackRoleResp>(resp);
1250 };
1251 param.server_id = server_id;
1252 param.channel_id = channel_id;
1253 param.role_id = role_id;
1254 param.type = type;
1255 param.ope_type = ope_type;
1256 return param;
1257 }
1258};
1259
1261struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelUpdateWhiteBlackMembersParam {
1265 uint64_t server_id{0};
1267 uint64_t channel_id{0};
1269 std::list<std::string> accids;
1271 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
1273 NIMQChatChannelWhiteBlackOpeType ope_type{kNIMQChatChannelWhiteBlackOpeTypeAdd};
1276 server_id = c_param.server_id;
1277 channel_id = c_param.channel_id;
1278 for (size_t i = 0; i < c_param.accids_count; i++)
1279 accids.push_back(c_param.accids[i]);
1280 type = c_param.type;
1281 ope_type = c_param.ope_type;
1282 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelUpdateWhiteBlackMembersResp& response) {
1283 auto c_response = response.ToCParam();
1284 c_response.user_data = user_data;
1285 c_callback(c_response);
1286 };
1287 }
1288 const NIMQChatChannelUpdateWhiteBlackMembersParam ToCParam() const {
1289 auto cb_holder = new UpdateWhiteBlackMembersCallback(cb);
1291 param.user_data = cb_holder;
1292 param.cb = [](const NIMQChatChannelUpdateWhiteBlackMembersResp& resp) {
1293 InvokeCallback<UpdateWhiteBlackMembersCallback, NIMQChatChannelUpdateWhiteBlackMembersResp>(resp);
1294 };
1295 param.server_id = server_id;
1296 param.channel_id = channel_id;
1297 accids_vec.clear();
1298 for (auto&& accid : accids)
1299 accids_vec.push_back(const_cast<char*>(accid.c_str()));
1300 param.accids_count = accids_vec.size();
1301 param.accids = accids_vec.data();
1302 param.type = type;
1303 param.ope_type = ope_type;
1304 return param;
1305 }
1306
1307protected:
1308 mutable std::vector<char*> accids_vec;
1309};
1310
1312struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetWhiteBlackRolesPageParam {
1316 uint64_t server_id{0};
1318 uint64_t channel_id{0};
1320 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
1322 uint64_t timestamp;
1324 uint32_t limit;
1327 server_id = c_param.server_id;
1328 channel_id = c_param.channel_id;
1329 type = c_param.type;
1330 timestamp = c_param.timestamp;
1331 limit = c_param.limit;
1332 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetWhiteBlackRolesPageResp& response) {
1333 auto c_response = response.ToCParam();
1334 c_response.user_data = user_data;
1335 c_callback(c_response);
1336 };
1337 }
1338 const NIMQChatChannelGetWhiteBlackRolesPageParam ToCParam() const {
1339 auto cb_holder = new GetWhiteBlackRolesPageCallback(cb);
1341 param.user_data = cb_holder;
1342 param.cb = [](const NIMQChatChannelGetWhiteBlackRolesPageResp& resp) {
1343 InvokeCallback<GetWhiteBlackRolesPageCallback, NIMQChatChannelGetWhiteBlackRolesPageResp>(resp);
1344 };
1345 param.server_id = server_id;
1346 param.channel_id = channel_id;
1347 param.type = type;
1348 param.timestamp = timestamp;
1349 param.limit = limit;
1350 return param;
1351 }
1352};
1353
1355struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetWhiteBlackMembersPageParam {
1359 uint64_t server_id{0};
1361 uint64_t channel_id{0};
1363 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
1365 uint64_t timestamp;
1367 uint32_t limit;
1370 server_id = c_param.server_id;
1371 channel_id = c_param.channel_id;
1372 type = c_param.type;
1373 timestamp = c_param.timestamp;
1374 limit = c_param.limit;
1375 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetWhiteBlackMembersPageResp& response) {
1376 auto c_response = response.ToCParam();
1377 c_response.user_data = user_data;
1378 c_callback(c_response);
1379 };
1380 }
1381 const NIMQChatChannelGetWhiteBlackMembersPageParam ToCParam() const {
1382 auto cb_holder = new GetWhiteBlackMembersPageCallback(cb);
1384 param.user_data = cb_holder;
1385 param.cb = [](const NIMQChatChannelGetWhiteBlackMembersPageResp& resp) {
1386 InvokeCallback<GetWhiteBlackMembersPageCallback, NIMQChatChannelGetWhiteBlackMembersPageResp>(resp);
1387 };
1388 param.server_id = server_id;
1389 param.channel_id = channel_id;
1390 param.type = type;
1391 param.timestamp = timestamp;
1392 param.limit = limit;
1393 return param;
1394 }
1395};
1396
1398struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetExistingWhiteBlackRolesParam {
1402 uint64_t server_id{0};
1404 uint64_t channel_id{0};
1406 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
1408 std::list<uint64_t> role_ids;
1411 server_id = c_param.server_id;
1412 channel_id = c_param.channel_id;
1413 type = c_param.type;
1414 for (size_t i = 0; i < c_param.role_ids_count; i++)
1415 role_ids.push_back(c_param.role_ids[i]);
1416 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetExistingWhiteBlackRolesResp& response) {
1417 auto c_response = response.ToCParam();
1418 c_response.user_data = user_data;
1419 c_callback(c_response);
1420 };
1421 }
1422 const NIMQChatChannelGetExistingWhiteBlackRolesParam ToCParam() const {
1423 auto cb_holder = new GetExistingWhiteBlackRolesCallback(cb);
1425 param.user_data = cb_holder;
1426 param.cb = [](const NIMQChatChannelGetExistingWhiteBlackRolesResp& resp) {
1427 InvokeCallback<GetExistingWhiteBlackRolesCallback, NIMQChatChannelGetExistingWhiteBlackRolesResp>(resp);
1428 };
1429 param.server_id = server_id;
1430 param.channel_id = channel_id;
1431 param.type = type;
1432 role_ids_vec.clear();
1433 for (auto&& role_id : role_ids)
1434 role_ids_vec.push_back(role_id);
1435 param.role_ids_count = role_ids_vec.size();
1436 param.role_ids = role_ids_vec.data();
1437 return param;
1438 }
1439
1440protected:
1441 mutable std::vector<uint64_t> role_ids_vec;
1442};
1443
1445struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetExistingWhiteBlackMembersParam {
1449 uint64_t server_id{0};
1451 uint64_t channel_id{0};
1453 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
1455 std::list<std::string> accids;
1458 server_id = c_param.server_id;
1459 channel_id = c_param.channel_id;
1460 type = c_param.type;
1461 for (size_t i = 0; i < c_param.accids_count; i++)
1462 accids.push_back(c_param.accids[i]);
1463 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetExistingWhiteBlackMembersResp& response) {
1464 auto c_response = response.ToCParam();
1465 c_response.user_data = user_data;
1466 c_callback(c_response);
1467 };
1468 }
1470 auto cb_holder = new GetExistingWhiteBlackMembersCallback(cb);
1472 param.user_data = cb_holder;
1473 param.cb = [](const NIMQChatChannelGetExistingWhiteBlackMembersResp& resp) {
1474 InvokeCallback<GetExistingWhiteBlackMembersCallback, NIMQChatChannelGetExistingWhiteBlackMembersResp>(resp);
1475 };
1476 param.server_id = server_id;
1477 param.channel_id = channel_id;
1478 param.type = type;
1479 accids_vec.clear();
1480 for (auto&& accid : accids)
1481 accids_vec.push_back(const_cast<char*>(accid.c_str()));
1482 param.accids_count = accids_vec.size();
1483 param.accids = accids_vec.data();
1484 return param;
1485 }
1486
1487protected:
1488 mutable std::vector<char*> accids_vec;
1489};
1490
1492struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelSearchPageParam {
1496 uint64_t server_id{0};
1498 std::string keyword{""};
1500 uint64_t start_time{0};
1502 uint64_t end_time{0};
1508 uint32_t limit{100};
1510 std::string cursor{""};
1511 QChatChannelSearchPageParam() = default;
1513 server_id = c_param.server_id;
1514 keyword = c_param.keyword ? c_param.keyword : "";
1515 start_time = c_param.start_time;
1516 end_time = c_param.end_time;
1517 order = c_param.order;
1518 sort = c_param.sort;
1519 limit = c_param.limit;
1520 cursor = c_param.cursor ? c_param.cursor : "";
1521 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelSearchPageResp& response) {
1522 auto c_response = response.ToCParam();
1523 c_response.user_data = user_data;
1524 c_callback(c_response);
1525 };
1526 }
1527 const NIMQChatChannelSearchPageParam ToCParam() const {
1528 auto cb_holder = new ChannelSearchPageCallback(cb);
1530 param.user_data = cb_holder;
1531 param.cb = [](const NIMQChatChannelSearchPageResp& resp) {
1532 InvokeCallback<ChannelSearchPageCallback, NIMQChatChannelSearchPageResp>(resp);
1533 };
1534 param.server_id = server_id;
1535 param.keyword = const_cast<char*>(keyword.c_str());
1536 param.start_time = start_time;
1537 param.end_time = end_time;
1538 param.order = order;
1539 param.sort = sort;
1540 param.limit = limit;
1541 param.cursor = const_cast<char*>(cursor.c_str());
1542 return param;
1543 }
1544};
1545
1547struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelMemberSearchParam {
1551 uint64_t server_id{0};
1553 uint64_t channel_id{0};
1555 std::string keyword{""};
1557 uint32_t limit{100};
1560 server_id = c_param.server_id;
1561 channel_id = c_param.channel_id;
1562 keyword = c_param.keyword;
1563 limit = c_param.limit;
1564 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelMemberSearchResp& response) {
1565 auto c_response = response.ToCParam();
1566 c_response.user_data = user_data;
1567 c_callback(c_response);
1568 };
1569 }
1570 const NIMQChatChannelMemberSearchParam ToCParam() const {
1571 auto cb_holder = new ChannelMemberSearchCallback(cb);
1573 param.user_data = cb_holder;
1574 param.cb = [](const NIMQChatChannelMemberSearchResp& resp) {
1575 InvokeCallback<ChannelMemberSearchCallback, NIMQChatChannelMemberSearchResp>(resp);
1576 };
1577 param.server_id = server_id;
1578 param.channel_id = channel_id;
1579 param.keyword = const_cast<char*>(keyword.c_str());
1580 param.limit = limit;
1581 return param;
1582 }
1583};
1584
1586struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryCreateParam {
1590 uint64_t server_id{0};
1592 std::string name{""};
1594 std::string custom{""};
1599 server_id = c_param.server_id;
1600 name = c_param.name;
1601 custom = c_param.custom;
1602 view_mode = c_param.view_mode;
1603 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryCreateResp& response) {
1604 auto c_response = response.ToCParam();
1605 c_response.user_data = user_data;
1606 c_callback(c_response);
1607 };
1608 }
1609 const NIMQChatChannelCategoryCreateParam ToCParam() const {
1610 auto cb_holder = new ChannelCategoryCreateCallback(cb);
1612 param.user_data = cb_holder;
1613 param.cb = [](const NIMQChatChannelCategoryCreateResp& resp) {
1614 InvokeCallback<ChannelCategoryCreateCallback, NIMQChatChannelCategoryCreateResp>(resp);
1615 };
1616 param.server_id = server_id;
1617 param.name = const_cast<char*>(name.c_str());
1618 param.custom = const_cast<char*>(custom.c_str());
1619 param.view_mode = view_mode;
1620 return param;
1621 }
1622};
1623
1625struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryRemoveParam {
1629 uint64_t category_id{0};
1632 category_id = c_param.category_id;
1633 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryRemoveResp& response) {
1634 auto c_response = response.ToCParam();
1635 c_response.user_data = user_data;
1636 c_callback(c_response);
1637 };
1638 }
1639 const NIMQChatChannelCategoryRemoveParam ToCParam() const {
1640 auto cb_holder = new ChannelCategoryRemoveCallback(cb);
1642 param.user_data = cb_holder;
1643 param.cb = [](const NIMQChatChannelCategoryRemoveResp& resp) {
1644 InvokeCallback<ChannelCategoryRemoveCallback, NIMQChatChannelCategoryRemoveResp>(resp);
1645 };
1646 param.category_id = category_id;
1647 return param;
1648 }
1649};
1650
1652struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryUpdateParam {
1656 uint64_t category_id{0};
1658 std::string name{""};
1660 std::string custom{""};
1665 category_id = c_param.category_id;
1666 name = c_param.name;
1667 custom = c_param.custom;
1668 view_mode = c_param.view_mode;
1669 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryUpdateResp& response) {
1670 auto c_response = response.ToCParam();
1671 c_response.user_data = user_data;
1672 c_callback(c_response);
1673 };
1674 }
1675 const NIMQChatChannelCategoryUpdateParam ToCParam() const {
1676 auto cb_holder = new ChannelCategoryUpdateCallback(cb);
1678 param.user_data = cb_holder;
1679 param.cb = [](const NIMQChatChannelCategoryUpdateResp& resp) {
1680 InvokeCallback<ChannelCategoryUpdateCallback, NIMQChatChannelCategoryUpdateResp>(resp);
1681 };
1682 param.category_id = category_id;
1683 param.name = const_cast<char*>(name.c_str());
1684 param.custom = const_cast<char*>(custom.c_str());
1685 param.view_mode = view_mode;
1686 return param;
1687 }
1688};
1689
1691struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetCategoriesByIDParam {
1695 std::vector<uint64_t> category_ids;
1698 for (size_t i = 0; i < c_param.category_ids_count; i++)
1699 category_ids.push_back(c_param.category_ids[i]);
1700 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetCategoriesByIDResp& response) {
1701 auto c_response = response.ToCParam();
1702 c_response.user_data = user_data;
1703 c_callback(c_response);
1704 };
1705 }
1706 const NIMQChatChannelGetCategoriesByIDParam ToCParam() const {
1707 auto cb_holder = new ChannelGetCategoriesByIDCallback(cb);
1709 param.user_data = cb_holder;
1710 param.cb = [](const NIMQChatChannelGetCategoriesByIDResp& resp) {
1711 InvokeCallback<ChannelGetCategoriesByIDCallback, NIMQChatChannelGetCategoriesByIDResp>(resp);
1712 };
1713 param.category_ids = const_cast<uint64_t*>(category_ids.data());
1714 param.category_ids_count = category_ids.size();
1715 return param;
1716 }
1717};
1718
1720struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetCategoriesPageParam {
1724 uint64_t server_id{0};
1726 uint64_t timestamp{0};
1728 uint32_t limit{100};
1731 server_id = c_param.server_id;
1732 timestamp = c_param.timestamp;
1733 limit = c_param.limit;
1734 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetCategoriesPageResp& response) {
1735 auto c_response = response.ToCParam();
1736 c_response.user_data = user_data;
1737 c_callback(c_response);
1738 };
1739 }
1740 const NIMQChatChannelGetCategoriesPageParam ToCParam() const {
1741 auto cb_holder = new ChannelGetCategoriesPageCallback(cb);
1743 param.user_data = cb_holder;
1744 param.cb = [](const NIMQChatChannelGetCategoriesPageResp& resp) {
1745 InvokeCallback<ChannelGetCategoriesPageCallback, NIMQChatChannelGetCategoriesPageResp>(resp);
1746 };
1747 param.server_id = server_id;
1748 param.timestamp = timestamp;
1749 param.limit = limit;
1750 return param;
1751 }
1752};
1753
1755struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetCategoryChannelsPageParam {
1759 uint64_t server_id{0};
1761 uint64_t category_id{0};
1763 uint64_t timestamp{0};
1765 uint32_t limit{100};
1768 server_id = c_param.server_id;
1769 category_id = c_param.category_id;
1770 timestamp = c_param.timestamp;
1771 limit = c_param.limit;
1772 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetCategoryChannelsPageResp& response) {
1773 auto c_response = response.ToCParam();
1774 c_response.user_data = user_data;
1775 c_callback(c_response);
1776 };
1777 }
1778 const NIMQChatChannelGetCategoryChannelsPageParam ToCParam() const {
1779 auto cb_holder = new ChannelGetCategoryChannelsPageCallback(cb);
1781 param.user_data = cb_holder;
1782 param.cb = [](const NIMQChatChannelGetCategoryChannelsPageResp& resp) {
1783 InvokeCallback<ChannelGetCategoryChannelsPageCallback, NIMQChatChannelGetCategoryChannelsPageResp>(resp);
1784 };
1785 param.server_id = server_id;
1786 param.category_id = category_id;
1787 param.timestamp = timestamp;
1788 param.limit = limit;
1789 return param;
1790 }
1791};
1792
1794struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryUpdateWhiteBlackRoleParam {
1798 uint64_t server_id{0};
1800 uint64_t category_id{0};
1802 uint64_t role_id{0};
1804 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
1806 NIMQChatChannelWhiteBlackOpeType ope_type{kNIMQChatChannelWhiteBlackOpeTypeAdd};
1809 server_id = c_param.server_id;
1810 category_id = c_param.category_id;
1811 role_id = c_param.role_id;
1812 type = c_param.type;
1813 ope_type = c_param.ope_type;
1814 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryUpdateWhiteBlackRoleResp& response) {
1815 auto c_response = response.ToCParam();
1816 c_response.user_data = user_data;
1817 c_callback(c_response);
1818 };
1819 }
1821 auto cb_holder = new ChannelCategoryUpdateWhiteBlackRoleCallback(cb);
1823 param.user_data = cb_holder;
1824 param.cb = [](const NIMQChatChannelCategoryUpdateWhiteBlackRoleResp& resp) {
1825 InvokeCallback<ChannelCategoryUpdateWhiteBlackRoleCallback, NIMQChatChannelCategoryUpdateWhiteBlackRoleResp>(resp);
1826 };
1827 param.server_id = server_id;
1828 param.category_id = category_id;
1829 param.role_id = role_id;
1830 param.type = type;
1831 param.ope_type = ope_type;
1832 return param;
1833 }
1834};
1835
1837struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryGetWhiteBlackRolesPageParam {
1841 uint64_t server_id{0};
1843 uint64_t category_id{0};
1845 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
1847 uint64_t timestamp{0};
1849 uint32_t limit{100};
1852 server_id = c_param.server_id;
1853 category_id = c_param.category_id;
1854 type = c_param.type;
1855 timestamp = c_param.timestamp;
1856 limit = c_param.limit;
1857 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryGetWhiteBlackRolesPageResp& response) {
1858 auto c_response = response.ToCParam();
1859 c_response.user_data = user_data;
1860 c_callback(c_response);
1861 };
1862 }
1864 auto cb_holder = new ChannelCategoryGetWhiteBlackRolesPageCallback(cb);
1866 param.user_data = cb_holder;
1868 InvokeCallback<ChannelCategoryGetWhiteBlackRolesPageCallback, NIMQChatChannelCategoryGetWhiteBlackRolesPageResp>(resp);
1869 };
1870 param.server_id = server_id;
1871 param.category_id = category_id;
1872 param.type = type;
1873 param.timestamp = timestamp;
1874 param.limit = limit;
1875 return param;
1876 }
1877};
1878
1880struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryGetExistingWhiteBlackRolesParam {
1884 uint64_t server_id{0};
1886 uint64_t category_id{0};
1888 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
1890 std::vector<uint64_t> role_ids;
1893 server_id = c_param.server_id;
1894 category_id = c_param.category_id;
1895 type = c_param.type;
1896 for (size_t i = 0; i < c_param.role_ids_count; i++)
1897 role_ids.push_back(c_param.role_ids[i]);
1898 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryGetExistingWhiteBlackRolesResp& response) {
1899 auto c_response = response.ToCParam();
1900 c_response.user_data = user_data;
1901 c_callback(c_response);
1902 };
1903 }
1907 param.user_data = cb_holder;
1909 InvokeCallback<ChannelCategoryGetExistingWhiteBlackRolesCallback, NIMQChatChannelCategoryGetExistingWhiteBlackRolesResp>(resp);
1910 };
1911 param.server_id = server_id;
1912 param.category_id = category_id;
1913 param.type = type;
1914 param.role_ids = const_cast<uint64_t*>(role_ids.data());
1915 param.role_ids_count = role_ids.size();
1916 return param;
1917 }
1918};
1919
1921struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryUpdateWhiteBlackMembersParam {
1925 uint64_t server_id{0};
1927 uint64_t category_id{0};
1929 std::list<std::string> accids;
1931 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
1933 NIMQChatChannelWhiteBlackOpeType ope_type{kNIMQChatChannelWhiteBlackOpeTypeAdd};
1936 server_id = c_param.server_id;
1937 category_id = c_param.category_id;
1938 for (size_t i = 0; i < c_param.accids_count; i++)
1939 accids.push_back(c_param.accids[i]);
1940 type = c_param.type;
1941 ope_type = c_param.ope_type;
1942 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryUpdateWhiteBlackMembersResp& response) {
1943 auto c_response = response.ToCParam();
1944 c_response.user_data = user_data;
1945 c_callback(c_response);
1946 };
1947 }
1949 auto cb_holder = new ChannelCategoryUpdateWhiteBlackMembersCallback(cb);
1951 param.user_data = cb_holder;
1953 InvokeCallback<ChannelCategoryUpdateWhiteBlackMembersCallback, NIMQChatChannelCategoryUpdateWhiteBlackMembersResp>(resp);
1954 };
1955 vec_accids.clear();
1956 for (auto& accid : accids)
1957 vec_accids.push_back(const_cast<char*>(accid.c_str()));
1958 param.accids = const_cast<char**>(vec_accids.data());
1959 param.accids_count = vec_accids.size();
1960 param.server_id = server_id;
1961 param.category_id = category_id;
1962 param.type = type;
1963 param.ope_type = ope_type;
1964 return param;
1965 }
1966
1967protected:
1968 mutable std::vector<char*> vec_accids;
1969};
1970
1972struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryGetWhiteBlackMembersPageParam {
1976 uint64_t server_id{0};
1978 uint64_t category_id{0};
1980 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
1982 uint64_t timestamp{0};
1984 uint32_t limit{100};
1987 server_id = c_param.server_id;
1988 category_id = c_param.category_id;
1989 type = c_param.type;
1990 timestamp = c_param.timestamp;
1991 limit = c_param.limit;
1992 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryGetWhiteBlackMembersPageResp& response) {
1993 auto c_response = response.ToCParam();
1994 c_response.user_data = user_data;
1995 c_callback(c_response);
1996 };
1997 }
1999 auto cb_holder = new ChannelCategoryGetWhiteBlackMembersPageCallback(cb);
2001 param.user_data = cb_holder;
2003 InvokeCallback<ChannelCategoryGetWhiteBlackMembersPageCallback, NIMQChatChannelCategoryGetWhiteBlackMembersPageResp>(resp);
2004 };
2005 param.server_id = server_id;
2006 param.category_id = category_id;
2007 param.type = type;
2008 param.timestamp = timestamp;
2009 param.limit = limit;
2010 return param;
2011 }
2012};
2013
2015struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelCategoryGetExistingWhiteBlackMembersParam {
2019 uint64_t server_id{0};
2021 uint64_t category_id{0};
2023 NIMQChatChannelWhiteBlackType type{kNIMQChatChannelBlack};
2025 std::list<std::string> accids;
2028 server_id = c_param.server_id;
2029 category_id = c_param.category_id;
2030 type = c_param.type;
2031 for (size_t i = 0; i < c_param.accids_count; i++)
2032 accids.push_back(c_param.accids[i]);
2033 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryGetExistingWhiteBlackMembersResp& response) {
2034 auto c_response = response.ToCParam();
2035 c_response.user_data = user_data;
2036 c_callback(c_response);
2037 };
2038 }
2042 param.user_data = cb_holder;
2043 param.cb = [](const NIMQChatChannelCategoryGetWhiteBlackMembersResp& resp) {
2044 InvokeCallback<ChannelCategoryGetExistingWhiteBlackMembersCallback, NIMQChatChannelCategoryGetWhiteBlackMembersResp>(resp);
2045 };
2046 vec_accids.clear();
2047 for (auto& accid : accids)
2048 vec_accids.push_back(const_cast<char*>(accid.c_str()));
2049 param.accids = const_cast<char**>(vec_accids.data());
2050 param.accids_count = vec_accids.size();
2051 param.server_id = server_id;
2052 param.category_id = category_id;
2053 param.type = type;
2054 return param;
2055 }
2056
2057protected:
2058 mutable std::vector<char*> vec_accids;
2059};
2060
2062struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelUpdateRTCInfoParam {
2066 uint64_t server_id{0};
2068 uint64_t channel_id{0};
2073 server_id = c_param.server_id;
2074 channel_id = c_param.channel_id;
2075 rtc_info = c_param.rtc_info;
2076 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelUpdateRTCInfoResp& response) {
2077 auto c_response = response.ToCParam();
2078 c_response.user_data = user_data;
2079 c_callback(c_response);
2080 };
2081 }
2082 const NIMQChatChannelUpdateRTCInfoParam ToCParam() const {
2083 auto cb_holder = new ChannelUpdateRTCInfoCallback(cb);
2085 param.user_data = cb_holder;
2086 param.cb = [](const NIMQChatChannelUpdateRTCInfoResp& resp) {
2087 InvokeCallback<ChannelUpdateRTCInfoCallback, NIMQChatChannelUpdateRTCInfoResp>(resp);
2088 };
2089 param.server_id = server_id;
2090 param.channel_id = channel_id;
2091 param.rtc_info = rtc_info.ToCParam();
2092 return param;
2093 }
2094};
2095
2097struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetRTCInfoParam {
2101 uint64_t server_id{0};
2103 uint64_t channel_id{0};
2104 QChatChannelGetRTCInfoParam() = default;
2106 server_id = c_param.server_id;
2107 channel_id = c_param.channel_id;
2108 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetRTCInfoResp& response) {
2109 auto c_response = response.ToCParam();
2110 c_response.user_data = user_data;
2111 c_callback(c_response);
2112 };
2113 }
2114 const NIMQChatChannelGetRTCInfoParam ToCParam() const {
2115 auto cb_holder = new ChannelGetRTCInfoCallback(cb);
2117 param.user_data = cb_holder;
2118 param.cb = [](const NIMQChatChannelGetRTCInfoResp& resp) {
2119 InvokeCallback<ChannelGetRTCInfoCallback, NIMQChatChannelGetRTCInfoResp>(resp);
2120 };
2121 param.server_id = server_id;
2122 param.channel_id = channel_id;
2123 return param;
2124 }
2125};
2126
2128struct NIM_QCHAT_SDK_CPPWRAPPER_DLL_API QChatChannelGetRTCOnlineMembersParam {
2132 uint64_t server_id{0};
2134 uint64_t channel_id{0};
2137 server_id = c_param.server_id;
2138 channel_id = c_param.channel_id;
2139 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetRTCOnlineMembersResp& response) {
2140 auto c_response = response.ToCParam();
2141 c_response.user_data = user_data;
2142 c_callback(c_response);
2143 };
2144 }
2145 const NIMQChatChannelGetRTCOnlineMembersParam ToCParam() const {
2146 auto cb_holder = new ChannelGetRTCOnlineMembersCallback(cb);
2148 param.user_data = cb_holder;
2149 param.cb = [](const NIMQChatChannelGetRTCOnlineMembersResp& resp) {
2150 InvokeCallback<ChannelGetRTCOnlineMembersCallback, NIMQChatChannelGetRTCOnlineMembersResp>(resp);
2151 };
2152 param.server_id = server_id;
2153 param.channel_id = channel_id;
2154 return param;
2155 }
2156};
2157
2158} // namespace nim_qchat
2159
2160#endif // __NIM_QCHAT_CHANNEL_CPP_DEF_H__
namespace nim_qchat
std::function< void(const QChatChannelQueryUnreadInfoResp &)> ChannelQueryUnreadInfoCallback
查询未读消息数回调
Definition: nim_qchat_channel_cpp_def.h:840
std::function< void(const QChatChannelGetRTCOnlineMembersResp &)> ChannelGetRTCOnlineMembersCallback
查询RTC频道在线成员回调
Definition: nim_qchat_channel_cpp_def.h:888
std::function< void(const QChatChannelCategoryUpdateWhiteBlackMembersResp &)> ChannelCategoryUpdateWhiteBlackMembersCallback
更新频道分组白/黑名单成员
Definition: nim_qchat_channel_cpp_def.h:878
std::function< void(const QChatChannelUpdateWhiteBlackRoleResp &)> UpdateWhiteBlackRoleCallback
更新白/黑名单身份组回调
Definition: nim_qchat_channel_cpp_def.h:844
std::function< void(const QChatChannelCategoryGetWhiteBlackRolesPageResp &)> ChannelCategoryGetWhiteBlackRolesPageCallback
分页查询频道分组白/黑名单身份组
Definition: nim_qchat_channel_cpp_def.h:874
std::function< void(const QChatChannelCreateResp &)> ChannelCreateCallback
创建频道回调
Definition: nim_qchat_channel_cpp_def.h:826
std::function< void(const QChatChannelDeleteResp &)> ChannelDeleteCallback
删除频道回调
Definition: nim_qchat_channel_cpp_def.h:828
std::function< void(const QChatChannelGetCategoryChannelsPageResp &)> ChannelGetCategoryChannelsPageCallback
分页查询指定频道分组中的频道
Definition: nim_qchat_channel_cpp_def.h:870
std::function< void(const QChatChannelGetChannelsResp &)> GetChannelsCallback
查询频道列表回调
Definition: nim_qchat_channel_cpp_def.h:834
std::function< void(const QChatChannelCategoryGetExistingWhiteBlackMembersResp &)> ChannelCategoryGetExistingWhiteBlackMembersCallback
批量查询频道分组白/黑名单成员
Definition: nim_qchat_channel_cpp_def.h:882
std::function< void(const QChatChannelGetWhiteBlackRolesPageResp &)> GetWhiteBlackRolesPageCallback
分页查询白/黑名单身份组回调
Definition: nim_qchat_channel_cpp_def.h:848
std::function< void(const QChatChannelUpdateRTCInfoResp &)> ChannelUpdateRTCInfoCallback
修改RTC频道参数回调
Definition: nim_qchat_channel_cpp_def.h:884
std::function< void(const QChatChannelCategoryGetExistingWhiteBlackRolesResp &)> ChannelCategoryGetExistingWhiteBlackRolesCallback
批量查询频道分组白/黑名单身份组
Definition: nim_qchat_channel_cpp_def.h:876
std::function< void(const QChatChannelCategoryCreateResp &)> ChannelCategoryCreateCallback
创建频道分组回调
Definition: nim_qchat_channel_cpp_def.h:860
std::function< void(const QChatChannelGetCategoriesByIDResp &)> ChannelGetCategoriesByIDCallback
根据频道分组ID查询频道分组列表回调
Definition: nim_qchat_channel_cpp_def.h:866
std::function< void(const QChatChannelGetExistingWhiteBlackMembersResp &)> GetExistingWhiteBlackMembersCallback
查询已存在白/黑名单成员回调
Definition: nim_qchat_channel_cpp_def.h:854
std::function< void(const QChatChannelGetRTCInfoResp &)> ChannelGetRTCInfoCallback
查询RTC频道参数回调
Definition: nim_qchat_channel_cpp_def.h:886
std::function< void(const QChatChannelUnreadResp &)> ChannelUnreadCallback
未读信息回调
Definition: nim_qchat_channel_cpp_def.h:824
std::function< void(const QChatChannelUpdateResp &)> ChannelUpdateCallback
更新频道回调
Definition: nim_qchat_channel_cpp_def.h:830
std::function< void(const QChatChannelGetCategoriesPageResp &)> ChannelGetCategoriesPageCallback
分页查询频道分组回调
Definition: nim_qchat_channel_cpp_def.h:868
std::function< void(const QChatChannelCategoryUpdateResp &)> ChannelCategoryUpdateCallback
更新频道分组回调
Definition: nim_qchat_channel_cpp_def.h:864
GetChannelsPageCallback ChannelSearchPageCallback
搜索频道分页回调
Definition: nim_qchat_channel_cpp_def.h:856
std::function< void(const QChatChannelMemberSearchResp &)> ChannelMemberSearchCallback
搜索频道成员回调
Definition: nim_qchat_channel_cpp_def.h:858
std::function< void(const QChatChannelSubscribeResp &)> ChannelSubscribeCallback
订阅回调
Definition: nim_qchat_channel_cpp_def.h:842
std::function< void(const QChatChannelGetWhiteBlackMembersPageResp &)> GetWhiteBlackMembersPageCallback
分页查询白/黑名单成员回调
Definition: nim_qchat_channel_cpp_def.h:850
std::function< void(const QChatChannelCategoryGetWhiteBlackMembersPageResp &)> ChannelCategoryGetWhiteBlackMembersPageCallback
分页查询频道分组白/黑名单成员
Definition: nim_qchat_channel_cpp_def.h:880
std::function< void(const QChatChannelGetExistingWhiteBlackRolesResp &)> GetExistingWhiteBlackRolesCallback
查询已存在白/黑名单身份组回调
Definition: nim_qchat_channel_cpp_def.h:852
std::function< void(const QChatChannelUpdateWhiteBlackMembersResp &)> UpdateWhiteBlackMembersCallback
更新白/黑名单成员回调
Definition: nim_qchat_channel_cpp_def.h:846
std::function< void(const QChatChannelGetMembersPageResp &)> ChannelGetMembersPageCallback
分页查询成员列表回调
Definition: nim_qchat_channel_cpp_def.h:838
std::function< void(const QChatChannelCategoryUpdateWhiteBlackRoleResp &)> ChannelCategoryUpdateWhiteBlackRoleCallback
更新频道分组白/黑名单身份组
Definition: nim_qchat_channel_cpp_def.h:872
std::function< void(const QChatChannelGetChannelsPageResp &)> GetChannelsPageCallback
分页查询频道列表回调
Definition: nim_qchat_channel_cpp_def.h:836
std::function< void(const QChatChannelUpdateCategoryInfoResp &)> ChannelUpdateCategoryInfoCallback
更新频道的分组信息回调
Definition: nim_qchat_channel_cpp_def.h:832
std::function< void(const QChatChannelCategoryRemoveResp &)> ChannelCategoryRemoveCallback
删除频道分组回调
Definition: nim_qchat_channel_cpp_def.h:862
@ kNIMResSuccess
Definition: nim_chatroom_res_code_def.h:18
NIMQChatChannelType
圈组频道类型
Definition: nim_qchat_channel_def.h:24
@ kNIMQChatChannelTypeText
普通文本频道
Definition: nim_qchat_channel_def.h:26
圈组CPP wrapper helpers
NIMQChatChannelViewMode
Definition: nim_qchat_public_def.h:21
@ kNIMQChatChannelViewModePublic
公开模式
Definition: nim_qchat_public_def.h:23
NIMQChatChannelSyncMode
Definition: nim_qchat_public_def.h:29
@ kNIMQChatChannelSyncModeSync
与频道分组同步
Definition: nim_qchat_public_def.h:33
NIMQChatSubscribeType
Definition: nim_qchat_public_def.h:45
@ kNIMQChatSubscribeTypeMsg
订阅某个channel的【消息】/【通知】
Definition: nim_qchat_public_def.h:49
NIMQChatSearchOrder
搜索排序顺序
Definition: nim_qchat_public_def.h:82
@ kNIMQChatSearchOrderAsc
按时间正序
Definition: nim_qchat_public_def.h:84
NIMQChatChannelSearchSort
频道搜索排序规则
Definition: nim_qchat_public_def.h:100
@ kNIMQChatChannelSearchSortCreateTime
创建时间排序
Definition: nim_qchat_public_def.h:104
NIMQChatSubscribeOpeType
Definition: nim_qchat_public_def.h:37
@ kNIMQChatSubscribeOpeTypeSubscribe
订阅
Definition: nim_qchat_public_def.h:39
Definition: nim_qchat_channel_def.h:775
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:779
char * custom
自定义字段
Definition: nim_qchat_channel_def.h:785
char * name
名称
Definition: nim_qchat_channel_def.h:783
nim_qchat_channel_create_category_cb_func cb
创建频道分组回调
Definition: nim_qchat_channel_def.h:777
uint64_t server_id
服务器 id
Definition: nim_qchat_channel_def.h:781
NIMQChatChannelViewMode view_mode
查看模式
Definition: nim_qchat_channel_def.h:787
Definition: nim_qchat_channel_def.h:297
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:299
NIMQChatChannelCategoryInfo category_info
频道分组信息
Definition: nim_qchat_channel_def.h:303
Definition: nim_qchat_channel_def.h:951
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:961
char ** accids
成员ID列表
Definition: nim_qchat_channel_def.h:963
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:955
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:959
nim_qchat_channel_get_category_white_black_members_cb_func cb
获取频道分组白/黑名单成员回调
Definition: nim_qchat_channel_def.h:953
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:957
size_t accids_count
成员ID列表长度
Definition: nim_qchat_channel_def.h:965
Definition: nim_qchat_channel_def.h:895
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:901
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:903
size_t role_ids_count
身份组ID列表长度
Definition: nim_qchat_channel_def.h:909
nim_qchat_channel_get_category_white_black_roles_cb_func cb
获取频道分组白/黑名单身份组回调
Definition: nim_qchat_channel_def.h:897
uint64_t * role_ids
身份组ID列表
Definition: nim_qchat_channel_def.h:907
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:905
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:899
Definition: nim_qchat_channel_def.h:359
NIMQChatRoleInfo * roles
身份组列表
Definition: nim_qchat_channel_def.h:365
size_t role_count
身份组数量
Definition: nim_qchat_channel_def.h:367
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:361
Definition: nim_qchat_channel_def.h:933
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:939
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:941
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:943
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:945
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:947
nim_qchat_channel_get_category_white_black_members_page_cb_func cb
获取频道分组白/黑名单成员回调
Definition: nim_qchat_channel_def.h:935
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:937
Definition: nim_qchat_channel_def.h:374
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:380
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:376
NIMQChatMemberInfo * members
成员列表
Definition: nim_qchat_channel_def.h:382
size_t member_count
成员数量
Definition: nim_qchat_channel_def.h:384
Definition: nim_qchat_channel_def.h:388
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:390
NIMQChatMemberInfo * members
成员列表
Definition: nim_qchat_channel_def.h:394
size_t member_count
成员数量
Definition: nim_qchat_channel_def.h:396
Definition: nim_qchat_channel_def.h:877
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:883
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:891
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:881
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:889
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:885
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:887
nim_qchat_channel_get_category_white_black_roles_page_cb_func cb
获取频道分组白/黑名单身份组回调
Definition: nim_qchat_channel_def.h:879
Definition: nim_qchat_channel_def.h:345
size_t role_count
身份组数量
Definition: nim_qchat_channel_def.h:355
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:351
NIMQChatRoleInfo * roles
身份组列表
Definition: nim_qchat_channel_def.h:353
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:347
Definition: nim_qchat_channel_def.h:118
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:122
uint64_t update_time
更新时间
Definition: nim_qchat_channel_def.h:136
NIMQChatChannelViewMode view_mode
查看模式
Definition: nim_qchat_channel_def.h:130
char * custom
自定义字段
Definition: nim_qchat_channel_def.h:126
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:120
bool valid_flag
有效标记,false:无效 true:有效
Definition: nim_qchat_channel_def.h:132
char * owner
拥有者
Definition: nim_qchat_channel_def.h:128
char * name
名称
Definition: nim_qchat_channel_def.h:124
uint64_t create_time
创建时间
Definition: nim_qchat_channel_def.h:134
Definition: nim_qchat_channel_def.h:791
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:795
uint64_t category_id
分组 id
Definition: nim_qchat_channel_def.h:797
nim_qchat_channel_remove_category_cb_func cb
删除频道分组回调
Definition: nim_qchat_channel_def.h:793
Definition: nim_qchat_channel_def.h:801
char * custom
自定义字段
Definition: nim_qchat_channel_def.h:811
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:805
char * name
名称
Definition: nim_qchat_channel_def.h:809
nim_qchat_channel_update_category_cb_func cb
更新频道分组回调
Definition: nim_qchat_channel_def.h:803
uint64_t category_id
分组 id
Definition: nim_qchat_channel_def.h:807
NIMQChatChannelViewMode view_mode
查看模式
Definition: nim_qchat_channel_def.h:813
Definition: nim_qchat_channel_def.h:913
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:921
size_t accids_count
成员ID列表长度
Definition: nim_qchat_channel_def.h:925
char ** accids
成员ID列表
Definition: nim_qchat_channel_def.h:923
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:927
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:917
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition: nim_qchat_channel_def.h:929
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:919
nim_qchat_channel_update_category_white_black_members_cb_func cb
更新频道分组白/黑名单成员回调
Definition: nim_qchat_channel_def.h:915
Definition: nim_qchat_channel_def.h:859
nim_qchat_channel_update_category_white_black_role_cb_func cb
更新频道分组白/黑名单身份组回调
Definition: nim_qchat_channel_def.h:861
uint64_t role_id
身份组ID
Definition: nim_qchat_channel_def.h:869
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition: nim_qchat_channel_def.h:873
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:863
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:871
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:865
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:867
Definition: nim_qchat_channel_def.h:500
nim_qchat_channel_create_cb_func cb
创建频道异步回调
Definition: nim_qchat_channel_def.h:502
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_channel_def.h:508
NIMQChatChannelInfo channel_info
频道信息
Definition: nim_qchat_channel_def.h:506
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:504
Definition: nim_qchat_channel_def.h:140
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:142
NIMQChatChannelInfo channel_info
频道信息
Definition: nim_qchat_channel_def.h:146
Definition: nim_qchat_channel_def.h:512
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:516
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:518
nim_qchat_channel_remove_cb_func cb
移除频道异步回调
Definition: nim_qchat_channel_def.h:514
Definition: nim_qchat_channel_def.h:817
size_t category_ids_count
分组ID列表长度
Definition: nim_qchat_channel_def.h:825
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:821
nim_qchat_channel_get_categories_cb_func cb
获取频道分组回调
Definition: nim_qchat_channel_def.h:819
uint64_t * category_ids
分组ID列表
Definition: nim_qchat_channel_def.h:823
Definition: nim_qchat_channel_def.h:313
size_t category_count
分组数量
Definition: nim_qchat_channel_def.h:321
NIMQChatChannelCategoryInfo * categories
分组列表
Definition: nim_qchat_channel_def.h:319
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:315
Definition: nim_qchat_channel_def.h:829
uint64_t server_id
服务器 id
Definition: nim_qchat_channel_def.h:835
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:839
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:833
nim_qchat_channel_get_categories_page_cb_func cb
分页获取频道分组回调
Definition: nim_qchat_channel_def.h:831
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:837
Definition: nim_qchat_channel_def.h:325
NIMQChatChannelCategoryInfo * categories
分组列表
Definition: nim_qchat_channel_def.h:333
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:327
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:331
size_t category_count
分组数量
Definition: nim_qchat_channel_def.h:335
Definition: nim_qchat_channel_def.h:843
uint64_t category_id
分组 id
Definition: nim_qchat_channel_def.h:851
uint64_t server_id
服务器 id
Definition: nim_qchat_channel_def.h:849
nim_qchat_channel_get_category_channels_page_cb_func cb
分页获取频道分组回调
Definition: nim_qchat_channel_def.h:845
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:853
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:855
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:847
Definition: nim_qchat_channel_def.h:568
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:572
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:578
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:576
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:574
nim_qchat_channel_get_channels_page_cb_func cb
查询频道列表异步回调
Definition: nim_qchat_channel_def.h:570
Definition: nim_qchat_channel_def.h:171
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:173
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:177
NIMQChatChannelInfo * channel_list
频道列表
Definition: nim_qchat_channel_def.h:181
size_t channel_list_count
频道列表数量
Definition: nim_qchat_channel_def.h:179
Definition: nim_qchat_channel_def.h:556
nim_qchat_channel_get_channels_cb_func cb
查询频道列表异步回调
Definition: nim_qchat_channel_def.h:558
size_t channel_ids_count
频道id列表长度
Definition: nim_qchat_channel_def.h:562
uint64_t * channel_ids
频道id列表
Definition: nim_qchat_channel_def.h:564
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:560
Definition: nim_qchat_channel_def.h:159
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:161
NIMQChatChannelInfo * channel_list
频道列表
Definition: nim_qchat_channel_def.h:167
size_t channel_list_count
频道列表数量
Definition: nim_qchat_channel_def.h:165
Definition: nim_qchat_channel_def.h:717
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:723
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:721
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:727
nim_qchat_channel_get_existing_white_black_members_cb_func cb
查询白/黑名单成员列表回调
Definition: nim_qchat_channel_def.h:719
char ** accids
accid列表
Definition: nim_qchat_channel_def.h:729
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:725
size_t accids_count
accid列表长度
Definition: nim_qchat_channel_def.h:731
Definition: nim_qchat_channel_def.h:270
NIMQChatMemberInfo * members
成员列表
Definition: nim_qchat_channel_def.h:276
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:272
size_t member_count
成员数量
Definition: nim_qchat_channel_def.h:278
Definition: nim_qchat_channel_def.h:699
uint64_t * role_ids
身份组id列表
Definition: nim_qchat_channel_def.h:711
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:705
nim_qchat_channel_get_existing_white_black_roles_cb_func cb
查询白/黑名单身份组列表回调
Definition: nim_qchat_channel_def.h:701
size_t role_ids_count
身份组id列表长度
Definition: nim_qchat_channel_def.h:713
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:707
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:703
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:709
Definition: nim_qchat_channel_def.h:258
NIMQChatRoleInfo * roles
身份组列表
Definition: nim_qchat_channel_def.h:264
size_t role_count
身份组数量
Definition: nim_qchat_channel_def.h:266
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:260
Definition: nim_qchat_channel_def.h:582
nim_qchat_channel_get_members_page_cb_func cb
查询成员列表异步回调
Definition: nim_qchat_channel_def.h:584
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:592
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:590
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:586
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:588
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:594
Definition: nim_qchat_channel_def.h:983
nim_qchat_channel_get_rtc_info_cb_func cb
获取频道RTC信息回调
Definition: nim_qchat_channel_def.h:985
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:989
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:987
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:991
Definition: nim_qchat_channel_def.h:403
NIMQChatChannelRTCInfo rtc_info
RTC信息
Definition: nim_qchat_channel_def.h:409
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:405
Definition: nim_qchat_channel_def.h:995
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:1003
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:999
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:1001
nim_qchat_channel_get_rtc_online_members_cb_func cb
获取频道RTC在线成员回调
Definition: nim_qchat_channel_def.h:997
Definition: nim_qchat_channel_def.h:413
NIMQChatMemberInfo * members
成员列表
Definition: nim_qchat_channel_def.h:419
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:415
size_t member_count
成员数量
Definition: nim_qchat_channel_def.h:421
Definition: nim_qchat_channel_def.h:681
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:685
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:689
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:693
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:695
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:687
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:691
nim_qchat_channel_get_white_black_members_page_cb_func cb
查询白/黑名单成员列表回调
Definition: nim_qchat_channel_def.h:683
Definition: nim_qchat_channel_def.h:244
NIMQChatMemberInfo * members
成员列表
Definition: nim_qchat_channel_def.h:252
size_t member_count
成员数量
Definition: nim_qchat_channel_def.h:254
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:250
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:246
Definition: nim_qchat_channel_def.h:663
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:677
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:675
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:667
nim_qchat_channel_get_white_black_roles_page_cb_func cb
查询白/黑名单身份组列表回调
Definition: nim_qchat_channel_def.h:665
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:673
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:669
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:671
Definition: nim_qchat_channel_def.h:230
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:232
size_t role_count
身份组数量
Definition: nim_qchat_channel_def.h:240
NIMQChatRoleInfo * roles
身份组列表
Definition: nim_qchat_channel_def.h:238
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:236
Definition: nim_qchat_public_def.h:130
Definition: nim_qchat_channel_def.h:58
uint64_t category_id
频道分组ID
Definition: nim_qchat_channel_def.h:82
char * topic
主题
Definition: nim_qchat_channel_def.h:66
uint64_t create_time
创建时间
Definition: nim_qchat_channel_def.h:78
uint64_t reorder_weight
自定义排序权重值
Definition: nim_qchat_channel_def.h:86
NIMQChatChannelViewMode view_mode
查看模式,只有在category_id为0或sync_mode为kNIMQChatChannelSyncModeNoSync时有效
Definition: nim_qchat_channel_def.h:74
bool valid_flag
有效标记,false:无效 true:有效
Definition: nim_qchat_channel_def.h:76
char * name
名称
Definition: nim_qchat_channel_def.h:64
char * owner
拥有者
Definition: nim_qchat_channel_def.h:72
char * custom
自定义字段
Definition: nim_qchat_channel_def.h:68
uint64_t channel_id
channel id
Definition: nim_qchat_channel_def.h:62
NIMQChatChannelSyncMode sync_mode
频道分组同步模式
Definition: nim_qchat_channel_def.h:84
uint64_t server_id
server id
Definition: nim_qchat_channel_def.h:60
uint64_t update_time
更新时间
Definition: nim_qchat_channel_def.h:80
NIMQChatChannelType type
频道类型
Definition: nim_qchat_channel_def.h:70
Definition: nim_qchat_channel_def.h:759
uint64_t channel_id
频道 id
Definition: nim_qchat_channel_def.h:767
uint64_t server_id
服务器 id
Definition: nim_qchat_channel_def.h:765
nim_qchat_channel_member_search_cb_func cb
搜索异步回调
Definition: nim_qchat_channel_def.h:761
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:763
char * keyword
搜索内容
Definition: nim_qchat_channel_def.h:769
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:771
Definition: nim_qchat_channel_def.h:285
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_channel_def.h:287
NIMQChatMemberInfo * member_list
成员信息列表
Definition: nim_qchat_channel_def.h:293
size_t member_list_count
成员信息列表数量
Definition: nim_qchat_channel_def.h:291
Definition: nim_qchat_channel_def.h:598
NIMQChatChannelIDInfo * id_infos
ID 列表
Definition: nim_qchat_channel_def.h:606
size_t id_infos_count
ID 列表长度
Definition: nim_qchat_channel_def.h:604
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:602
nim_qchat_channel_query_unread_info_cb_func cb
查询未读消息数异步回调
Definition: nim_qchat_channel_def.h:600
Definition: nim_qchat_channel_def.h:188
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:192
Definition: nim_qchat_channel_def.h:90
char * scenario
音频应用场景
Definition: nim_qchat_channel_def.h:94
char * profile
音频属性
Definition: nim_qchat_channel_def.h:92
Definition: nim_qchat_channel_def.h:108
NIMQChatChannelRTCAudioInfo audio
音频配置
Definition: nim_qchat_channel_def.h:112
NIMQChatChannelRTCVideoInfo video
视频配置
Definition: nim_qchat_channel_def.h:114
uint32_t limit
在线人数限制
Definition: nim_qchat_channel_def.h:110
Definition: nim_qchat_channel_def.h:98
uint32_t fps
帧率
Definition: nim_qchat_channel_def.h:104
uint32_t width
分辨率宽
Definition: nim_qchat_channel_def.h:100
uint32_t height
分辨率高
Definition: nim_qchat_channel_def.h:102
Definition: nim_qchat_channel_def.h:494
Definition: nim_qchat_channel_def.h:735
char * cursor
查询游标, 查询的起始位置
Definition: nim_qchat_channel_def.h:755
nim_qchat_channel_search_page_cb_func cb
搜索异步回调
Definition: nim_qchat_channel_def.h:737
char * keyword
搜索内容
Definition: nim_qchat_channel_def.h:743
NIMQChatChannelSearchSort sort
排序规则
Definition: nim_qchat_channel_def.h:751
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:753
uint64_t start_time
起始时间
Definition: nim_qchat_channel_def.h:745
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:739
NIMQChatSearchOrder order
排序顺序
Definition: nim_qchat_channel_def.h:749
uint64_t server_id
服务器 id, 若为空则表示在所有服务器下可见频道中搜索
Definition: nim_qchat_channel_def.h:741
uint64_t end_time
结束时间
Definition: nim_qchat_channel_def.h:747
Definition: nim_qchat_channel_def.h:610
nim_qchat_channel_subscribe_cb_func cb
订阅频道信息回调函数
Definition: nim_qchat_channel_def.h:612
NIMQChatSubscribeOpeType ope_type
操作类型
Definition: nim_qchat_channel_def.h:615
size_t id_infos_count
ID 列表长度
Definition: nim_qchat_channel_def.h:619
NIMQChatSubscribeType sub_type
订阅类型
Definition: nim_qchat_channel_def.h:617
NIMQChatChannelIDInfo * id_infos
ID 列表
Definition: nim_qchat_channel_def.h:621
Definition: nim_qchat_channel_def.h:198
NIMQChatChannelIDInfo * failed_channels
订阅失败列表
Definition: nim_qchat_channel_def.h:204
NIMQChatUnreadInfo * unread_infos
频道未读信息, 内部使用,未读相关变更关注RegUnreadCb回调
Definition: nim_qchat_channel_def.h:208
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:200
size_t unread_infos_count
频道未读信息数量
Definition: nim_qchat_channel_def.h:210
size_t failed_channels_count
订阅失败列表数量
Definition: nim_qchat_channel_def.h:206
Definition: nim_qchat_channel_def.h:214
size_t unread_infos_count
未读数信息数量
Definition: nim_qchat_channel_def.h:218
NIMQChatUnreadInfo * unread_infos
未读数信息
Definition: nim_qchat_channel_def.h:220
Definition: nim_qchat_channel_def.h:542
NIMQChatChannelSyncMode sync_mode
频道分组同步模式
Definition: nim_qchat_channel_def.h:552
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:546
uint64_t channel_id
频道 ID
Definition: nim_qchat_channel_def.h:548
uint64_t category_id
频道分组ID
Definition: nim_qchat_channel_def.h:550
nim_qchat_channel_update_category_info_cb_func cb
更新频道的分组信息异步回调
Definition: nim_qchat_channel_def.h:544
Definition: nim_qchat_channel_def.h:522
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_channel_def.h:538
char * custom
自定义扩展
Definition: nim_qchat_channel_def.h:534
nim_qchat_channel_update_cb_func cb
更新频道信息异步回调
Definition: nim_qchat_channel_def.h:524
char * name
频道名称
Definition: nim_qchat_channel_def.h:530
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:526
char * topic
主题
Definition: nim_qchat_channel_def.h:532
uint64_t channel_id
频道 ID
Definition: nim_qchat_channel_def.h:528
NIMQChatChannelViewMode view_mode
查看权限
Definition: nim_qchat_channel_def.h:536
Definition: nim_qchat_channel_def.h:969
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:977
nim_qchat_channel_update_rtc_info_cb_func cb
更新频道RTC信息回调
Definition: nim_qchat_channel_def.h:971
NIMQChatChannelRTCInfo rtc_info
RTC信息
Definition: nim_qchat_channel_def.h:979
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:973
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:975
Definition: nim_qchat_channel_def.h:643
char ** accids
被踢人id列表
Definition: nim_qchat_channel_def.h:653
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:651
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:647
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition: nim_qchat_channel_def.h:659
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:657
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:649
size_t accids_count
被踢人id列表长度
Definition: nim_qchat_channel_def.h:655
nim_qchat_channel_update_white_black_members_cb_func cb
更新白/黑名单成员回调
Definition: nim_qchat_channel_def.h:645
Definition: nim_qchat_channel_def.h:625
uint64_t role_id
身份组id
Definition: nim_qchat_channel_def.h:635
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:629
nim_qchat_channel_update_white_black_role_cb_func cb
更新白/黑名单身份组回调
Definition: nim_qchat_channel_def.h:627
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:637
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition: nim_qchat_channel_def.h:639
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:631
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:633
Definition: nim_qchat_member_def.h:21
Definition: nim_qchat_role_def.h:140
Definition: nim_qchat_public_def.h:330
Definition: nim_qchat_public_cpp_def.h:40
Definition: nim_qchat_public_cpp_def.h:53
Definition: nim_qchat_channel_cpp_def.h:1586
Definition: nim_qchat_channel_cpp_def.h:535
Definition: nim_qchat_channel_cpp_def.h:2015
std::list< std::string > accids
成员ID列表
Definition: nim_qchat_channel_cpp_def.h:2025
Definition: nim_qchat_channel_cpp_def.h:738
Definition: nim_qchat_channel_cpp_def.h:1880
std::vector< uint64_t > role_ids
身份组ID列表
Definition: nim_qchat_channel_cpp_def.h:1890
Definition: nim_qchat_channel_cpp_def.h:669
Definition: nim_qchat_channel_cpp_def.h:1972
Definition: nim_qchat_channel_cpp_def.h:703
Definition: nim_qchat_channel_cpp_def.h:1837
Definition: nim_qchat_channel_cpp_def.h:634
Definition: nim_qchat_channel_cpp_def.h:156
Definition: nim_qchat_channel_cpp_def.h:1625
Definition: nim_qchat_channel_cpp_def.h:1652
Definition: nim_qchat_channel_cpp_def.h:1921
std::list< std::string > accids
成员ID列表
Definition: nim_qchat_channel_cpp_def.h:1929
Definition: nim_qchat_channel_cpp_def.h:1794
Definition: nim_qchat_channel_cpp_def.h:974
Definition: nim_qchat_channel_cpp_def.h:258
Definition: nim_qchat_channel_cpp_def.h:1005
Definition: nim_qchat_channel_cpp_def.h:1691
std::vector< uint64_t > category_ids
分组ID列表
Definition: nim_qchat_channel_cpp_def.h:1695
Definition: nim_qchat_channel_cpp_def.h:562
Definition: nim_qchat_channel_cpp_def.h:1720
Definition: nim_qchat_channel_cpp_def.h:593
Definition: nim_qchat_channel_cpp_def.h:1755
Definition: nim_qchat_channel_cpp_def.h:1144
Definition: nim_qchat_channel_cpp_def.h:321
Definition: nim_qchat_channel_cpp_def.h:1114
Definition: nim_qchat_channel_cpp_def.h:290
Definition: nim_qchat_channel_cpp_def.h:1445
std::list< std::string > accids
用户accid列表
Definition: nim_qchat_channel_cpp_def.h:1455
Definition: nim_qchat_channel_cpp_def.h:472
Definition: nim_qchat_channel_cpp_def.h:1398
std::list< uint64_t > role_ids
身份组id列表
Definition: nim_qchat_channel_cpp_def.h:1408
Definition: nim_qchat_channel_cpp_def.h:441
Definition: nim_qchat_channel_cpp_def.h:1179
Definition: nim_qchat_channel_cpp_def.h:2097
Definition: nim_qchat_channel_cpp_def.h:772
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_cpp_def.h:774
QChatChannelRTCInfo rtc_info
RTC信息
Definition: nim_qchat_channel_cpp_def.h:776
Definition: nim_qchat_channel_cpp_def.h:2128
Definition: nim_qchat_channel_cpp_def.h:793
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_cpp_def.h:795
std::vector< QChatMemberInfo > members
成员列表
Definition: nim_qchat_channel_cpp_def.h:797
Definition: nim_qchat_channel_cpp_def.h:1355
uint32_t limit
查询条数
Definition: nim_qchat_channel_cpp_def.h:1367
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_cpp_def.h:1365
Definition: nim_qchat_channel_cpp_def.h:406
Definition: nim_qchat_channel_cpp_def.h:1312
uint32_t limit
查询条数
Definition: nim_qchat_channel_cpp_def.h:1324
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_cpp_def.h:1322
Definition: nim_qchat_channel_cpp_def.h:371
Definition: nim_qchat_channel_cpp_def.h:24
Definition: nim_qchat_channel_cpp_def.h:1547
Definition: nim_qchat_channel_cpp_def.h:504
Definition: nim_qchat_channel_cpp_def.h:944
Definition: nim_qchat_channel_cpp_def.h:232
std::vector< NIMQChatUnreadInfo > unread_infos
未读信息列表
Definition: nim_qchat_channel_cpp_def.h:236
Definition: nim_qchat_channel_cpp_def.h:91
std::string scenario
音频应用场景 ["DEFAULT","SPEECH","MUSIC", "CHATROOM"]
Definition: nim_qchat_channel_cpp_def.h:95
std::string profile
音频属性 ["HIGH_QUALITY_STEREO","HIGH_QUALITY","STANDARD_EXTEND"]
Definition: nim_qchat_channel_cpp_def.h:93
Definition: nim_qchat_channel_cpp_def.h:133
Definition: nim_qchat_channel_cpp_def.h:110
Definition: nim_qchat_channel_cpp_def.h:891
Definition: nim_qchat_channel_cpp_def.h:1492
Definition: nim_qchat_channel_cpp_def.h:906
Definition: nim_qchat_channel_cpp_def.h:203
Definition: nim_qchat_channel_cpp_def.h:356
std::vector< NIMQChatUnreadInfo > unread_infos
未读数信息
Definition: nim_qchat_channel_cpp_def.h:358
Definition: nim_qchat_channel_cpp_def.h:1079
Definition: nim_qchat_channel_cpp_def.h:1032
std::string topic
主题
Definition: nim_qchat_channel_cpp_def.h:1040
std::string custom
自定义字段
Definition: nim_qchat_channel_cpp_def.h:1042
std::string name
名称
Definition: nim_qchat_channel_cpp_def.h:1038
Definition: nim_qchat_channel_cpp_def.h:2062
Definition: nim_qchat_channel_cpp_def.h:1261
std::list< std::string > accids
用户accid列表
Definition: nim_qchat_channel_cpp_def.h:1269
Definition: nim_qchat_channel_cpp_def.h:1218
Definition: nim_qchat_public_cpp_def.h:72
Definition: nim_qchat_server_cpp_def.h:536