NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_qchat_channel_cpp_def.h
浏览该文件的文档.
1
11#ifndef __NIM_QCHAT_CHANNEL_CPP_DEF_H__
12#define __NIM_QCHAT_CHANNEL_CPP_DEF_H__
13
15
19
20namespace nim {
21
25 uint64_t server_id{0};
27 uint64_t channel_id{0};
29 std::string name{""};
31 std::string topic{""};
33 std::string custom{""};
37 std::string owner{""};
43 bool valid_flag{false};
45 uint64_t create_time{0};
47 uint64_t update_time{0};
49 uint64_t category_id{0};
53 uint64_t reorder_weight{0};
54 QChatChannelInfo() = default;
56 server_id = c_param.server_id;
57 channel_id = c_param.channel_id;
58 name = c_param.name ? c_param.name : "";
59 topic = c_param.topic ? c_param.topic : "";
60 custom = c_param.custom ? c_param.custom : "";
61 type = c_param.type;
62 owner = c_param.owner ? c_param.owner : "";
63 view_mode = c_param.view_mode;
64 visitor_mode = c_param.visitor_mode;
65 valid_flag = c_param.valid_flag;
66 create_time = c_param.create_time;
67 update_time = c_param.update_time;
68 category_id = c_param.category_id;
69 sync_mode = c_param.sync_mode;
70 reorder_weight = c_param.reorder_weight;
71 }
73 NIMQChatChannelInfo c_param = {};
74 c_param.server_id = server_id;
75 c_param.channel_id = channel_id;
76 c_param.name = const_cast<char*>(name.c_str());
77 c_param.topic = const_cast<char*>(topic.c_str());
78 c_param.custom = const_cast<char*>(custom.c_str());
79 c_param.type = type;
80 c_param.owner = const_cast<char*>(owner.c_str());
81 c_param.view_mode = view_mode;
82 c_param.visitor_mode = visitor_mode;
83 c_param.valid_flag = valid_flag;
84 c_param.create_time = create_time;
85 c_param.update_time = update_time;
86 c_param.category_id = category_id;
87 c_param.sync_mode = sync_mode;
88 c_param.reorder_weight = reorder_weight;
89 return c_param;
90 }
91};
92
96 std::string profile;
98 std::string scenario;
101 profile = c_param.profile ? c_param.profile : "";
102 scenario = c_param.scenario ? c_param.scenario : "";
103 }
105 NIMQChatChannelRTCAudioInfo c_param = {};
106 c_param.profile = const_cast<char*>(profile.c_str());
107 c_param.scenario = const_cast<char*>(scenario.c_str());
108 return c_param;
109 }
110};
111
115 uint32_t width{640};
117 uint32_t height{480};
119 uint32_t fps{15};
122 width = c_param.width;
123 height = c_param.height;
124 fps = c_param.fps;
125 }
127 NIMQChatChannelRTCVideoInfo c_param = {};
128 c_param.width = width;
129 c_param.height = height;
130 c_param.fps = fps;
131 return c_param;
132 }
133};
134
138 uint32_t limit{99};
145 limit = c_param.limit;
146 audio = c_param.audio;
147 video = c_param.video;
148 }
150 NIMQChatChannelRTCInfo c_param = {};
151 c_param.limit = limit;
152 c_param.audio = audio.ToCParam();
153 c_param.video = video.ToCParam();
154 return c_param;
155 }
156};
157
161 uint64_t server_id{0};
163 uint64_t category_id{0};
165 std::string name{""};
167 std::string custom{""};
169 std::string owner{""};
173 bool valid_flag{false};
175 uint64_t create_time{0};
177 uint64_t update_time{0};
179 uint32_t channel_number{0};
182 server_id = c_param.server_id;
183 category_id = c_param.category_id;
184 name = c_param.name ? c_param.name : "";
185 custom = c_param.custom ? c_param.custom : "";
186 owner = c_param.owner ? c_param.owner : "";
187 view_mode = c_param.view_mode;
188 valid_flag = c_param.valid_flag;
189 create_time = c_param.create_time;
190 update_time = c_param.update_time;
191 channel_number = c_param.channel_number;
192 }
194 NIMQChatChannelCategoryInfo c_param = {};
195 c_param.server_id = server_id;
196 c_param.category_id = category_id;
197 c_param.name = const_cast<char*>(name.c_str());
198 c_param.custom = const_cast<char*>(custom.c_str());
199 c_param.owner = const_cast<char*>(owner.c_str());
200 c_param.view_mode = view_mode;
201 c_param.valid_flag = valid_flag;
202 c_param.create_time = create_time;
203 c_param.update_time = update_time;
204 c_param.channel_number = channel_number;
205 return c_param;
206 }
207};
208
212 uint32_t res_code{0};
214 std::vector<NIMQChatChannelIDInfo> failed_channels{};
217 res_code = c_resp.res_code;
218 for (size_t i = 0; i < c_resp.failed_channels_count; i++) {
219 failed_channels.push_back(c_resp.failed_channels[i]);
220 }
221 for (size_t i = 0; i < c_resp.unread_infos_count; i++) {
222 unread_infos.push_back(c_resp.unread_infos[i]);
223 }
224 }
227 c_resp.res_code = res_code;
228 c_resp.failed_channels = const_cast<NIMQChatChannelIDInfo*>(failed_channels.data());
229 c_resp.failed_channels_count = failed_channels.size();
230 c_resp.unread_infos = const_cast<NIMQChatUnreadInfo*>(unread_infos.data());
231 c_resp.unread_infos_count = unread_infos.size();
232 return c_resp;
233 }
234 // 频道未读信息, 内部使用,未读相关变更关注RegUnreadCb回调
235 std::vector<NIMQChatUnreadInfo> unread_infos{};
236};
237
241 uint32_t res_code{0};
243 std::vector<NIMQChatUnreadInfo> unread_infos;
246 res_code = c_resp.res_code;
247 if (c_resp.res_code != kNIMResSuccess)
248 return;
249 for (size_t i = 0; i < c_resp.unread_info_count; i++) {
250 unread_infos.push_back(c_resp.unread_infos[i]);
251 }
252 }
255 c_resp.res_code = res_code;
256 if (res_code != kNIMResSuccess)
257 return c_resp;
258 c_resp.unread_infos = const_cast<NIMQChatUnreadInfo*>(unread_infos.data());
259 c_resp.unread_info_count = unread_infos.size();
260 return c_resp;
261 }
262};
263
267 uint32_t res_code{0};
269 QChatChannelInfo channel_info{};
272 res_code = c_resp.res_code;
273 if (c_resp.res_code != kNIMResSuccess)
274 return;
275 channel_info = c_resp.channel_info;
276 }
278 NIMQChatChannelCreateResp c_resp = {};
279 c_resp.res_code = res_code;
280 if (res_code != kNIMResSuccess)
281 return c_resp;
282 c_resp.channel_info = channel_info.ToCParam();
283 return c_resp;
284 }
285};
286
289
292
295
299 uint32_t res_code{0};
301 std::vector<QChatChannelInfo> channel_list{};
304 res_code = c_resp.res_code;
305 if (c_resp.res_code != kNIMResSuccess)
306 return;
307 for (size_t i = 0; i < c_resp.channel_list_count; i++) {
308 channel_list.emplace_back(c_resp.channel_list[i]);
309 }
310 }
313 c_param.res_code = res_code;
314 vec_channels.clear();
315 for (auto&& it : channel_list) {
316 vec_channels.push_back(it.ToCParam());
317 }
318 c_param.channel_list = vec_channels.data();
319 c_param.channel_list_count = vec_channels.size();
320 return c_param;
321 }
322
323protected:
324 mutable std::vector<NIMQChatChannelInfo> vec_channels;
325};
326
330 uint32_t res_code{0};
332 QChatPageInfo page_info{};
334 std::vector<QChatChannelInfo> channel_list{};
337 res_code = c_resp.res_code;
338 page_info = c_resp.page_info;
339 if (c_resp.res_code != kNIMResSuccess)
340 return;
341 for (size_t i = 0; i < c_resp.channel_list_count; i++) {
342 channel_list.emplace_back(c_resp.channel_list[i]);
343 }
344 }
347 c_response.res_code = res_code;
348 c_response.page_info = page_info.ToCParam();
349 vec_channels.clear();
350 for (auto&& info : channel_list) {
351 vec_channels.push_back(info.ToCParam());
352 }
353 c_response.channel_list_count = vec_channels.size();
354 c_response.channel_list = vec_channels.data();
355 return c_response;
356 }
357
358protected:
359 mutable std::vector<NIMQChatChannelInfo> vec_channels;
360};
361
365 std::vector<NIMQChatUnreadInfo> unread_infos;
368 for (size_t i = 0; i < c_resp.unread_infos_count; i++) {
369 unread_infos.emplace_back(c_resp.unread_infos[i]);
370 }
371 }
372};
373
376
380 uint32_t res_code{0};
382 QChatPageInfo page_info{};
384 std::vector<QChatServerRoleInfo> roles{};
387 res_code = c_resp.res_code;
388 page_info = c_resp.page_info;
389 if (c_resp.res_code != kNIMResSuccess)
390 return;
391 for (size_t i = 0; i < c_resp.role_count; i++) {
392 roles.emplace_back(c_resp.roles[i]);
393 }
394 }
397 c_response.res_code = res_code;
398 c_response.page_info = page_info.ToCParam();
399 c_roles.clear();
400 for (const auto& role : roles) {
401 c_roles.push_back(role.ToCParam());
402 }
403 c_response.role_count = c_roles.size();
404 c_response.roles = const_cast<NIMQChatRoleInfo*>(c_roles.data());
405 return c_response;
406 }
407
408protected:
409 mutable std::vector<NIMQChatRoleInfo> c_roles;
410};
411
415 uint32_t res_code{0};
417 QChatPageInfo page_info{};
419 std::vector<QChatMemberInfo> members{};
422 res_code = c_resp.res_code;
423 page_info = c_resp.page_info;
424 if (c_resp.res_code != kNIMResSuccess)
425 return;
426 for (size_t i = 0; i < c_resp.member_count; i++) {
427 members.emplace_back(c_resp.members[i]);
428 }
429 }
432 c_response.res_code = res_code;
433 c_response.page_info = page_info.ToCParam();
434 c_members.clear();
435 for (const auto& member : members) {
436 c_members.push_back(member.ToCParam());
437 }
438 c_response.member_count = c_members.size();
439 c_response.members = const_cast<NIMQChatMemberInfo*>(c_members.data());
440 return c_response;
441 }
442
443protected:
444 mutable std::vector<NIMQChatMemberInfo> c_members;
445};
446
450 uint32_t res_code{0};
452 std::vector<QChatServerRoleInfo> roles{};
455 res_code = c_resp.res_code;
456 if (c_resp.res_code != kNIMResSuccess)
457 return;
458 for (size_t i = 0; i < c_resp.role_count; i++) {
459 roles.emplace_back(c_resp.roles[i]);
460 }
461 }
464 c_response.res_code = res_code;
465 c_roles.clear();
466 for (const auto& role : roles) {
467 c_roles.push_back(role.ToCParam());
468 }
469 c_response.role_count = c_roles.size();
470 c_response.roles = const_cast<NIMQChatRoleInfo*>(c_roles.data());
471 return c_response;
472 }
473
474protected:
475 mutable std::vector<NIMQChatRoleInfo> c_roles;
476};
477
481 uint32_t res_code{0};
483 std::vector<QChatMemberInfo> members{};
486 res_code = c_resp.res_code;
487 if (c_resp.res_code != kNIMResSuccess)
488 return;
489 for (size_t i = 0; i < c_resp.member_count; i++) {
490 members.emplace_back(c_resp.members[i]);
491 }
492 }
495 c_response.res_code = res_code;
496 c_members.clear();
497 for (const auto& member : members) {
498 c_members.push_back(member.ToCParam());
499 }
500 c_response.member_count = c_members.size();
501 c_response.members = const_cast<NIMQChatMemberInfo*>(c_members.data());
502 return c_response;
503 }
504
505protected:
506 mutable std::vector<NIMQChatMemberInfo> c_members;
507};
513 uint32_t res_code{0};
515 std::vector<QChatMemberInfo> member_list{};
518 res_code = c_resp.res_code;
519 if (c_resp.res_code != kNIMResSuccess)
520 return;
521 for (size_t i = 0; i < c_resp.member_list_count; i++) {
522 member_list.emplace_back(c_resp.member_list[i]);
523 }
524 }
527 c_response.res_code = res_code;
528 vec_members.clear();
529 for (auto&& info : member_list) {
530 vec_members.push_back(info.ToCParam());
531 }
532 c_response.member_list_count = vec_members.size();
533 c_response.member_list = vec_members.data();
534 return c_response;
535 };
536
537protected:
538 mutable std::vector<NIMQChatMemberInfo> vec_members;
539};
540
544 uint32_t res_code{0};
549 res_code = c_resp.res_code;
550 if (c_resp.res_code != kNIMResSuccess)
551 return;
552 category_info = c_resp.category_info;
553 }
556 c_response.res_code = res_code;
557 c_response.category_info = category_info.ToCParam();
558 return c_response;
559 }
560};
561
564
567
571 uint32_t res_code{0};
573 std::vector<QChatChannelCategoryInfo> categories{};
576 res_code = c_resp.res_code;
577 if (c_resp.res_code != kNIMResSuccess)
578 return;
579 for (size_t i = 0; i < c_resp.category_count; i++) {
580 categories.emplace_back(c_resp.categories[i]);
581 }
582 }
585 c_response.res_code = res_code;
586 c_categories.clear();
587 for (const auto& category : categories) {
588 c_categories.push_back(category.ToCParam());
589 }
590 c_response.category_count = c_categories.size();
591 c_response.categories = const_cast<NIMQChatChannelCategoryInfo*>(c_categories.data());
592 return c_response;
593 }
594
595protected:
596 mutable std::vector<NIMQChatChannelCategoryInfo> c_categories;
597};
598
602 uint32_t res_code{0};
604 QChatPageInfo page_info{};
606 std::vector<QChatChannelCategoryInfo> categories{};
609 res_code = c_resp.res_code;
610 if (c_resp.res_code != kNIMResSuccess)
611 return;
612 page_info = c_resp.page_info;
613 for (size_t i = 0; i < c_resp.category_count; i++) {
614 categories.emplace_back(c_resp.categories[i]);
615 }
616 }
619 c_response.res_code = res_code;
620 c_response.page_info = page_info.ToCParam();
621 c_categories.clear();
622 for (const auto& category : categories) {
623 c_categories.push_back(category.ToCParam());
624 }
625 c_response.category_count = c_categories.size();
626 c_response.categories = const_cast<NIMQChatChannelCategoryInfo*>(c_categories.data());
627 return c_response;
628 }
629
630protected:
631 mutable std::vector<NIMQChatChannelCategoryInfo> c_categories;
632};
633
636
639
643 uint32_t res_code{0};
645 QChatPageInfo page_info{};
647 std::vector<QChatServerRoleInfo> roles{};
650 res_code = c_resp.res_code;
651 if (c_resp.res_code != kNIMResSuccess)
652 return;
653 page_info = c_resp.page_info;
654 for (size_t i = 0; i < c_resp.role_count; i++) {
655 roles.emplace_back(c_resp.roles[i]);
656 }
657 }
660 c_response.res_code = res_code;
661 c_response.page_info = page_info.ToCParam();
662 c_roles.clear();
663 for (const auto& role : roles) {
664 c_roles.push_back(role.ToCParam());
665 }
666 c_response.role_count = c_roles.size();
667 c_response.roles = const_cast<NIMQChatRoleInfo*>(c_roles.data());
668 return c_response;
669 }
670
671protected:
672 mutable std::vector<NIMQChatRoleInfo> c_roles;
673};
674
678 uint32_t res_code{0};
680 std::vector<QChatServerRoleInfo> roles{};
683 res_code = c_resp.res_code;
684 if (c_resp.res_code != kNIMResSuccess)
685 return;
686 for (size_t i = 0; i < c_resp.role_count; i++) {
687 roles.emplace_back(c_resp.roles[i]);
688 }
689 }
692 c_response.res_code = res_code;
693 c_roles.clear();
694 for (const auto& role : roles) {
695 c_roles.push_back(role.ToCParam());
696 }
697 c_response.role_count = c_roles.size();
698 c_response.roles = const_cast<NIMQChatRoleInfo*>(c_roles.data());
699 return c_response;
700 }
701
702protected:
703 mutable std::vector<NIMQChatRoleInfo> c_roles;
704};
705
708
712 uint32_t res_code{0};
714 QChatPageInfo page_info{};
716 std::vector<QChatMemberInfo> members{};
719 res_code = c_resp.res_code;
720 if (c_resp.res_code != kNIMResSuccess)
721 return;
722 page_info = c_resp.page_info;
723 for (size_t i = 0; i < c_resp.member_count; i++) {
724 members.emplace_back(c_resp.members[i]);
725 }
726 }
729 c_response.res_code = res_code;
730 c_response.page_info = page_info.ToCParam();
731 c_members.clear();
732 for (const auto& member : members) {
733 c_members.push_back(member.ToCParam());
734 }
735 c_response.member_count = c_members.size();
736 c_response.members = const_cast<NIMQChatMemberInfo*>(c_members.data());
737 return c_response;
738 }
739
740protected:
741 mutable std::vector<NIMQChatMemberInfo> c_members;
742};
743
747 uint32_t res_code{0};
749 std::vector<QChatMemberInfo> members{};
752 res_code = c_resp.res_code;
753 if (c_resp.res_code != kNIMResSuccess)
754 return;
755 for (size_t i = 0; i < c_resp.member_count; i++) {
756 members.emplace_back(c_resp.members[i]);
757 }
758 }
761 c_response.res_code = res_code;
762 c_members.clear();
763 for (const auto& member : members) {
764 c_members.push_back(member.ToCParam());
765 }
766 c_response.member_count = c_members.size();
767 c_response.members = const_cast<NIMQChatMemberInfo*>(c_members.data());
768 return c_response;
769 }
770
771protected:
772 mutable std::vector<NIMQChatMemberInfo> c_members;
773};
774
777
781 uint32_t res_code{0};
786 res_code = c_resp.res_code;
787 if (c_resp.res_code != kNIMResSuccess)
788 return;
789 rtc_info = c_resp.rtc_info;
790 }
793 c_response.res_code = res_code;
794 c_response.rtc_info = rtc_info.ToCParam();
795 return c_response;
796 }
797};
798
802 uint32_t res_code{0};
804 std::vector<QChatMemberInfo> members;
807 res_code = c_resp.res_code;
808 if (c_resp.res_code != kNIMResSuccess)
809 return;
810 for (size_t i = 0; i < c_resp.member_count; i++) {
811 members.emplace_back(c_resp.members[i]);
812 }
813 }
816 c_response.res_code = res_code;
817 c_members.clear();
818 for (const auto& member : members) {
819 c_members.push_back(member.ToCParam());
820 }
821 c_response.member_count = c_members.size();
822 c_response.members = const_cast<NIMQChatMemberInfo*>(c_members.data());
823 return c_response;
824 }
825
826protected:
827 mutable std::vector<NIMQChatMemberInfo> c_members;
828};
829
833 uint32_t res_code{0};
835 std::vector<NIMQChatChannelIDInfo> failed_channels{};
838 res_code = c_resp.res_code;
839 for (size_t i = 0; i < c_resp.failed_channels_count; i++) {
840 failed_channels.push_back(c_resp.failed_channels[i]);
841 }
842 }
845 c_resp.res_code = res_code;
846 c_resp.failed_channels = const_cast<NIMQChatChannelIDInfo*>(failed_channels.data());
847 c_resp.failed_channels_count = failed_channels.size();
848 return c_resp;
849 }
850};
851
853typedef std::function<void(const QChatChannelUnreadResp&)> ChannelUnreadCallback;
855typedef std::function<void(const QChatChannelCreateResp&)> ChannelCreateCallback;
857typedef std::function<void(const QChatChannelDeleteResp&)> ChannelDeleteCallback;
859typedef std::function<void(const QChatChannelUpdateResp&)> ChannelUpdateCallback;
863typedef std::function<void(const QChatChannelGetChannelsResp&)> GetChannelsCallback;
871typedef std::function<void(const QChatChannelSubscribeResp&)> ChannelSubscribeCallback;
915using ChannelGetRTCInfoCallback = std::function<void(const QChatChannelGetRTCInfoResp&)>;
920
925 static ChannelUnreadCallback cb_holder = nullptr;
926 cb_holder = cb;
928 param.cb = [](const NIMQChatChannelUnreadResp* resp) {
929 if (cb_holder)
930 cb_holder(*resp);
931 };
932 return param;
933 }
934};
935
945 std::vector<NIMQChatChannelIDInfo> id_infos{};
948 ope_type = c_param.ope_type;
949 sub_type = c_param.sub_type;
950 for (size_t i = 0; i < c_param.id_infos_count; i++) {
951 id_infos.push_back(c_param.id_infos[i]);
952 }
953 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelSubscribeResp& response) {
954 auto c_response = response.ToCParam();
955 c_response.user_data = user_data;
956 c_callback(&c_response);
957 };
958 }
960 auto cb_holder = new ChannelSubscribeCallback(cb);
962 param.user_data = cb_holder;
963 param.cb = [](const NIMQChatChannelSubscribeResp* resp) {
964 InvokeCallback<ChannelSubscribeCallback, NIMQChatChannelSubscribeResp>(resp);
965 };
966 param.ope_type = ope_type;
967 param.sub_type = sub_type;
968 param.id_infos_count = id_infos.size();
969 param.id_infos = const_cast<NIMQChatChannelIDInfo*>(id_infos.data());
970 return param;
971 }
972};
973
979 std::vector<NIMQChatChannelIDInfo> id_infos{};
982 for (size_t i = 0; i < c_param.id_infos_count; i++) {
983 id_infos.push_back(c_param.id_infos[i]);
984 }
985 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelQueryUnreadInfoResp& response) {
986 auto c_response = response.ToCParam();
987 c_response.user_data = user_data;
988 c_callback(&c_response);
989 };
990 }
992 auto cb_holder = new ChannelQueryUnreadInfoCallback(cb);
994 param.user_data = cb_holder;
995 param.cb = [](const NIMQChatChannelQueryUnreadInfoResp* resp) {
996 InvokeCallback<ChannelQueryUnreadInfoCallback, NIMQChatChannelQueryUnreadInfoResp>(resp);
997 };
998 param.id_infos_count = id_infos.size();
999 param.id_infos = const_cast<NIMQChatChannelIDInfo*>(id_infos.data());
1000 return param;
1001 }
1002};
1003
1009 QChatChannelInfo channel_info{};
1014 channel_info = c_param.channel_info;
1015 anti_spam_info = c_param.anti_spam_info;
1016 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCreateResp& response) {
1017 auto c_response = response.ToCParam();
1018 c_response.user_data = user_data;
1019 c_callback(&c_response);
1020 };
1021 }
1023 auto cb_holder = new ChannelCreateCallback(cb);
1024 NIMQChatChannelCreateParam param = {};
1025 param.user_data = cb_holder;
1026 param.cb = [](const NIMQChatChannelCreateResp* resp) {
1027 InvokeCallback<ChannelCreateCallback, NIMQChatChannelCreateResp>(resp);
1028 };
1029 param.channel_info = channel_info.ToCParam();
1030 param.anti_spam_info = anti_spam_info.ToCParam();
1031 return param;
1032 }
1033};
1034
1040 uint64_t channel_id{0};
1043 channel_id = c_param.channel_id;
1044 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelDeleteResp& response) {
1045 auto c_response = response.ToCParam();
1046 c_response.user_data = user_data;
1047 c_callback(&c_response);
1048 };
1049 }
1051 auto cb_holder = new ChannelDeleteCallback(cb);
1052 NIMQChatChannelDeleteParam param = {};
1053 param.user_data = cb_holder;
1054 param.cb = [](const NIMQChatChannelDeleteResp* resp) {
1055 InvokeCallback<ChannelDeleteCallback, NIMQChatChannelDeleteResp>(resp);
1056 };
1057 param.channel_id = channel_id;
1058 return param;
1059 }
1060};
1061
1067 uint64_t channel_id{0};
1069 std::string name;
1071 std::string topic;
1073 std::string custom;
1082 channel_id = c_param.channel_id;
1083 name = c_param.name;
1084 topic = c_param.topic;
1085 custom = c_param.custom;
1086 view_mode = c_param.view_mode;
1087 visitor_mode = c_param.visitor_mode;
1088 anti_spam_info = c_param.anti_spam_info;
1089 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelUpdateResp& response) {
1090 auto c_response = response.ToCParam();
1091 c_response.user_data = user_data;
1092 c_callback(&c_response);
1093 };
1094 }
1096 auto cb_holder = new ChannelUpdateCallback(cb);
1097 NIMQChatChannelUpdateParam param = {};
1098 param.user_data = cb_holder;
1099 param.cb = [](const NIMQChatChannelUpdateResp* resp) {
1100 InvokeCallback<ChannelUpdateCallback, NIMQChatChannelUpdateResp>(resp);
1101 };
1102 param.channel_id = channel_id;
1103 param.name = const_cast<char*>(name.c_str());
1104 param.topic = const_cast<char*>(topic.c_str());
1105 param.custom = const_cast<char*>(custom.c_str());
1106 param.view_mode = view_mode;
1107 param.visitor_mode = visitor_mode;
1108 param.anti_spam_info = anti_spam_info.ToCParam();
1109 return param;
1110 }
1111};
1112
1118 uint64_t channel_id{0};
1120 uint64_t category_id{0};
1125 channel_id = c_param.channel_id;
1126 category_id = c_param.category_id;
1127 sync_mode = c_param.sync_mode;
1128 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelUpdateCategoryInfoResp& response) {
1129 auto c_response = response.ToCParam();
1130 c_response.user_data = user_data;
1131 c_callback(&c_response);
1132 };
1133 }
1135 auto cb_holder = new ChannelUpdateCategoryInfoCallback(cb);
1137 param.user_data = cb_holder;
1138 param.cb = [](const NIMQChatChannelUpdateCategoryInfoResp* resp) {
1139 InvokeCallback<ChannelUpdateCategoryInfoCallback, NIMQChatChannelUpdateCategoryInfoResp>(resp);
1140 };
1141 param.channel_id = channel_id;
1142 param.category_id = category_id;
1143 param.sync_mode = sync_mode;
1144 return param;
1145 }
1146};
1147
1153 std::vector<uint64_t> channel_ids{};
1156 for (auto index = 0; index < c_param.channel_ids_count; index++) {
1157 channel_ids.push_back(c_param.channel_ids[index]);
1158 }
1159 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetChannelsResp& response) {
1160 auto c_response = response.ToCParam();
1161 c_response.user_data = user_data;
1162 c_callback(&c_response);
1163 };
1164 }
1166 auto cb_holder = new GetChannelsCallback(cb);
1168 param.user_data = cb_holder;
1169 param.cb = [](const NIMQChatChannelGetChannelsResp* resp) {
1170 InvokeCallback<GetChannelsCallback, NIMQChatChannelGetChannelsResp>(resp);
1171 };
1172 param.channel_ids_count = channel_ids.size();
1173 param.channel_ids = const_cast<uint64_t*>(channel_ids.data());
1174 return param;
1175 }
1176};
1177
1183 uint64_t server_id{0};
1185 uint64_t timestamp{0};
1187 uint32_t limit{100};
1190 server_id = c_param.server_id;
1191 timestamp = c_param.timestamp;
1192 limit = c_param.limit;
1193 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetChannelsPageResp& response) {
1194 auto c_response = response.ToCParam();
1195 c_response.user_data = user_data;
1196 c_callback(&c_response);
1197 };
1198 }
1200 auto cb_holder = new GetChannelsPageCallback(cb);
1202 param.user_data = cb_holder;
1203 param.cb = [](const NIMQChatChannelGetChannelsPageResp* resp) {
1204 InvokeCallback<GetChannelsPageCallback, NIMQChatChannelGetChannelsPageResp>(resp);
1205 };
1206 param.server_id = server_id;
1207 param.timestamp = timestamp;
1208 param.limit = limit;
1209 return param;
1210 }
1211};
1212
1218 uint64_t server_id{0};
1220 uint64_t channel_id{0};
1222 uint64_t timestamp{0};
1224 uint32_t limit{100};
1227 server_id = c_param.server_id;
1228 channel_id = c_param.channel_id;
1229 timestamp = c_param.timestamp;
1230 limit = c_param.limit;
1231 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetMembersPageResp& response) {
1232 auto c_response = response.ToCParam();
1233 c_response.user_data = user_data;
1234 c_callback(&c_response);
1235 };
1236 }
1238 auto cb_holder = new ChannelGetMembersPageCallback(cb);
1240 param.user_data = cb_holder;
1241 param.cb = [](const NIMQChatChannelGetMembersPageResp* resp) {
1242 InvokeCallback<ChannelGetMembersPageCallback, NIMQChatChannelGetMembersPageResp>(resp);
1243 };
1244 param.server_id = server_id;
1245 param.channel_id = channel_id;
1246 param.timestamp = timestamp;
1247 param.limit = limit;
1248 return param;
1249 }
1250};
1251
1257 uint64_t server_id{0};
1259 uint64_t channel_id{0};
1261 uint64_t role_id{0};
1268 server_id = c_param.server_id;
1269 channel_id = c_param.channel_id;
1270 role_id = c_param.role_id;
1271 type = c_param.type;
1272 ope_type = c_param.ope_type;
1273 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelUpdateWhiteBlackRoleResp& response) {
1274 auto c_response = response.ToCParam();
1275 c_response.user_data = user_data;
1276 c_callback(&c_response);
1277 };
1278 }
1280 auto cb_holder = new UpdateWhiteBlackRoleCallback(cb);
1282 param.user_data = cb_holder;
1283 param.cb = [](const NIMQChatChannelUpdateWhiteBlackRoleResp* resp) {
1284 InvokeCallback<UpdateWhiteBlackRoleCallback, NIMQChatChannelUpdateWhiteBlackRoleResp>(resp);
1285 };
1286 param.server_id = server_id;
1287 param.channel_id = channel_id;
1288 param.role_id = role_id;
1289 param.type = type;
1290 param.ope_type = ope_type;
1291 return param;
1292 }
1293};
1294
1300 uint64_t server_id{0};
1302 uint64_t channel_id{0};
1304 std::vector<std::string> accids;
1311 server_id = c_param.server_id;
1312 channel_id = c_param.channel_id;
1313 for (size_t i = 0; i < c_param.accids_count; i++)
1314 accids.push_back(c_param.accids[i]);
1315 type = c_param.type;
1316 ope_type = c_param.ope_type;
1317 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelUpdateWhiteBlackMembersResp& response) {
1318 auto c_response = response.ToCParam();
1319 c_response.user_data = user_data;
1320 c_callback(&c_response);
1321 };
1322 }
1324 auto cb_holder = new UpdateWhiteBlackMembersCallback(cb);
1326 param.user_data = cb_holder;
1327 param.cb = [](const NIMQChatChannelUpdateWhiteBlackMembersResp* resp) {
1328 InvokeCallback<UpdateWhiteBlackMembersCallback, NIMQChatChannelUpdateWhiteBlackMembersResp>(resp);
1329 };
1330 param.server_id = server_id;
1331 param.channel_id = channel_id;
1332 accids_vec.clear();
1333 for (auto&& accid : accids)
1334 accids_vec.push_back(const_cast<char*>(accid.c_str()));
1335 param.accids_count = accids_vec.size();
1336 param.accids = accids_vec.data();
1337 param.type = type;
1338 param.ope_type = ope_type;
1339 return param;
1340 }
1341
1342protected:
1343 mutable std::vector<char*> accids_vec;
1344};
1345
1351 uint64_t server_id{0};
1353 uint64_t channel_id{0};
1357 uint64_t timestamp{0};
1359 uint32_t limit{100};
1362 server_id = c_param.server_id;
1363 channel_id = c_param.channel_id;
1364 type = c_param.type;
1365 timestamp = c_param.timestamp;
1366 limit = c_param.limit;
1367 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetWhiteBlackRolesPageResp& response) {
1368 auto c_response = response.ToCParam();
1369 c_response.user_data = user_data;
1370 c_callback(&c_response);
1371 };
1372 }
1374 auto cb_holder = new GetWhiteBlackRolesPageCallback(cb);
1376 param.user_data = cb_holder;
1377 param.cb = [](const NIMQChatChannelGetWhiteBlackRolesPageResp* resp) {
1378 InvokeCallback<GetWhiteBlackRolesPageCallback, NIMQChatChannelGetWhiteBlackRolesPageResp>(resp);
1379 };
1380 param.server_id = server_id;
1381 param.channel_id = channel_id;
1382 param.type = type;
1383 param.timestamp = timestamp;
1384 param.limit = limit;
1385 return param;
1386 }
1387};
1388
1394 uint64_t server_id{0};
1396 uint64_t channel_id{0};
1400 uint64_t timestamp{0};
1402 uint32_t limit{100};
1405 server_id = c_param.server_id;
1406 channel_id = c_param.channel_id;
1407 type = c_param.type;
1408 timestamp = c_param.timestamp;
1409 limit = c_param.limit;
1410 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetWhiteBlackMembersPageResp& response) {
1411 auto c_response = response.ToCParam();
1412 c_response.user_data = user_data;
1413 c_callback(&c_response);
1414 };
1415 }
1417 auto cb_holder = new GetWhiteBlackMembersPageCallback(cb);
1419 param.user_data = cb_holder;
1420 param.cb = [](const NIMQChatChannelGetWhiteBlackMembersPageResp* resp) {
1421 InvokeCallback<GetWhiteBlackMembersPageCallback, NIMQChatChannelGetWhiteBlackMembersPageResp>(resp);
1422 };
1423 param.server_id = server_id;
1424 param.channel_id = channel_id;
1425 param.type = type;
1426 param.timestamp = timestamp;
1427 param.limit = limit;
1428 return param;
1429 }
1430};
1431
1437 uint64_t server_id{0};
1439 uint64_t channel_id{0};
1443 std::vector<uint64_t> role_ids;
1446 server_id = c_param.server_id;
1447 channel_id = c_param.channel_id;
1448 type = c_param.type;
1449 for (size_t i = 0; i < c_param.role_ids_count; i++)
1450 role_ids.push_back(c_param.role_ids[i]);
1451 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetExistingWhiteBlackRolesResp& response) {
1452 auto c_response = response.ToCParam();
1453 c_response.user_data = user_data;
1454 c_callback(&c_response);
1455 };
1456 }
1458 auto cb_holder = new GetExistingWhiteBlackRolesCallback(cb);
1460 param.user_data = cb_holder;
1461 param.cb = [](const NIMQChatChannelGetExistingWhiteBlackRolesResp* resp) {
1462 InvokeCallback<GetExistingWhiteBlackRolesCallback, NIMQChatChannelGetExistingWhiteBlackRolesResp>(resp);
1463 };
1464 param.server_id = server_id;
1465 param.channel_id = channel_id;
1466 param.type = type;
1467 role_ids_vec.clear();
1468 for (auto&& role_id : role_ids)
1469 role_ids_vec.push_back(role_id);
1470 param.role_ids_count = role_ids_vec.size();
1471 param.role_ids = role_ids_vec.data();
1472 return param;
1473 }
1474
1475protected:
1476 mutable std::vector<uint64_t> role_ids_vec;
1477};
1478
1484 uint64_t server_id{0};
1486 uint64_t channel_id{0};
1490 std::vector<std::string> accids;
1493 server_id = c_param.server_id;
1494 channel_id = c_param.channel_id;
1495 type = c_param.type;
1496 for (size_t i = 0; i < c_param.accids_count; i++)
1497 accids.push_back(c_param.accids[i]);
1498 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetExistingWhiteBlackMembersResp& response) {
1499 auto c_response = response.ToCParam();
1500 c_response.user_data = user_data;
1501 c_callback(&c_response);
1502 };
1503 }
1505 auto cb_holder = new GetExistingWhiteBlackMembersCallback(cb);
1507 param.user_data = cb_holder;
1508 param.cb = [](const NIMQChatChannelGetExistingWhiteBlackMembersResp* resp) {
1509 InvokeCallback<GetExistingWhiteBlackMembersCallback, NIMQChatChannelGetExistingWhiteBlackMembersResp>(resp);
1510 };
1511 param.server_id = server_id;
1512 param.channel_id = channel_id;
1513 param.type = type;
1514 accids_vec.clear();
1515 for (auto&& accid : accids)
1516 accids_vec.push_back(const_cast<char*>(accid.c_str()));
1517 param.accids_count = accids_vec.size();
1518 param.accids = accids_vec.data();
1519 return param;
1520 }
1521
1522protected:
1523 mutable std::vector<char*> accids_vec;
1524};
1525
1531 uint64_t server_id{0};
1533 std::string keyword{""};
1535 uint64_t start_time{0};
1537 uint64_t end_time{0};
1543 uint32_t limit{100};
1545 std::string cursor{""};
1548 server_id = c_param.server_id;
1549 keyword = c_param.keyword ? c_param.keyword : "";
1550 start_time = c_param.start_time;
1551 end_time = c_param.end_time;
1552 order = c_param.order;
1553 sort = c_param.sort;
1554 limit = c_param.limit;
1555 cursor = c_param.cursor ? c_param.cursor : "";
1556 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelSearchPageResp& response) {
1557 auto c_response = response.ToCParam();
1558 c_response.user_data = user_data;
1559 c_callback(&c_response);
1560 };
1561 }
1563 auto cb_holder = new ChannelSearchPageCallback(cb);
1565 param.user_data = cb_holder;
1566 param.cb = [](const NIMQChatChannelSearchPageResp* resp) {
1567 InvokeCallback<ChannelSearchPageCallback, NIMQChatChannelSearchPageResp>(resp);
1568 };
1569 param.server_id = server_id;
1570 param.keyword = const_cast<char*>(keyword.c_str());
1571 param.start_time = start_time;
1572 param.end_time = end_time;
1573 param.order = order;
1574 param.sort = sort;
1575 param.limit = limit;
1576 param.cursor = const_cast<char*>(cursor.c_str());
1577 return param;
1578 }
1579};
1580
1586 uint64_t server_id{0};
1588 uint64_t channel_id{0};
1590 std::string keyword{""};
1592 uint32_t limit{100};
1595 server_id = c_param.server_id;
1596 channel_id = c_param.channel_id;
1597 keyword = c_param.keyword;
1598 limit = c_param.limit;
1599 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelMemberSearchResp& response) {
1600 auto c_response = response.ToCParam();
1601 c_response.user_data = user_data;
1602 c_callback(&c_response);
1603 };
1604 }
1606 auto cb_holder = new ChannelMemberSearchCallback(cb);
1608 param.user_data = cb_holder;
1609 param.cb = [](const NIMQChatChannelMemberSearchResp* resp) {
1610 InvokeCallback<ChannelMemberSearchCallback, NIMQChatChannelMemberSearchResp>(resp);
1611 };
1612 param.server_id = server_id;
1613 param.channel_id = channel_id;
1614 param.keyword = const_cast<char*>(keyword.c_str());
1615 param.limit = limit;
1616 return param;
1617 }
1618};
1619
1625 uint64_t server_id{0};
1627 std::string name{""};
1629 std::string custom{""};
1634 server_id = c_param.server_id;
1635 name = c_param.name;
1636 custom = c_param.custom;
1637 view_mode = c_param.view_mode;
1638 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryCreateResp& response) {
1639 auto c_response = response.ToCParam();
1640 c_response.user_data = user_data;
1641 c_callback(&c_response);
1642 };
1643 }
1645 auto cb_holder = new ChannelCategoryCreateCallback(cb);
1647 param.user_data = cb_holder;
1648 param.cb = [](const NIMQChatChannelCategoryCreateResp* resp) {
1649 InvokeCallback<ChannelCategoryCreateCallback, NIMQChatChannelCategoryCreateResp>(resp);
1650 };
1651 param.server_id = server_id;
1652 param.name = const_cast<char*>(name.c_str());
1653 param.custom = const_cast<char*>(custom.c_str());
1654 param.view_mode = view_mode;
1655 return param;
1656 }
1657};
1658
1664 uint64_t category_id{0};
1667 category_id = c_param.category_id;
1668 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryRemoveResp& response) {
1669 auto c_response = response.ToCParam();
1670 c_response.user_data = user_data;
1671 c_callback(&c_response);
1672 };
1673 }
1675 auto cb_holder = new ChannelCategoryRemoveCallback(cb);
1677 param.user_data = cb_holder;
1678 param.cb = [](const NIMQChatChannelCategoryRemoveResp* resp) {
1679 InvokeCallback<ChannelCategoryRemoveCallback, NIMQChatChannelCategoryRemoveResp>(resp);
1680 };
1681 param.category_id = category_id;
1682 return param;
1683 }
1684};
1685
1691 uint64_t category_id{0};
1693 std::string name{""};
1695 std::string custom{""};
1700 category_id = c_param.category_id;
1701 name = c_param.name;
1702 custom = c_param.custom;
1703 view_mode = c_param.view_mode;
1704 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryUpdateResp& response) {
1705 auto c_response = response.ToCParam();
1706 c_response.user_data = user_data;
1707 c_callback(&c_response);
1708 };
1709 }
1711 auto cb_holder = new ChannelCategoryUpdateCallback(cb);
1713 param.user_data = cb_holder;
1714 param.cb = [](const NIMQChatChannelCategoryUpdateResp* resp) {
1715 InvokeCallback<ChannelCategoryUpdateCallback, NIMQChatChannelCategoryUpdateResp>(resp);
1716 };
1717 param.category_id = category_id;
1718 param.name = const_cast<char*>(name.c_str());
1719 param.custom = const_cast<char*>(custom.c_str());
1720 param.view_mode = view_mode;
1721 return param;
1722 }
1723};
1724
1730 std::vector<uint64_t> category_ids;
1733 for (size_t i = 0; i < c_param.category_ids_count; i++)
1734 category_ids.push_back(c_param.category_ids[i]);
1735 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetCategoriesByIDResp& 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 ChannelGetCategoriesByIDCallback(cb);
1744 param.user_data = cb_holder;
1745 param.cb = [](const NIMQChatChannelGetCategoriesByIDResp* resp) {
1746 InvokeCallback<ChannelGetCategoriesByIDCallback, NIMQChatChannelGetCategoriesByIDResp>(resp);
1747 };
1748 param.category_ids = const_cast<uint64_t*>(category_ids.data());
1749 param.category_ids_count = category_ids.size();
1750 return param;
1751 }
1752};
1753
1759 uint64_t server_id{0};
1761 uint64_t timestamp{0};
1763 uint32_t limit{100};
1766 server_id = c_param.server_id;
1767 timestamp = c_param.timestamp;
1768 limit = c_param.limit;
1769 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetCategoriesPageResp& response) {
1770 auto c_response = response.ToCParam();
1771 c_response.user_data = user_data;
1772 c_callback(&c_response);
1773 };
1774 }
1776 auto cb_holder = new ChannelGetCategoriesPageCallback(cb);
1778 param.user_data = cb_holder;
1779 param.cb = [](const NIMQChatChannelGetCategoriesPageResp* resp) {
1780 InvokeCallback<ChannelGetCategoriesPageCallback, NIMQChatChannelGetCategoriesPageResp>(resp);
1781 };
1782 param.server_id = server_id;
1783 param.timestamp = timestamp;
1784 param.limit = limit;
1785 return param;
1786 }
1787};
1788
1794 uint64_t server_id{0};
1796 uint64_t category_id{0};
1798 uint64_t timestamp{0};
1800 uint32_t limit{100};
1803 server_id = c_param.server_id;
1804 category_id = c_param.category_id;
1805 timestamp = c_param.timestamp;
1806 limit = c_param.limit;
1807 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetCategoryChannelsPageResp& response) {
1808 auto c_response = response.ToCParam();
1809 c_response.user_data = user_data;
1810 c_callback(&c_response);
1811 };
1812 }
1814 auto cb_holder = new ChannelGetCategoryChannelsPageCallback(cb);
1816 param.user_data = cb_holder;
1817 param.cb = [](const NIMQChatChannelGetCategoryChannelsPageResp* resp) {
1818 InvokeCallback<ChannelGetCategoryChannelsPageCallback, NIMQChatChannelGetCategoryChannelsPageResp>(resp);
1819 };
1820 param.server_id = server_id;
1821 param.category_id = category_id;
1822 param.timestamp = timestamp;
1823 param.limit = limit;
1824 return param;
1825 }
1826};
1827
1833 uint64_t server_id{0};
1835 uint64_t category_id{0};
1837 uint64_t role_id{0};
1844 server_id = c_param.server_id;
1845 category_id = c_param.category_id;
1846 role_id = c_param.role_id;
1847 type = c_param.type;
1848 ope_type = c_param.ope_type;
1849 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryUpdateWhiteBlackRoleResp& response) {
1850 auto c_response = response.ToCParam();
1851 c_response.user_data = user_data;
1852 c_callback(&c_response);
1853 };
1854 }
1856 auto cb_holder = new ChannelCategoryUpdateWhiteBlackRoleCallback(cb);
1858 param.user_data = cb_holder;
1859 param.cb = [](const NIMQChatChannelCategoryUpdateWhiteBlackRoleResp* resp) {
1860 InvokeCallback<ChannelCategoryUpdateWhiteBlackRoleCallback, NIMQChatChannelCategoryUpdateWhiteBlackRoleResp>(resp);
1861 };
1862 param.server_id = server_id;
1863 param.category_id = category_id;
1864 param.role_id = role_id;
1865 param.type = type;
1866 param.ope_type = ope_type;
1867 return param;
1868 }
1869};
1870
1876 uint64_t server_id{0};
1878 uint64_t category_id{0};
1882 uint64_t timestamp{0};
1884 uint32_t limit{100};
1887 server_id = c_param.server_id;
1888 category_id = c_param.category_id;
1889 type = c_param.type;
1890 timestamp = c_param.timestamp;
1891 limit = c_param.limit;
1892 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryGetWhiteBlackRolesPageResp& response) {
1893 auto c_response = response.ToCParam();
1894 c_response.user_data = user_data;
1895 c_callback(&c_response);
1896 };
1897 }
1899 auto cb_holder = new ChannelCategoryGetWhiteBlackRolesPageCallback(cb);
1901 param.user_data = cb_holder;
1903 InvokeCallback<ChannelCategoryGetWhiteBlackRolesPageCallback, NIMQChatChannelCategoryGetWhiteBlackRolesPageResp>(resp);
1904 };
1905 param.server_id = server_id;
1906 param.category_id = category_id;
1907 param.type = type;
1908 param.timestamp = timestamp;
1909 param.limit = limit;
1910 return param;
1911 }
1912};
1913
1919 uint64_t server_id{0};
1921 uint64_t category_id{0};
1925 std::vector<uint64_t> role_ids;
1928 server_id = c_param.server_id;
1929 category_id = c_param.category_id;
1930 type = c_param.type;
1931 for (size_t i = 0; i < c_param.role_ids_count; i++)
1932 role_ids.push_back(c_param.role_ids[i]);
1933 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryGetExistingWhiteBlackRolesResp& response) {
1934 auto c_response = response.ToCParam();
1935 c_response.user_data = user_data;
1936 c_callback(&c_response);
1937 };
1938 }
1942 param.user_data = cb_holder;
1944 InvokeCallback<ChannelCategoryGetExistingWhiteBlackRolesCallback, NIMQChatChannelCategoryGetExistingWhiteBlackRolesResp>(resp);
1945 };
1946 param.server_id = server_id;
1947 param.category_id = category_id;
1948 param.type = type;
1949 param.role_ids = const_cast<uint64_t*>(role_ids.data());
1950 param.role_ids_count = role_ids.size();
1951 return param;
1952 }
1953};
1954
1960 uint64_t server_id{0};
1962 uint64_t category_id{0};
1964 std::vector<std::string> accids;
1971 server_id = c_param.server_id;
1972 category_id = c_param.category_id;
1973 for (size_t i = 0; i < c_param.accids_count; i++)
1974 accids.push_back(c_param.accids[i]);
1975 type = c_param.type;
1976 ope_type = c_param.ope_type;
1977 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryUpdateWhiteBlackMembersResp& response) {
1978 auto c_response = response.ToCParam();
1979 c_response.user_data = user_data;
1980 c_callback(&c_response);
1981 };
1982 }
1984 auto cb_holder = new ChannelCategoryUpdateWhiteBlackMembersCallback(cb);
1986 param.user_data = cb_holder;
1988 InvokeCallback<ChannelCategoryUpdateWhiteBlackMembersCallback, NIMQChatChannelCategoryUpdateWhiteBlackMembersResp>(resp);
1989 };
1990 vec_accids.clear();
1991 for (auto& accid : accids)
1992 vec_accids.push_back(const_cast<char*>(accid.c_str()));
1993 param.accids = const_cast<char**>(vec_accids.data());
1994 param.accids_count = vec_accids.size();
1995 param.server_id = server_id;
1996 param.category_id = category_id;
1997 param.type = type;
1998 param.ope_type = ope_type;
1999 return param;
2000 }
2001
2002protected:
2003 mutable std::vector<char*> vec_accids;
2004};
2005
2011 uint64_t server_id{0};
2013 uint64_t category_id{0};
2017 uint64_t timestamp{0};
2019 uint32_t limit{100};
2022 server_id = c_param.server_id;
2023 category_id = c_param.category_id;
2024 type = c_param.type;
2025 timestamp = c_param.timestamp;
2026 limit = c_param.limit;
2027 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryGetWhiteBlackMembersPageResp& response) {
2028 auto c_response = response.ToCParam();
2029 c_response.user_data = user_data;
2030 c_callback(&c_response);
2031 };
2032 }
2034 auto cb_holder = new ChannelCategoryGetWhiteBlackMembersPageCallback(cb);
2036 param.user_data = cb_holder;
2038 InvokeCallback<ChannelCategoryGetWhiteBlackMembersPageCallback, NIMQChatChannelCategoryGetWhiteBlackMembersPageResp>(resp);
2039 };
2040 param.server_id = server_id;
2041 param.category_id = category_id;
2042 param.type = type;
2043 param.timestamp = timestamp;
2044 param.limit = limit;
2045 return param;
2046 }
2047};
2048
2054 uint64_t server_id{0};
2056 uint64_t category_id{0};
2060 std::vector<std::string> accids;
2063 server_id = c_param.server_id;
2064 category_id = c_param.category_id;
2065 type = c_param.type;
2066 for (size_t i = 0; i < c_param.accids_count; i++)
2067 accids.push_back(c_param.accids[i]);
2068 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelCategoryGetExistingWhiteBlackMembersResp& response) {
2069 auto c_response = response.ToCParam();
2070 c_response.user_data = user_data;
2071 c_callback(&c_response);
2072 };
2073 }
2077 param.user_data = cb_holder;
2078 param.cb = [](const NIMQChatChannelCategoryGetWhiteBlackMembersResp* resp) {
2079 InvokeCallback<ChannelCategoryGetExistingWhiteBlackMembersCallback, NIMQChatChannelCategoryGetWhiteBlackMembersResp>(resp);
2080 };
2081 vec_accids.clear();
2082 for (auto& accid : accids)
2083 vec_accids.push_back(const_cast<char*>(accid.c_str()));
2084 param.accids = const_cast<char**>(vec_accids.data());
2085 param.accids_count = vec_accids.size();
2086 param.server_id = server_id;
2087 param.category_id = category_id;
2088 param.type = type;
2089 return param;
2090 }
2091
2092protected:
2093 mutable std::vector<char*> vec_accids;
2094};
2095
2101 uint64_t server_id{0};
2103 uint64_t channel_id{0};
2108 server_id = c_param.server_id;
2109 channel_id = c_param.channel_id;
2110 rtc_info = c_param.rtc_info;
2111 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelUpdateRTCInfoResp& response) {
2112 auto c_response = response.ToCParam();
2113 c_response.user_data = user_data;
2114 c_callback(&c_response);
2115 };
2116 }
2118 auto cb_holder = new ChannelUpdateRTCInfoCallback(cb);
2120 param.user_data = cb_holder;
2121 param.cb = [](const NIMQChatChannelUpdateRTCInfoResp* resp) {
2122 InvokeCallback<ChannelUpdateRTCInfoCallback, NIMQChatChannelUpdateRTCInfoResp>(resp);
2123 };
2124 param.server_id = server_id;
2125 param.channel_id = channel_id;
2126 param.rtc_info = rtc_info.ToCParam();
2127 return param;
2128 }
2129};
2130
2136 uint64_t server_id{0};
2138 uint64_t channel_id{0};
2141 server_id = c_param.server_id;
2142 channel_id = c_param.channel_id;
2143 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetRTCInfoResp& response) {
2144 auto c_response = response.ToCParam();
2145 c_response.user_data = user_data;
2146 c_callback(&c_response);
2147 };
2148 }
2150 auto cb_holder = new ChannelGetRTCInfoCallback(cb);
2152 param.user_data = cb_holder;
2153 param.cb = [](const NIMQChatChannelGetRTCInfoResp* resp) {
2154 InvokeCallback<ChannelGetRTCInfoCallback, NIMQChatChannelGetRTCInfoResp>(resp);
2155 };
2156 param.server_id = server_id;
2157 param.channel_id = channel_id;
2158 return param;
2159 }
2160};
2161
2167 uint64_t server_id{0};
2169 uint64_t channel_id{0};
2172 server_id = c_param.server_id;
2173 channel_id = c_param.channel_id;
2174 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelGetRTCOnlineMembersResp& response) {
2175 auto c_response = response.ToCParam();
2176 c_response.user_data = user_data;
2177 c_callback(&c_response);
2178 };
2179 }
2181 auto cb_holder = new ChannelGetRTCOnlineMembersCallback(cb);
2183 param.user_data = cb_holder;
2184 param.cb = [](const NIMQChatChannelGetRTCOnlineMembersResp* resp) {
2185 InvokeCallback<ChannelGetRTCOnlineMembersCallback, NIMQChatChannelGetRTCOnlineMembersResp>(resp);
2186 };
2187 param.server_id = server_id;
2188 param.channel_id = channel_id;
2189 return param;
2190 }
2191};
2192
2200 std::vector<NIMQChatChannelIDInfo> id_infos{};
2203 ope_type = c_param.ope_type;
2204 sub_type = c_param.sub_type;
2205 for (size_t i = 0; i < c_param.id_infos_count; i++) {
2206 id_infos.push_back(c_param.id_infos[i]);
2207 }
2208 cb = [c_callback = c_param.cb, user_data = c_param.user_data](const QChatChannelSubscribeAsVisitorResp& response) {
2209 auto c_response = response.ToCParam();
2210 c_response.user_data = user_data;
2211 c_callback(&c_response);
2212 };
2213 }
2215 auto cb_holder = new ChannelSubscribeAsVisitorCallback(cb);
2217 param.user_data = cb_holder;
2218 param.cb = [](const NIMQChatChannelSubscribeAsVisitorResp* resp) {
2219 InvokeCallback<ChannelSubscribeAsVisitorCallback, NIMQChatChannelSubscribeAsVisitorResp>(resp);
2220 };
2221 param.ope_type = ope_type;
2222 param.sub_type = sub_type;
2223 param.id_infos_count = id_infos.size();
2224 param.id_infos = const_cast<NIMQChatChannelIDInfo*>(id_infos.data());
2225 return param;
2226 }
2227 // 以下字段为内部使用
2229};
2230
2231} // namespace nim
2232
2233#endif // __NIM_QCHAT_CHANNEL_CPP_DEF_H__
namespace nim
std::function< void(const QChatChannelGetChannelsPageResp &)> GetChannelsPageCallback
分页查询频道列表回调
Definition: nim_qchat_channel_cpp_def.h:865
std::function< void(const QChatChannelCategoryUpdateWhiteBlackRoleResp &)> ChannelCategoryUpdateWhiteBlackRoleCallback
更新频道分组白/黑名单身份组
Definition: nim_qchat_channel_cpp_def.h:901
std::function< void(const QChatChannelUpdateResp &)> ChannelUpdateCallback
更新频道回调
Definition: nim_qchat_channel_cpp_def.h:859
std::function< void(const QChatChannelGetExistingWhiteBlackMembersResp &)> GetExistingWhiteBlackMembersCallback
查询已存在白/黑名单成员回调
Definition: nim_qchat_channel_cpp_def.h:883
std::function< void(const QChatChannelCategoryUpdateResp &)> ChannelCategoryUpdateCallback
更新频道分组回调
Definition: nim_qchat_channel_cpp_def.h:893
std::function< void(const QChatChannelCategoryGetWhiteBlackRolesPageResp &)> ChannelCategoryGetWhiteBlackRolesPageCallback
分页查询频道分组白/黑名单身份组
Definition: nim_qchat_channel_cpp_def.h:903
std::function< void(const QChatChannelUnreadResp &)> ChannelUnreadCallback
未读信息回调
Definition: nim_qchat_channel_cpp_def.h:853
std::function< void(const QChatChannelGetMembersPageResp &)> ChannelGetMembersPageCallback
分页查询成员列表回调
Definition: nim_qchat_channel_cpp_def.h:867
std::function< void(const QChatChannelCategoryGetWhiteBlackMembersPageResp &)> ChannelCategoryGetWhiteBlackMembersPageCallback
分页查询频道分组白/黑名单成员
Definition: nim_qchat_channel_cpp_def.h:909
std::function< void(const QChatChannelGetCategoryChannelsPageResp &)> ChannelGetCategoryChannelsPageCallback
分页查询指定频道分组中的频道
Definition: nim_qchat_channel_cpp_def.h:899
std::function< void(const QChatChannelCategoryGetExistingWhiteBlackMembersResp &)> ChannelCategoryGetExistingWhiteBlackMembersCallback
批量查询频道分组白/黑名单成员
Definition: nim_qchat_channel_cpp_def.h:911
std::function< void(const QChatChannelCategoryGetExistingWhiteBlackRolesResp &)> ChannelCategoryGetExistingWhiteBlackRolesCallback
批量查询频道分组白/黑名单身份组
Definition: nim_qchat_channel_cpp_def.h:905
std::function< void(const QChatChannelCategoryCreateResp &)> ChannelCategoryCreateCallback
创建频道分组回调
Definition: nim_qchat_channel_cpp_def.h:889
std::function< void(const QChatChannelUpdateCategoryInfoResp &)> ChannelUpdateCategoryInfoCallback
更新频道的分组信息回调
Definition: nim_qchat_channel_cpp_def.h:861
std::function< void(const QChatChannelMemberSearchResp &)> ChannelMemberSearchCallback
搜索频道成员回调
Definition: nim_qchat_channel_cpp_def.h:887
std::function< void(const QChatChannelGetExistingWhiteBlackRolesResp &)> GetExistingWhiteBlackRolesCallback
查询已存在白/黑名单身份组回调
Definition: nim_qchat_channel_cpp_def.h:881
std::function< void(const QChatChannelDeleteResp &)> ChannelDeleteCallback
删除频道回调
Definition: nim_qchat_channel_cpp_def.h:857
std::function< void(const QChatChannelGetCategoriesByIDResp &)> ChannelGetCategoriesByIDCallback
根据频道分组ID查询频道分组列表回调
Definition: nim_qchat_channel_cpp_def.h:895
QChatBaseResp QChatChannelUpdateWhiteBlackMembersResp
Definition: nim_qchat_channel_cpp_def.h:375
std::function< void(const QChatChannelGetRTCInfoResp &)> ChannelGetRTCInfoCallback
查询RTC频道参数回调
Definition: nim_qchat_channel_cpp_def.h:915
std::function< void(const QChatChannelUpdateWhiteBlackRoleResp &)> UpdateWhiteBlackRoleCallback
更新白/黑名单身份组回调
Definition: nim_qchat_channel_cpp_def.h:873
std::function< void(const QChatChannelGetChannelsResp &)> GetChannelsCallback
查询频道列表回调
Definition: nim_qchat_channel_cpp_def.h:863
GetChannelsPageCallback ChannelSearchPageCallback
搜索频道分页回调
Definition: nim_qchat_channel_cpp_def.h:885
std::function< void(const QChatChannelSubscribeAsVisitorResp &)> ChannelSubscribeAsVisitorCallback
以游客身份订阅频道回调
Definition: nim_qchat_channel_cpp_def.h:919
std::function< void(const QChatChannelCategoryRemoveResp &)> ChannelCategoryRemoveCallback
删除频道分组回调
Definition: nim_qchat_channel_cpp_def.h:891
QChatBaseResp QChatChannelUpdateWhiteBlackRoleResp
Definition: nim_qchat_channel_cpp_def.h:374
std::function< void(const QChatChannelCreateResp &)> ChannelCreateCallback
创建频道回调
Definition: nim_qchat_channel_cpp_def.h:855
std::function< void(const QChatChannelGetWhiteBlackRolesPageResp &)> GetWhiteBlackRolesPageCallback
分页查询白/黑名单身份组回调
Definition: nim_qchat_channel_cpp_def.h:877
std::function< void(const QChatChannelGetRTCOnlineMembersResp &)> ChannelGetRTCOnlineMembersCallback
查询RTC频道在线成员回调
Definition: nim_qchat_channel_cpp_def.h:917
std::function< void(const QChatChannelGetCategoriesPageResp &)> ChannelGetCategoriesPageCallback
分页查询频道分组回调
Definition: nim_qchat_channel_cpp_def.h:897
std::function< void(const QChatChannelUpdateRTCInfoResp &)> ChannelUpdateRTCInfoCallback
修改RTC频道参数回调
Definition: nim_qchat_channel_cpp_def.h:913
std::function< void(const QChatChannelQueryUnreadInfoResp &)> ChannelQueryUnreadInfoCallback
查询未读消息数回调
Definition: nim_qchat_channel_cpp_def.h:869
std::function< void(const QChatChannelSubscribeResp &)> ChannelSubscribeCallback
订阅回调
Definition: nim_qchat_channel_cpp_def.h:871
std::function< void(const QChatChannelCategoryUpdateWhiteBlackMembersResp &)> ChannelCategoryUpdateWhiteBlackMembersCallback
更新频道分组白/黑名单成员
Definition: nim_qchat_channel_cpp_def.h:907
std::function< void(const QChatChannelGetWhiteBlackMembersPageResp &)> GetWhiteBlackMembersPageCallback
分页查询白/黑名单成员回调
Definition: nim_qchat_channel_cpp_def.h:879
std::function< void(const QChatChannelUpdateWhiteBlackMembersResp &)> UpdateWhiteBlackMembersCallback
更新白/黑名单成员回调
Definition: nim_qchat_channel_cpp_def.h:875
NIMQChatChannelWhiteBlackOpeType
Definition: nim_qchat_channel_def.h:52
@ kNIMQChatChannelWhiteBlackOpeTypeAdd
Definition: nim_qchat_channel_def.h:53
NIMQChatChannelType
圈组频道类型
Definition: nim_qchat_channel_def.h:24
@ kNIMQChatChannelTypeText
普通文本频道
Definition: nim_qchat_channel_def.h:26
NIMQChatChannelWhiteBlackType
Definition: nim_qchat_channel_def.h:46
@ kNIMQChatChannelBlack
Definition: nim_qchat_channel_def.h:48
NIMQChatChannelViewMode
Definition: nim_qchat_public_def.h:22
@ kNIMQChatChannelViewModePublic
公开模式
Definition: nim_qchat_public_def.h:24
NIMQChatChannelSyncMode
Definition: nim_qchat_public_def.h:40
@ kNIMQChatChannelSyncModeSync
与频道分组同步
Definition: nim_qchat_public_def.h:44
NIMQChatChannelVisitorMode
Definition: nim_qchat_public_def.h:30
@ kNIMQChatChannelVisitorModeFollow
跟随模式, 频道公开游客可见, 频道私密游客不可见
Definition: nim_qchat_public_def.h:36
NIMQChatSubscribeType
Definition: nim_qchat_public_def.h:56
@ kNIMQChatSubscribeTypeMsg
订阅某个channel的【消息】/【通知】
Definition: nim_qchat_public_def.h:60
@ kNIMQChatSubscribeTypeVisitorMsg
以游客身份订阅某个channel的【消息】/【通知】
Definition: nim_qchat_public_def.h:70
NIMQChatSearchOrder
搜索排序顺序
Definition: nim_qchat_public_def.h:109
@ kNIMQChatSearchOrderAsc
按时间正序
Definition: nim_qchat_public_def.h:111
NIMQChatChannelSearchSort
频道搜索排序规则
Definition: nim_qchat_public_def.h:127
@ kNIMQChatChannelSearchSortCreateTime
创建时间排序
Definition: nim_qchat_public_def.h:131
NIMQChatSubscribeOpeType
Definition: nim_qchat_public_def.h:48
@ kNIMQChatSubscribeOpeTypeSubscribe
订阅
Definition: nim_qchat_public_def.h:50
#define NIM_QCHAT_SDK_CPPWRAPPER_DLL_API
Definition: nim_qchat_sdk_cpp_wrapper.h:38
@ kNIMResSuccess
没有错误,一切正常
Definition: public_defines.h:26
Definition: nim_qchat_channel_def.h:795
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:799
char * custom
自定义字段
Definition: nim_qchat_channel_def.h:805
char * name
名称
Definition: nim_qchat_channel_def.h:803
nim_qchat_channel_create_category_cb_func cb
创建频道分组回调
Definition: nim_qchat_channel_def.h:797
uint64_t server_id
服务器 id
Definition: nim_qchat_channel_def.h:801
NIMQChatChannelViewMode view_mode
查看模式
Definition: nim_qchat_channel_def.h:807
Definition: nim_qchat_channel_def.h:301
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:303
NIMQChatChannelCategoryInfo category_info
频道分组信息
Definition: nim_qchat_channel_def.h:307
Definition: nim_qchat_channel_def.h:971
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:981
char ** accids
成员ID列表
Definition: nim_qchat_channel_def.h:983
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:975
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:979
nim_qchat_channel_get_category_white_black_members_cb_func cb
获取频道分组白/黑名单成员回调
Definition: nim_qchat_channel_def.h:973
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:977
size_t accids_count
成员ID列表长度
Definition: nim_qchat_channel_def.h:985
Definition: nim_qchat_channel_def.h:915
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:921
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:923
size_t role_ids_count
身份组ID列表长度
Definition: nim_qchat_channel_def.h:929
nim_qchat_channel_get_category_white_black_roles_cb_func cb
获取频道分组白/黑名单身份组回调
Definition: nim_qchat_channel_def.h:917
uint64_t * role_ids
身份组ID列表
Definition: nim_qchat_channel_def.h:927
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:925
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:919
Definition: nim_qchat_channel_def.h:363
NIMQChatRoleInfo * roles
身份组列表
Definition: nim_qchat_channel_def.h:369
size_t role_count
身份组数量
Definition: nim_qchat_channel_def.h:371
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:365
Definition: nim_qchat_channel_def.h:953
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:959
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:961
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:963
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:965
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:967
nim_qchat_channel_get_category_white_black_members_page_cb_func cb
获取频道分组白/黑名单成员回调
Definition: nim_qchat_channel_def.h:955
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:957
Definition: nim_qchat_channel_def.h:378
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:384
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:380
NIMQChatMemberInfo * members
成员列表
Definition: nim_qchat_channel_def.h:386
size_t member_count
成员数量
Definition: nim_qchat_channel_def.h:388
Definition: nim_qchat_channel_def.h:392
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:394
NIMQChatMemberInfo * members
成员列表
Definition: nim_qchat_channel_def.h:398
size_t member_count
成员数量
Definition: nim_qchat_channel_def.h:400
Definition: nim_qchat_channel_def.h:897
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:903
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:911
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:901
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:909
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:905
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:907
nim_qchat_channel_get_category_white_black_roles_page_cb_func cb
获取频道分组白/黑名单身份组回调
Definition: nim_qchat_channel_def.h:899
Definition: nim_qchat_channel_def.h:349
size_t role_count
身份组数量
Definition: nim_qchat_channel_def.h:359
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:355
NIMQChatRoleInfo * roles
身份组列表
Definition: nim_qchat_channel_def.h:357
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:351
Definition: nim_qchat_channel_def.h:120
uint32_t channel_number
频道数量
Definition: nim_qchat_channel_def.h:140
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:124
uint64_t update_time
更新时间
Definition: nim_qchat_channel_def.h:138
NIMQChatChannelViewMode view_mode
查看模式
Definition: nim_qchat_channel_def.h:132
char * custom
自定义字段
Definition: nim_qchat_channel_def.h:128
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:122
bool valid_flag
有效标记,false:无效 true:有效
Definition: nim_qchat_channel_def.h:134
char * owner
拥有者
Definition: nim_qchat_channel_def.h:130
char * name
名称
Definition: nim_qchat_channel_def.h:126
uint64_t create_time
创建时间
Definition: nim_qchat_channel_def.h:136
Definition: nim_qchat_channel_def.h:811
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:815
uint64_t category_id
分组 id
Definition: nim_qchat_channel_def.h:817
nim_qchat_channel_remove_category_cb_func cb
删除频道分组回调
Definition: nim_qchat_channel_def.h:813
Definition: nim_qchat_channel_def.h:821
char * custom
自定义字段
Definition: nim_qchat_channel_def.h:831
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:825
char * name
名称
Definition: nim_qchat_channel_def.h:829
nim_qchat_channel_update_category_cb_func cb
更新频道分组回调
Definition: nim_qchat_channel_def.h:823
uint64_t category_id
分组 id
Definition: nim_qchat_channel_def.h:827
NIMQChatChannelViewMode view_mode
查看模式
Definition: nim_qchat_channel_def.h:833
Definition: nim_qchat_channel_def.h:933
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:941
size_t accids_count
成员ID列表长度
Definition: nim_qchat_channel_def.h:945
char ** accids
成员ID列表
Definition: nim_qchat_channel_def.h:943
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:947
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:937
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition: nim_qchat_channel_def.h:949
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:939
nim_qchat_channel_update_category_white_black_members_cb_func cb
更新频道分组白/黑名单成员回调
Definition: nim_qchat_channel_def.h:935
Definition: nim_qchat_channel_def.h:879
nim_qchat_channel_update_category_white_black_role_cb_func cb
更新频道分组白/黑名单身份组回调
Definition: nim_qchat_channel_def.h:881
uint64_t role_id
身份组ID
Definition: nim_qchat_channel_def.h:889
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition: nim_qchat_channel_def.h:893
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:883
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:891
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:885
uint64_t category_id
分组ID
Definition: nim_qchat_channel_def.h:887
Definition: nim_qchat_channel_def.h:518
nim_qchat_channel_create_cb_func cb
创建频道异步回调
Definition: nim_qchat_channel_def.h:520
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_channel_def.h:526
NIMQChatChannelInfo channel_info
频道信息
Definition: nim_qchat_channel_def.h:524
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:522
Definition: nim_qchat_channel_def.h:144
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:146
NIMQChatChannelInfo channel_info
频道信息
Definition: nim_qchat_channel_def.h:150
Definition: nim_qchat_channel_def.h:530
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:534
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:536
nim_qchat_channel_remove_cb_func cb
移除频道异步回调
Definition: nim_qchat_channel_def.h:532
Definition: nim_qchat_channel_def.h:837
size_t category_ids_count
分组ID列表长度
Definition: nim_qchat_channel_def.h:845
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:841
nim_qchat_channel_get_categories_cb_func cb
获取频道分组回调
Definition: nim_qchat_channel_def.h:839
uint64_t * category_ids
分组ID列表
Definition: nim_qchat_channel_def.h:843
Definition: nim_qchat_channel_def.h:317
size_t category_count
分组数量
Definition: nim_qchat_channel_def.h:325
NIMQChatChannelCategoryInfo * categories
分组列表
Definition: nim_qchat_channel_def.h:323
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:319
Definition: nim_qchat_channel_def.h:849
uint64_t server_id
服务器 id
Definition: nim_qchat_channel_def.h:855
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:859
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:853
nim_qchat_channel_get_categories_page_cb_func cb
分页获取频道分组回调
Definition: nim_qchat_channel_def.h:851
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:857
Definition: nim_qchat_channel_def.h:329
NIMQChatChannelCategoryInfo * categories
分组列表
Definition: nim_qchat_channel_def.h:337
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:331
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:335
size_t category_count
分组数量
Definition: nim_qchat_channel_def.h:339
Definition: nim_qchat_channel_def.h:863
uint64_t category_id
分组 id
Definition: nim_qchat_channel_def.h:871
uint64_t server_id
服务器 id
Definition: nim_qchat_channel_def.h:869
nim_qchat_channel_get_category_channels_page_cb_func cb
分页获取频道分组回调
Definition: nim_qchat_channel_def.h:865
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:873
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:875
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:867
Definition: nim_qchat_channel_def.h:588
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:592
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:598
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:596
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:594
nim_qchat_channel_get_channels_page_cb_func cb
查询频道列表异步回调
Definition: nim_qchat_channel_def.h:590
Definition: nim_qchat_channel_def.h:175
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:177
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:181
NIMQChatChannelInfo * channel_list
频道列表
Definition: nim_qchat_channel_def.h:185
size_t channel_list_count
频道列表数量
Definition: nim_qchat_channel_def.h:183
Definition: nim_qchat_channel_def.h:576
nim_qchat_channel_get_channels_cb_func cb
查询频道列表异步回调
Definition: nim_qchat_channel_def.h:578
size_t channel_ids_count
频道id列表长度
Definition: nim_qchat_channel_def.h:582
uint64_t * channel_ids
频道id列表
Definition: nim_qchat_channel_def.h:584
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:580
Definition: nim_qchat_channel_def.h:163
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:165
NIMQChatChannelInfo * channel_list
频道列表
Definition: nim_qchat_channel_def.h:171
size_t channel_list_count
频道列表数量
Definition: nim_qchat_channel_def.h:169
Definition: nim_qchat_channel_def.h:737
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:743
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:741
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:747
nim_qchat_channel_get_existing_white_black_members_cb_func cb
查询白/黑名单成员列表回调
Definition: nim_qchat_channel_def.h:739
char ** accids
accid列表
Definition: nim_qchat_channel_def.h:749
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:745
size_t accids_count
accid列表长度
Definition: nim_qchat_channel_def.h:751
Definition: nim_qchat_channel_def.h:274
NIMQChatMemberInfo * members
成员列表
Definition: nim_qchat_channel_def.h:280
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:276
size_t member_count
成员数量
Definition: nim_qchat_channel_def.h:282
Definition: nim_qchat_channel_def.h:719
uint64_t * role_ids
身份组id列表
Definition: nim_qchat_channel_def.h:731
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:725
nim_qchat_channel_get_existing_white_black_roles_cb_func cb
查询白/黑名单身份组列表回调
Definition: nim_qchat_channel_def.h:721
size_t role_ids_count
身份组id列表长度
Definition: nim_qchat_channel_def.h:733
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:727
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:723
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:729
Definition: nim_qchat_channel_def.h:262
NIMQChatRoleInfo * roles
身份组列表
Definition: nim_qchat_channel_def.h:268
size_t role_count
身份组数量
Definition: nim_qchat_channel_def.h:270
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:264
Definition: nim_qchat_channel_def.h:602
nim_qchat_channel_get_members_page_cb_func cb
查询成员列表异步回调
Definition: nim_qchat_channel_def.h:604
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:612
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:610
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:606
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:608
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:614
Definition: nim_qchat_channel_def.h:1003
nim_qchat_channel_get_rtc_info_cb_func cb
获取频道RTC信息回调
Definition: nim_qchat_channel_def.h:1005
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:1009
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:1007
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:1011
Definition: nim_qchat_channel_def.h:407
NIMQChatChannelRTCInfo rtc_info
RTC信息
Definition: nim_qchat_channel_def.h:413
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:409
Definition: nim_qchat_channel_def.h:1015
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:1023
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:1019
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:1021
nim_qchat_channel_get_rtc_online_members_cb_func cb
获取频道RTC在线成员回调
Definition: nim_qchat_channel_def.h:1017
Definition: nim_qchat_channel_def.h:417
NIMQChatMemberInfo * members
成员列表
Definition: nim_qchat_channel_def.h:423
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:419
size_t member_count
成员数量
Definition: nim_qchat_channel_def.h:425
Definition: nim_qchat_channel_def.h:701
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:705
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:709
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:713
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:715
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:707
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:711
nim_qchat_channel_get_white_black_members_page_cb_func cb
查询白/黑名单成员列表回调
Definition: nim_qchat_channel_def.h:703
Definition: nim_qchat_channel_def.h:248
NIMQChatMemberInfo * members
成员列表
Definition: nim_qchat_channel_def.h:256
size_t member_count
成员数量
Definition: nim_qchat_channel_def.h:258
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:254
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:250
Definition: nim_qchat_channel_def.h:683
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:697
uint64_t timestamp
时间戳
Definition: nim_qchat_channel_def.h:695
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:687
nim_qchat_channel_get_white_black_roles_page_cb_func cb
查询白/黑名单身份组列表回调
Definition: nim_qchat_channel_def.h:685
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:693
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:689
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:691
Definition: nim_qchat_channel_def.h:234
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:236
size_t role_count
身份组数量
Definition: nim_qchat_channel_def.h:244
NIMQChatRoleInfo * roles
身份组列表
Definition: nim_qchat_channel_def.h:242
NIMQChatPageInfo page_info
分页信息
Definition: nim_qchat_channel_def.h:240
Definition: nim_qchat_public_def.h:157
Definition: nim_qchat_channel_def.h:58
uint64_t category_id
频道分组ID
Definition: nim_qchat_channel_def.h:84
char * topic
主题
Definition: nim_qchat_channel_def.h:66
uint64_t create_time
创建时间
Definition: nim_qchat_channel_def.h:80
uint64_t reorder_weight
自定义排序权重值
Definition: nim_qchat_channel_def.h:88
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:78
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:86
NIMQChatChannelVisitorMode visitor_mode
游客访问模式
Definition: nim_qchat_channel_def.h:76
uint64_t server_id
server id
Definition: nim_qchat_channel_def.h:60
uint64_t update_time
更新时间
Definition: nim_qchat_channel_def.h:82
NIMQChatChannelType type
频道类型
Definition: nim_qchat_channel_def.h:70
Definition: nim_qchat_channel_def.h:779
uint64_t channel_id
频道 id
Definition: nim_qchat_channel_def.h:787
uint64_t server_id
服务器 id
Definition: nim_qchat_channel_def.h:785
nim_qchat_channel_member_search_cb_func cb
搜索异步回调
Definition: nim_qchat_channel_def.h:781
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:783
char * keyword
搜索内容
Definition: nim_qchat_channel_def.h:789
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:791
Definition: nim_qchat_channel_def.h:289
uint32_t res_code
操作结果, 参考 NIMResCode
Definition: nim_qchat_channel_def.h:291
NIMQChatMemberInfo * member_list
成员信息列表
Definition: nim_qchat_channel_def.h:297
size_t member_list_count
成员信息列表数量
Definition: nim_qchat_channel_def.h:295
Definition: nim_qchat_channel_def.h:618
NIMQChatChannelIDInfo * id_infos
ID 列表
Definition: nim_qchat_channel_def.h:626
size_t id_infos_count
ID 列表长度
Definition: nim_qchat_channel_def.h:624
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:622
nim_qchat_channel_query_unread_info_cb_func cb
查询未读消息数异步回调
Definition: nim_qchat_channel_def.h:620
Definition: nim_qchat_channel_def.h:192
NIMQChatUnreadInfo * unread_infos
Definition: nim_qchat_channel_def.h:193
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:196
size_t unread_info_count
Definition: nim_qchat_channel_def.h:194
Definition: nim_qchat_channel_def.h:92
char * scenario
音频应用场景
Definition: nim_qchat_channel_def.h:96
char * profile
音频属性
Definition: nim_qchat_channel_def.h:94
Definition: nim_qchat_channel_def.h:110
NIMQChatChannelRTCAudioInfo audio
音频配置
Definition: nim_qchat_channel_def.h:114
NIMQChatChannelRTCVideoInfo video
视频配置
Definition: nim_qchat_channel_def.h:116
uint32_t limit
在线人数限制
Definition: nim_qchat_channel_def.h:112
Definition: nim_qchat_channel_def.h:100
uint32_t fps
帧率
Definition: nim_qchat_channel_def.h:106
uint32_t width
分辨率宽
Definition: nim_qchat_channel_def.h:102
uint32_t height
分辨率高
Definition: nim_qchat_channel_def.h:104
Definition: nim_qchat_channel_def.h:512
nim_qchat_channel_unread_cb_func cb
Definition: nim_qchat_channel_def.h:513
Definition: nim_qchat_channel_def.h:755
char * cursor
查询游标, 查询的起始位置
Definition: nim_qchat_channel_def.h:775
nim_qchat_channel_search_page_cb_func cb
搜索异步回调
Definition: nim_qchat_channel_def.h:757
char * keyword
搜索内容
Definition: nim_qchat_channel_def.h:763
NIMQChatChannelSearchSort sort
排序规则
Definition: nim_qchat_channel_def.h:771
uint32_t limit
查询条数
Definition: nim_qchat_channel_def.h:773
uint64_t start_time
起始时间
Definition: nim_qchat_channel_def.h:765
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:759
NIMQChatSearchOrder order
排序顺序
Definition: nim_qchat_channel_def.h:769
uint64_t server_id
服务器 id, 若为空则表示在所有服务器下可见频道中搜索
Definition: nim_qchat_channel_def.h:761
uint64_t end_time
结束时间
Definition: nim_qchat_channel_def.h:767
Definition: nim_qchat_channel_def.h:1027
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:1031
NIMQChatSubscribeOpeType ope_type
操作类型
Definition: nim_qchat_channel_def.h:1033
size_t id_infos_count
ID 列表长度
Definition: nim_qchat_channel_def.h:1035
nim_qchat_channel_subscribe_as_visitor_cb_func cb
以游客身份订阅服务器异步回调
Definition: nim_qchat_channel_def.h:1029
NIMQChatChannelIDInfo * id_infos
ID 列表
Definition: nim_qchat_channel_def.h:1037
NIMQChatSubscribeType sub_type
Definition: nim_qchat_channel_def.h:1040
Definition: nim_qchat_channel_def.h:429
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:431
size_t failed_channels_count
失败列表数量
Definition: nim_qchat_channel_def.h:437
NIMQChatChannelIDInfo * failed_channels
失败列表
Definition: nim_qchat_channel_def.h:435
Definition: nim_qchat_channel_def.h:630
nim_qchat_channel_subscribe_cb_func cb
订阅频道信息回调函数
Definition: nim_qchat_channel_def.h:632
void * user_data
Definition: nim_qchat_channel_def.h:633
NIMQChatSubscribeOpeType ope_type
操作类型
Definition: nim_qchat_channel_def.h:635
size_t id_infos_count
ID 列表长度
Definition: nim_qchat_channel_def.h:639
NIMQChatSubscribeType sub_type
订阅类型
Definition: nim_qchat_channel_def.h:637
NIMQChatChannelIDInfo * id_infos
ID 列表
Definition: nim_qchat_channel_def.h:641
Definition: nim_qchat_channel_def.h:202
NIMQChatChannelIDInfo * failed_channels
失败列表
Definition: nim_qchat_channel_def.h:208
NIMQChatUnreadInfo * unread_infos
频道未读信息, 内部使用,未读相关变更关注RegUnreadCb回调
Definition: nim_qchat_channel_def.h:212
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_channel_def.h:204
size_t unread_infos_count
频道未读信息数量
Definition: nim_qchat_channel_def.h:214
size_t failed_channels_count
失败列表数量
Definition: nim_qchat_channel_def.h:210
Definition: nim_qchat_channel_def.h:218
size_t unread_infos_count
未读数信息数量
Definition: nim_qchat_channel_def.h:222
NIMQChatUnreadInfo * unread_infos
未读数信息
Definition: nim_qchat_channel_def.h:224
Definition: nim_qchat_channel_def.h:562
NIMQChatChannelSyncMode sync_mode
频道分组同步模式
Definition: nim_qchat_channel_def.h:572
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:566
uint64_t channel_id
频道 ID
Definition: nim_qchat_channel_def.h:568
uint64_t category_id
频道分组ID
Definition: nim_qchat_channel_def.h:570
nim_qchat_channel_update_category_info_cb_func cb
更新频道的分组信息异步回调
Definition: nim_qchat_channel_def.h:564
Definition: nim_qchat_channel_def.h:540
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_channel_def.h:558
char * custom
自定义扩展
Definition: nim_qchat_channel_def.h:552
nim_qchat_channel_update_cb_func cb
更新频道信息异步回调
Definition: nim_qchat_channel_def.h:542
char * name
频道名称
Definition: nim_qchat_channel_def.h:548
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:544
NIMQChatChannelVisitorMode visitor_mode
游客访问模式
Definition: nim_qchat_channel_def.h:556
char * topic
主题
Definition: nim_qchat_channel_def.h:550
uint64_t channel_id
频道 ID
Definition: nim_qchat_channel_def.h:546
NIMQChatChannelViewMode view_mode
查看权限
Definition: nim_qchat_channel_def.h:554
Definition: nim_qchat_channel_def.h:989
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:997
nim_qchat_channel_update_rtc_info_cb_func cb
更新频道RTC信息回调
Definition: nim_qchat_channel_def.h:991
NIMQChatChannelRTCInfo rtc_info
RTC信息
Definition: nim_qchat_channel_def.h:999
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:993
uint64_t server_id
服务器 ID
Definition: nim_qchat_channel_def.h:995
Definition: nim_qchat_channel_def.h:663
char ** accids
被踢人id列表
Definition: nim_qchat_channel_def.h:673
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:671
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:667
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition: nim_qchat_channel_def.h:679
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:677
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:669
size_t accids_count
被踢人id列表长度
Definition: nim_qchat_channel_def.h:675
nim_qchat_channel_update_white_black_members_cb_func cb
更新白/黑名单成员回调
Definition: nim_qchat_channel_def.h:665
Definition: nim_qchat_channel_def.h:645
uint64_t role_id
身份组id
Definition: nim_qchat_channel_def.h:655
void * user_data
自定义用户数据
Definition: nim_qchat_channel_def.h:649
nim_qchat_channel_update_white_black_role_cb_func cb
更新白/黑名单身份组回调
Definition: nim_qchat_channel_def.h:647
NIMQChatChannelWhiteBlackType type
白/黑名单类型
Definition: nim_qchat_channel_def.h:657
NIMQChatChannelWhiteBlackOpeType ope_type
操作类型
Definition: nim_qchat_channel_def.h:659
uint64_t server_id
服务器ID
Definition: nim_qchat_channel_def.h:651
uint64_t channel_id
频道ID
Definition: nim_qchat_channel_def.h:653
Definition: nim_qchat_member_def.h:21
Definition: nim_qchat_role_def.h:138
Definition: nim_qchat_public_def.h:214
Definition: nim_qchat_public_cpp_def.h:49
Definition: nim_qchat_public_cpp_def.h:62
Definition: nim_qchat_channel_cpp_def.h:1621
QChatChannelCategoryCreateParam(const NIMQChatChannelCategoryCreateParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1633
NIMQChatChannelCategoryCreateParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1644
Definition: nim_qchat_channel_cpp_def.h:542
QChatChannelCategoryCreateResp(const NIMQChatChannelCategoryCreateResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:548
NIMQChatChannelCategoryCreateResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:554
Definition: nim_qchat_channel_cpp_def.h:2050
QChatChannelCategoryGetExistingWhiteBlackMembersParam(const NIMQChatChannelCategoryGetExistingWhiteBlackMembersParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:2062
std::vector< char * > vec_accids
Definition: nim_qchat_channel_cpp_def.h:2093
NIMQChatChannelCategoryGetExistingWhiteBlackMembersParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:2074
std::vector< std::string > accids
成员ID列表
Definition: nim_qchat_channel_cpp_def.h:2060
Definition: nim_qchat_channel_cpp_def.h:745
NIMQChatChannelCategoryGetWhiteBlackMembersResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:759
QChatChannelCategoryGetExistingWhiteBlackMembersResp(const NIMQChatChannelCategoryGetWhiteBlackMembersResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:751
std::vector< NIMQChatMemberInfo > c_members
Definition: nim_qchat_channel_cpp_def.h:772
Definition: nim_qchat_channel_cpp_def.h:1915
std::vector< uint64_t > role_ids
身份组ID列表
Definition: nim_qchat_channel_cpp_def.h:1925
NIMQChatChannelCategoryGetExistingWhiteBlackRolesParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1939
QChatChannelCategoryGetExistingWhiteBlackRolesParam(const NIMQChatChannelCategoryGetExistingWhiteBlackRolesParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1927
Definition: nim_qchat_channel_cpp_def.h:676
std::vector< NIMQChatRoleInfo > c_roles
Definition: nim_qchat_channel_cpp_def.h:703
NIMQChatChannelCategoryGetExistingWhiteBlackRolesResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:690
QChatChannelCategoryGetExistingWhiteBlackRolesResp(const NIMQChatChannelCategoryGetExistingWhiteBlackRolesResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:682
Definition: nim_qchat_channel_cpp_def.h:2007
QChatChannelCategoryGetWhiteBlackMembersPageParam(const NIMQChatChannelCategoryGetWhiteBlackMembersPageParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:2021
NIMQChatChannelCategoryGetWhiteBlackMembersPageParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:2033
Definition: nim_qchat_channel_cpp_def.h:710
std::vector< NIMQChatMemberInfo > c_members
Definition: nim_qchat_channel_cpp_def.h:741
NIMQChatChannelCategoryGetWhiteBlackMembersPageResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:727
QChatChannelCategoryGetWhiteBlackMembersPageResp(const NIMQChatChannelCategoryGetWhiteBlackMembersPageResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:718
Definition: nim_qchat_channel_cpp_def.h:1872
QChatChannelCategoryGetWhiteBlackRolesPageParam(const NIMQChatChannelCategoryGetWhiteBlackRolesPageParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1886
NIMQChatChannelCategoryGetWhiteBlackRolesPageParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1898
Definition: nim_qchat_channel_cpp_def.h:641
QChatChannelCategoryGetWhiteBlackRolesPageResp(const NIMQChatChannelCategoryGetWhiteBlackRolesPageResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:649
NIMQChatChannelCategoryGetWhiteBlackRolesPageResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:658
std::vector< NIMQChatRoleInfo > c_roles
Definition: nim_qchat_channel_cpp_def.h:672
Definition: nim_qchat_channel_cpp_def.h:159
QChatChannelCategoryInfo(const NIMQChatChannelCategoryInfo &c_param)
Definition: nim_qchat_channel_cpp_def.h:181
NIMQChatChannelCategoryInfo ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:193
Definition: nim_qchat_channel_cpp_def.h:1660
QChatChannelCategoryRemoveParam(const NIMQChatChannelCategoryRemoveParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1666
NIMQChatChannelCategoryRemoveParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1674
Definition: nim_qchat_channel_cpp_def.h:1687
QChatChannelCategoryUpdateParam(const NIMQChatChannelCategoryUpdateParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1699
NIMQChatChannelCategoryUpdateParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1710
Definition: nim_qchat_channel_cpp_def.h:1956
std::vector< std::string > accids
成员ID列表
Definition: nim_qchat_channel_cpp_def.h:1964
std::vector< char * > vec_accids
Definition: nim_qchat_channel_cpp_def.h:2003
QChatChannelCategoryUpdateWhiteBlackMembersParam(const NIMQChatChannelCategoryUpdateWhiteBlackMembersParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1970
NIMQChatChannelCategoryUpdateWhiteBlackMembersParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1983
Definition: nim_qchat_channel_cpp_def.h:1829
QChatChannelCategoryUpdateWhiteBlackRoleParam(const NIMQChatChannelCategoryUpdateWhiteBlackRoleParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1843
NIMQChatChannelCategoryUpdateWhiteBlackRoleParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1855
Definition: nim_qchat_channel_cpp_def.h:1005
QChatChannelCreateParam(const NIMQChatChannelCreateParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1013
NIMQChatChannelCreateParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1022
Definition: nim_qchat_channel_cpp_def.h:265
QChatChannelCreateResp(const NIMQChatChannelCreateResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:271
NIMQChatChannelCreateResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:277
Definition: nim_qchat_channel_cpp_def.h:1036
QChatChannelDeleteParam(const NIMQChatChannelDeleteParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1042
NIMQChatChannelDeleteParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1050
Definition: nim_qchat_channel_cpp_def.h:1726
NIMQChatChannelGetCategoriesByIDParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1741
std::vector< uint64_t > category_ids
分组ID列表
Definition: nim_qchat_channel_cpp_def.h:1730
QChatChannelGetCategoriesByIDParam(const NIMQChatChannelGetCategoriesByIDParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1732
Definition: nim_qchat_channel_cpp_def.h:569
NIMQChatChannelGetCategoriesByIDResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:583
std::vector< NIMQChatChannelCategoryInfo > c_categories
Definition: nim_qchat_channel_cpp_def.h:596
QChatChannelGetCategoriesByIDResp(const NIMQChatChannelGetCategoriesByIDResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:575
Definition: nim_qchat_channel_cpp_def.h:1755
QChatChannelGetCategoriesPageParam(const NIMQChatChannelGetCategoriesPageParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1765
NIMQChatChannelGetCategoriesPageParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1775
Definition: nim_qchat_channel_cpp_def.h:600
QChatChannelGetCategoriesPageResp(const NIMQChatChannelGetCategoriesPageResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:608
std::vector< NIMQChatChannelCategoryInfo > c_categories
Definition: nim_qchat_channel_cpp_def.h:631
NIMQChatChannelGetCategoriesPageResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:617
Definition: nim_qchat_channel_cpp_def.h:1790
QChatChannelGetCategoryChannelsPageParam(const NIMQChatChannelGetCategoryChannelsPageParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1802
NIMQChatChannelGetCategoryChannelsPageParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1813
Definition: nim_qchat_channel_cpp_def.h:1179
QChatChannelGetChannelsPageParam(const NIMQChatChannelGetChannelsPageParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1189
NIMQChatChannelGetChannelsPageParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1199
Definition: nim_qchat_channel_cpp_def.h:328
NIMQChatChannelGetChannelsPageResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:345
QChatChannelGetChannelsPageResp(const NIMQChatChannelGetChannelsPageResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:336
std::vector< NIMQChatChannelInfo > vec_channels
Definition: nim_qchat_channel_cpp_def.h:359
Definition: nim_qchat_channel_cpp_def.h:1149
NIMQChatChannelGetChannelsParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1165
QChatChannelGetChannelsParam(const NIMQChatChannelGetChannelsParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1155
Definition: nim_qchat_channel_cpp_def.h:297
QChatChannelGetChannelsResp(const NIMQChatChannelGetChannelsResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:303
std::vector< NIMQChatChannelInfo > vec_channels
Definition: nim_qchat_channel_cpp_def.h:324
NIMQChatChannelGetChannelsResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:311
Definition: nim_qchat_channel_cpp_def.h:1480
QChatChannelGetExistingWhiteBlackMembersParam(const NIMQChatChannelGetExistingWhiteBlackMembersParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1492
std::vector< std::string > accids
用户accid列表
Definition: nim_qchat_channel_cpp_def.h:1490
std::vector< char * > accids_vec
Definition: nim_qchat_channel_cpp_def.h:1523
NIMQChatChannelGetExistingWhiteBlackMembersParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1504
Definition: nim_qchat_channel_cpp_def.h:479
QChatChannelGetExistingWhiteBlackMembersResp(const NIMQChatChannelGetExistingWhiteBlackMembersResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:485
NIMQChatChannelGetExistingWhiteBlackMembersResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:493
std::vector< NIMQChatMemberInfo > c_members
Definition: nim_qchat_channel_cpp_def.h:506
Definition: nim_qchat_channel_cpp_def.h:1433
NIMQChatChannelGetExistingWhiteBlackRolesParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1457
std::vector< uint64_t > role_ids
身份组id列表
Definition: nim_qchat_channel_cpp_def.h:1443
QChatChannelGetExistingWhiteBlackRolesParam(const NIMQChatChannelGetExistingWhiteBlackRolesParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1445
std::vector< uint64_t > role_ids_vec
Definition: nim_qchat_channel_cpp_def.h:1476
Definition: nim_qchat_channel_cpp_def.h:448
QChatChannelGetExistingWhiteBlackRolesResp(const NIMQChatChannelGetExistingWhiteBlackRolesResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:454
NIMQChatChannelGetExistingWhiteBlackRolesResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:462
std::vector< NIMQChatRoleInfo > c_roles
Definition: nim_qchat_channel_cpp_def.h:475
Definition: nim_qchat_channel_cpp_def.h:1214
QChatChannelGetMembersPageParam(const NIMQChatChannelGetMembersPageParam c_param)
Definition: nim_qchat_channel_cpp_def.h:1226
NIMQChatChannelGetMembersPageParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1237
Definition: nim_qchat_channel_cpp_def.h:2132
QChatChannelGetRTCInfoParam(const NIMQChatChannelGetRTCInfoParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:2140
NIMQChatChannelGetRTCInfoParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:2149
Definition: nim_qchat_channel_cpp_def.h:779
QChatChannelGetRTCInfoResp(const NIMQChatChannelGetRTCInfoResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:785
NIMQChatChannelGetRTCInfoResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:791
QChatChannelRTCInfo rtc_info
RTC信息
Definition: nim_qchat_channel_cpp_def.h:783
Definition: nim_qchat_channel_cpp_def.h:2163
NIMQChatChannelGetRTCOnlineMembersParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:2180
QChatChannelGetRTCOnlineMembersParam(const NIMQChatChannelGetRTCOnlineMembersParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:2171
Definition: nim_qchat_channel_cpp_def.h:800
NIMQChatChannelGetRTCOnlineMembersResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:814
std::vector< NIMQChatMemberInfo > c_members
Definition: nim_qchat_channel_cpp_def.h:827
QChatChannelGetRTCOnlineMembersResp(const NIMQChatChannelGetRTCOnlineMembersResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:806
std::vector< QChatMemberInfo > members
成员列表
Definition: nim_qchat_channel_cpp_def.h:804
Definition: nim_qchat_channel_cpp_def.h:1390
NIMQChatChannelGetWhiteBlackMembersPageParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1416
QChatChannelGetWhiteBlackMembersPageParam(const NIMQChatChannelGetWhiteBlackMembersPageParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1404
Definition: nim_qchat_channel_cpp_def.h:413
std::vector< NIMQChatMemberInfo > c_members
Definition: nim_qchat_channel_cpp_def.h:444
QChatChannelGetWhiteBlackMembersPageResp(const NIMQChatChannelGetWhiteBlackMembersPageResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:421
NIMQChatChannelGetWhiteBlackMembersPageResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:430
Definition: nim_qchat_channel_cpp_def.h:1347
NIMQChatChannelGetWhiteBlackRolesPageParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1373
QChatChannelGetWhiteBlackRolesPageParam(const NIMQChatChannelGetWhiteBlackRolesPageParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1361
Definition: nim_qchat_channel_cpp_def.h:378
std::vector< NIMQChatRoleInfo > c_roles
Definition: nim_qchat_channel_cpp_def.h:409
NIMQChatChannelGetWhiteBlackRolesPageResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:395
QChatChannelGetWhiteBlackRolesPageResp(const NIMQChatChannelGetWhiteBlackRolesPageResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:386
Definition: nim_qchat_channel_cpp_def.h:23
QChatChannelInfo()=default
QChatChannelInfo(const NIMQChatChannelInfo &c_param)
Definition: nim_qchat_channel_cpp_def.h:55
NIMQChatChannelInfo ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:72
Definition: nim_qchat_channel_cpp_def.h:1582
NIMQChatChannelMemberSearchParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1605
QChatChannelMemberSearchParam(const NIMQChatChannelMemberSearchParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1594
Definition: nim_qchat_channel_cpp_def.h:511
NIMQChatChannelMemberSearchResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:525
std::vector< NIMQChatMemberInfo > vec_members
Definition: nim_qchat_channel_cpp_def.h:538
QChatChannelMemberSearchResp(const NIMQChatChannelMemberSearchResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:517
Definition: nim_qchat_channel_cpp_def.h:975
QChatChannelQueryUnreadInfoParam(const NIMQChatChannelQueryUnreadInfoParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:981
NIMQChatChannelQueryUnreadInfoParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:991
Definition: nim_qchat_channel_cpp_def.h:239
std::vector< NIMQChatUnreadInfo > unread_infos
未读信息列表
Definition: nim_qchat_channel_cpp_def.h:243
QChatChannelQueryUnreadInfoResp(const NIMQChatChannelQueryUnreadInfoResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:245
NIMQChatChannelQueryUnreadInfoResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:253
Definition: nim_qchat_channel_cpp_def.h:94
NIMQChatChannelRTCAudioInfo ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:104
QChatChannelRTCAudioInfo(const NIMQChatChannelRTCAudioInfo &c_param)
Definition: nim_qchat_channel_cpp_def.h:100
std::string scenario
音频应用场景 ["DEFAULT","SPEECH","MUSIC", "CHATROOM"]
Definition: nim_qchat_channel_cpp_def.h:98
std::string profile
音频属性 ["HIGH_QUALITY_STEREO","HIGH_QUALITY","STANDARD_EXTEND"]
Definition: nim_qchat_channel_cpp_def.h:96
Definition: nim_qchat_channel_cpp_def.h:136
QChatChannelRTCInfo(const NIMQChatChannelRTCInfo &c_param)
Definition: nim_qchat_channel_cpp_def.h:144
NIMQChatChannelRTCInfo ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:149
Definition: nim_qchat_channel_cpp_def.h:113
NIMQChatChannelRTCVideoInfo ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:126
QChatChannelRTCVideoInfo(const NIMQChatChannelRTCVideoInfo &c_param)
Definition: nim_qchat_channel_cpp_def.h:121
Definition: nim_qchat_channel_cpp_def.h:922
NIMQChatChannelRegUnreadCbParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:924
Definition: nim_qchat_channel_cpp_def.h:1527
QChatChannelSearchPageParam(const NIMQChatChannelSearchPageParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1547
NIMQChatChannelSearchPageParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1562
Definition: nim_qchat_channel_cpp_def.h:2194
NIMQChatChannelSubscribeAsVisitorParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:2214
QChatChannelSubscribeAsVisitorParam(const NIMQChatChannelSubscribeAsVisitorParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:2202
Definition: nim_qchat_channel_cpp_def.h:831
QChatChannelSubscribeAsVisitorResp(const NIMQChatChannelSubscribeAsVisitorResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:837
NIMQChatChannelSubscribeAsVisitorResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:843
Definition: nim_qchat_channel_cpp_def.h:937
QChatChannelSubscribeParam(const NIMQChatChannelSubscribeParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:947
NIMQChatChannelSubscribeParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:959
Definition: nim_qchat_channel_cpp_def.h:210
NIMQChatChannelSubscribeResp ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:225
QChatChannelSubscribeResp(const NIMQChatChannelSubscribeResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:216
Definition: nim_qchat_channel_cpp_def.h:363
std::vector< NIMQChatUnreadInfo > unread_infos
未读数信息
Definition: nim_qchat_channel_cpp_def.h:365
QChatChannelUnreadResp(const NIMQChatChannelUnreadResp &c_resp)
Definition: nim_qchat_channel_cpp_def.h:367
Definition: nim_qchat_channel_cpp_def.h:1114
QChatChannelUpdateCategoryInfoParam(const NIMQChatChannelUpdateCategoryInfoParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1124
NIMQChatChannelUpdateCategoryInfoParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1134
Definition: nim_qchat_channel_cpp_def.h:1063
std::string custom
自定义字段
Definition: nim_qchat_channel_cpp_def.h:1073
std::string name
名称
Definition: nim_qchat_channel_cpp_def.h:1069
std::string topic
主题
Definition: nim_qchat_channel_cpp_def.h:1071
NIMQChatChannelUpdateParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1095
QChatChannelUpdateParam(const NIMQChatChannelUpdateParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1081
Definition: nim_qchat_channel_cpp_def.h:2097
NIMQChatChannelUpdateRTCInfoParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:2117
QChatChannelUpdateRTCInfoParam(const NIMQChatChannelUpdateRTCInfoParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:2107
Definition: nim_qchat_channel_cpp_def.h:1296
std::vector< std::string > accids
用户accid列表
Definition: nim_qchat_channel_cpp_def.h:1304
NIMQChatChannelUpdateWhiteBlackMembersParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1323
QChatChannelUpdateWhiteBlackMembersParam(const NIMQChatChannelUpdateWhiteBlackMembersParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1310
std::vector< char * > accids_vec
Definition: nim_qchat_channel_cpp_def.h:1343
Definition: nim_qchat_channel_cpp_def.h:1253
QChatChannelUpdateWhiteBlackRoleParam(const NIMQChatChannelUpdateWhiteBlackRoleParam &c_param)
Definition: nim_qchat_channel_cpp_def.h:1267
NIMQChatChannelUpdateWhiteBlackRoleParam ToCParam() const
Definition: nim_qchat_channel_cpp_def.h:1279
Definition: nim_qchat_public_cpp_def.h:81
Definition: nim_qchat_server_cpp_def.h:535