NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_qchat_role_cpp_def.h
浏览该文件的文档.
1
11#ifndef __NIM_QCHAT_IDENTITY_CPP_DEF_H__
12#define __NIM_QCHAT_IDENTITY_CPP_DEF_H__
13
15
17
18namespace nim {
19
21using QChatPermission = std::map<uint32_t, NIMQChatPermissionsOption>;
22
26 QChatMemberInfo member_info{};
28 uint64_t role_id{0};
31 member_info = c_param.member_info;
32 role_id = c_param.role_id;
33 }
35 NIMQChatRoleMemberInfo c_param = {};
36 c_param.member_info = member_info.ToCParam();
37 c_param.role_id = role_id;
38 return c_param;
39 }
40};
41
45 uint64_t server_id = 0;
47 uint64_t role_id = 0;
49 std::string role_name;
51 std::string role_icon;
53 std::string extension;
55 QChatPermission permissions{};
59 uint64_t create_time = 0;
61 uint64_t update_time = 0;
62 QChatRoleInfoBase() = default;
64 server_id = info.server_id;
65 role_id = info.role_id;
66 role_name = info.role_name;
67 role_icon = info.role_icon;
68 extension = info.extension;
69 for (size_t i = 0; i < info.permissions_count; i++) {
70 auto permission = info.permissions[i].permission;
71 auto option = info.permissions[i].option;
72 permissions.emplace(permission, option);
73 }
74 role_type = info.role_type;
75 create_time = info.create_time;
76 update_time = info.update_time;
77 }
79 NIMQChatRoleInfo c_param;
80 c_param.server_id = server_id;
81 c_param.role_id = role_id;
82 c_param.role_type = role_type;
83 c_param.role_name = const_cast<char*>(role_name.c_str());
84 c_param.role_icon = const_cast<char*>(role_icon.c_str());
85 c_param.extension = const_cast<char*>(extension.c_str());
86 vec_permissions.clear();
87 for (auto&& permission : permissions) {
89 perms.permission = permission.first;
90 perms.option = permission.second;
91 vec_permissions.push_back(perms);
92 }
93 c_param.permissions = vec_permissions.data();
94 c_param.permissions_count = vec_permissions.size();
95 c_param.create_time = create_time;
96 c_param.update_time = update_time;
97 return c_param;
98 }
99
100protected:
101 mutable std::vector<NIMQChatPermissionGroup> vec_permissions;
102};
103
107 uint32_t member_count = 0;
109 uint64_t priority = 0;
112 : QChatRoleInfoBase(info) {
113 member_count = info.server_role.member_count;
114 priority = info.server_role.priority;
115 }
117 auto c_param = QChatRoleInfoBase::ToCParam();
118 c_param.server_role.member_count = member_count;
119 c_param.server_role.priority = priority;
120 return c_param;
121 }
122};
123
127 uint64_t channel_id = 0;
129 uint64_t parent_role_id = 0;
132 : QChatRoleInfoBase(info) {
133 channel_id = info.channel_role.channel_id;
134 parent_role_id = info.channel_role.parent_role_id;
135 }
137 auto c_param = QChatRoleInfoBase::ToCParam();
138 c_param.channel_role.channel_id = channel_id;
139 c_param.channel_role.parent_role_id = parent_role_id;
140 return c_param;
141 }
142};
143
147 uint64_t category_id{0};
149 uint64_t parent_role_id{0};
151 bool valid_flag{true};
154 : QChatRoleInfoBase(info) {
155 category_id = info.channel_category_role.category_id;
156 parent_role_id = info.channel_category_role.parent_role_id;
157 valid_flag = info.channel_category_role.valid_flag;
158 }
160 auto c_param = QChatRoleInfoBase::ToCParam();
161 c_param.channel_category_role.category_id = category_id;
162 c_param.channel_category_role.parent_role_id = parent_role_id;
163 c_param.channel_category_role.valid_flag = valid_flag;
164 return c_param;
165 }
166};
167
171 uint64_t channel_id{0};
173 uint64_t role_id{0};
175 QChatMemberInfo member_info{};
177 QChatPermission permissions{};
179 uint64_t create_time{0};
181 uint64_t update_time{0};
184 : member_info(info.member_info) {
185 channel_id = info.channel_id;
186 role_id = info.role_id;
187 for (size_t i = 0; i < info.permissions_count; i++) {
188 permissions.emplace(info.permissions[i].permission, info.permissions[i].option);
189 }
190 create_time = info.create_time;
191 update_time = info.update_time;
192 }
195 c_param.channel_id = channel_id;
196 c_param.role_id = role_id;
197 c_param.member_info = member_info.ToCParam();
198 vec_permissions.clear();
199 for (auto&& permission : permissions) {
201 perms.permission = permission.first;
202 perms.option = permission.second;
203 vec_permissions.push_back(perms);
204 }
205 c_param.permissions = vec_permissions.data();
206 c_param.permissions_count = vec_permissions.size();
207 c_param.create_time = create_time;
208 c_param.update_time = update_time;
209 return c_param;
210 }
211
212protected:
213 mutable std::vector<NIMQChatPermissionGroup> vec_permissions;
214};
215
219 uint64_t category_id{0};
221 uint64_t role_id{0};
223 QChatMemberInfo member_info{};
225 QChatPermission permissions{};
227 uint64_t create_time{0};
229 uint64_t update_time{0};
232 : member_info(info.member_info) {
233 category_id = info.category_id;
234 role_id = info.role_id;
235 for (size_t i = 0; i < info.permissions_count; i++) {
236 permissions.emplace(info.permissions[i].permission, info.permissions[i].option);
237 }
238 create_time = info.create_time;
239 update_time = info.update_time;
240 }
243 c_param.category_id = category_id;
244 c_param.role_id = role_id;
245 c_param.member_info = member_info.ToCParam();
246 vec_permissions.clear();
247 for (auto&& permission : permissions) {
249 perms.permission = permission.first;
250 perms.option = permission.second;
251 vec_permissions.push_back(perms);
252 }
253 c_param.permissions = vec_permissions.data();
254 c_param.permissions_count = vec_permissions.size();
255 c_param.create_time = create_time;
256 c_param.update_time = update_time;
257 return c_param;
258 }
259
260protected:
261 mutable std::vector<NIMQChatPermissionGroup> vec_permissions;
262};
263
264/* ---------------------------------------------------------- */
265
269 uint32_t res_code{0};
273 res_code = c_resp.res_code;
274 if (c_resp.res_code != kNIMResSuccess)
275 return;
276 role_info = QChatServerRoleInfo(c_resp.role_info);
277 }
280 c_resp.res_code = res_code;
281 c_resp.role_info = role_info.ToCParam();
282 return c_resp;
283 }
284
285protected:
286 mutable std::vector<NIMQChatPermissionGroup> permissions_;
288};
289
293 uint32_t res_code{0};
297 res_code = c_resp.res_code;
298 if (c_resp.res_code != kNIMResSuccess)
299 return;
300 role_info = QChatServerRoleInfo(c_resp.role_info);
301 }
302};
303
306
310 uint32_t res_code{0};
312 std::vector<QChatServerRoleInfo> role_infos;
314 std::vector<QChatServerRoleInfo> joined_roles;
317 res_code = c_resp.res_code;
318 if (c_resp.res_code != kNIMResSuccess)
319 return;
320 for (size_t i = 0; i < c_resp.role_count; i++) {
321 role_infos.push_back(QChatServerRoleInfo(c_resp.roles[i]));
322 }
323 for (size_t i = 0; i < c_resp.joined_role_count; i++) {
324 joined_roles.push_back(QChatServerRoleInfo(c_resp.joined_roles[i]));
325 }
326 }
328 NIMQChatGetServerRolesResp c_response{};
329 c_response.res_code = res_code;
330 roles_vec.clear();
331 joined_roles_vec.clear();
332 for (auto&& role : role_infos) {
333 auto&& role_info = role.ToCParam();
334 roles_vec.push_back(role_info);
335 }
336 for (auto&& role : joined_roles) {
337 auto&& role_info = role.ToCParam();
338 joined_roles_vec.push_back(role_info);
339 }
340 c_response.roles = roles_vec.data();
341 c_response.role_count = roles_vec.size();
342 c_response.joined_roles = joined_roles_vec.data();
343 c_response.joined_role_count = joined_roles_vec.size();
344 return c_response;
345 }
346
347protected:
348 mutable std::vector<NIMQChatRoleInfo> roles_vec;
349 mutable std::vector<NIMQChatRoleInfo> joined_roles_vec;
350};
351
354
358 uint32_t res_code{0};
359 std::vector<QChatRoleMemberInfo> members;
362 res_code = c_resp.res_code;
363 if (c_resp.res_code != kNIMResSuccess)
364 return;
365 for (size_t i = 0; i < c_resp.member_count; i++) {
366 QChatRoleMemberInfo member(c_resp.members[i]);
367 members.push_back(member);
368 }
369 }
372 c_response.res_code = res_code;
373 c_response.member_count = members.size();
374 members_.clear();
375 for (auto&& member : members) {
376 members_.push_back(member.ToCParam());
377 }
378 c_response.members = members_.data();
379 return c_response;
380 }
381
382protected:
383 mutable std::vector<NIMQChatRoleMemberInfo> members_;
384};
385
389 uint32_t res_code{0};
391 std::vector<std::string> succeed_list;
393 std::vector<std::string> failed_list;
394
397 res_code = c_resp.res_code;
398 if (c_resp.res_code != kNIMResSuccess)
399 return;
400 for (size_t i = 0; i < c_resp.succeed_count; i++) {
401 succeed_list.push_back(c_resp.succeed_list[i]);
402 }
403 for (size_t i = 0; i < c_resp.failed_count; i++) {
404 failed_list.push_back(c_resp.failed_list[i]);
405 }
406 }
409 c_response.res_code = res_code;
410 succeed_members_.clear();
411 failed_members_.clear();
412 for (auto&& member : succeed_list)
413 succeed_members_.push_back(const_cast<char*>(member.c_str()));
414 c_response.succeed_count = succeed_members_.size();
415 c_response.succeed_list = succeed_members_.data();
416 for (auto&& member : failed_list)
417 failed_members_.push_back(const_cast<char*>(member.c_str()));
418 c_response.failed_count = failed_members_.size();
419 c_response.failed_list = failed_members_.data();
420 return c_response;
421 }
422
423protected:
424 mutable std::vector<char*> succeed_members_;
425 mutable std::vector<char*> failed_members_;
426};
427
430
434 uint32_t res_code{0};
438 res_code = c_resp.res_code;
439 if (c_resp.res_code != kNIMResSuccess)
440 return;
441 role_info = QChatChannelRoleInfo(c_resp.role_info);
442 }
445 c_response.res_code = res_code;
446 c_response.role_info = role_info.ToCParam();
447 return c_response;
448 }
449};
450
455
459 uint32_t res_code{0};
464 res_code = c_resp.res_code;
465 if (c_resp.res_code != kNIMResSuccess)
466 return;
467 role_info = QChatChannelCategoryRoleInfo(c_resp.role_info);
468 }
471 c_response.res_code = res_code;
472 c_response.role_info = role_info.ToCParam();
473 return c_response;
474 }
475};
480
484 uint32_t res_code{0};
485 std::vector<QChatChannelRoleInfo> role_infos;
486
489 res_code = c_resp.res_code;
490
491 if (c_resp.res_code != kNIMResSuccess)
492 return;
493 for (size_t i = 0; i < c_resp.role_count; i++) {
494 role_infos.push_back(QChatChannelRoleInfo(c_resp.role_infos[i]));
495 }
496 }
499 c_response.res_code = res_code;
500 channel_role_infos_.clear();
501 for (auto&& role_info : role_infos) {
502 channel_role_infos_.push_back(role_info.ToCParam());
503 }
504 c_response.role_count = channel_role_infos_.size();
505 c_response.role_infos = channel_role_infos_.data();
506 return c_response;
507 }
508
509protected:
510 mutable std::vector<NIMQChatRoleInfo> channel_role_infos_;
511};
512
516 uint32_t res_code{0};
517 std::vector<QChatChannelCategoryRoleInfo> role_infos;
520 res_code = c_resp.res_code;
521 if (c_resp.res_code != kNIMResSuccess)
522 return;
523 for (size_t i = 0; i < c_resp.role_count; i++) {
524 role_infos.push_back(QChatChannelCategoryRoleInfo(c_resp.role_infos[i]));
525 }
526 }
529 c_response.res_code = res_code;
530 vec_role_infos_.clear();
531 for (auto&& role_info : role_infos) {
532 vec_role_infos_.push_back(role_info.ToCParam());
533 }
534 c_response.role_count = vec_role_infos_.size();
535 c_response.role_infos = vec_role_infos_.data();
536 return c_response;
537 }
538
539protected:
540 mutable std::vector<NIMQChatRoleInfo> vec_role_infos_;
541};
542
546 uint32_t res_code{0};
550 : role_info(c_resp.role_info) {
551 res_code = c_resp.res_code;
552 }
554 NIMQChatAddMemberRoleResp c_response{};
555 c_response.res_code = res_code;
556 c_response.role_info = role_info.ToCParam();
557 return c_response;
558 }
559};
560
565
586
591
595 uint32_t res_code{0};
596 std::vector<QChatMemberRoleInfo> role_infos;
599 res_code = c_resp.res_code;
600 if (c_resp.res_code != kNIMResSuccess)
601 return;
602 for (size_t i = 0; i < c_resp.member_role_count; i++) {
603 role_infos.push_back(QChatMemberRoleInfo(c_resp.role_infos[i]));
604 }
605 }
608 c_response.res_code = res_code;
609 role_infos_.clear();
610 for (auto&& channel_member_role : role_infos) {
611 role_infos_.push_back(channel_member_role.ToCParam());
612 }
613
614 c_response.member_role_count = role_infos_.size();
615 c_response.role_infos = role_infos_.data();
616 return c_response;
617 }
618
619protected:
620 mutable std::vector<NIMQChatMemberRoleInfo> role_infos_;
621};
622
626 uint32_t res_code{0};
627 std::vector<QChatChannelCategoryMemberRoleInfo> role_infos;
630 res_code = c_resp.res_code;
631 if (c_resp.res_code != kNIMResSuccess)
632 return;
633 for (size_t i = 0; i < c_resp.member_role_count; i++) {
634 role_infos.push_back(QChatChannelCategoryMemberRoleInfo(c_resp.role_infos[i]));
635 }
636 }
639 c_response.res_code = res_code;
640 role_infos_.clear();
641 for (auto&& channel_member_role : role_infos) {
642 role_infos_.push_back(channel_member_role.ToCParam());
643 }
644 c_response.member_role_count = role_infos_.size();
645 c_response.role_infos = role_infos_.data();
646 return c_response;
647 }
648
649protected:
650 mutable std::vector<NIMQChatChannelCategoryMemberRoleInfo> role_infos_;
651};
652
655
659 uint32_t res_code{0};
660 std::map<std::string, std::vector<QChatServerRoleInfo>> roles_of_member_ids;
663 res_code = c_response.res_code;
664 if (c_response.res_code != kNIMResSuccess)
665 return;
666 for (size_t i = 0; i < c_response.count; i++) {
667 auto& role_info_of_member = c_response.roles_of_member[i];
668 std::vector<QChatServerRoleInfo> roles;
669 for (auto j = 0; j < role_info_of_member.role_count; j++) {
670 QChatServerRoleInfo role_info = role_info_of_member.roles[j];
671 roles.push_back(role_info);
672 }
673 roles_of_member_ids[role_info_of_member.member_id] = roles;
674 }
675 }
678 c_response.res_code = res_code;
679 c_response.count = roles_of_member_ids.size();
680 role_info_of_members_.clear();
681 c_role_info_of_members_.clear();
682 for (auto& roles_of_member : roles_of_member_ids) {
683 std::vector<NIMQChatRoleInfo> roles;
684 NIMQChatRoleInfoOfMember role_info_of_member;
685 role_info_of_member.member_id = const_cast<char*>(roles_of_member.first.c_str());
686 role_info_of_member.role_count = roles_of_member.second.size();
687 for (auto& role_info : roles_of_member.second) {
688 roles.push_back(role_info.ToCParam());
689 }
690 role_info_of_member.roles = roles.data();
691 c_role_info_of_members_.push_back(std::move(roles));
692 role_info_of_members_.push_back(std::move(role_info_of_member));
693 }
694 c_response.roles_of_member = role_info_of_members_.data();
695 return c_response;
696 }
697
698protected:
699 mutable std::vector<NIMQChatRoleInfoOfMember> role_info_of_members_;
700 mutable std::vector<std::vector<NIMQChatRoleInfo>> c_role_info_of_members_;
701};
702
705
709 uint32_t res_code{0};
710 std::vector<std::string> member_ids_result;
713 res_code = c_resp.res_code;
714 if (c_resp.res_code != kNIMResSuccess)
715 return;
716 for (size_t i = 0; i < c_resp.member_ids_count; i++) {
717 member_ids_result.push_back(c_resp.member_ids[i]);
718 }
719 }
722 c_response.res_code = res_code;
723 member_query_accids_.clear();
724 for (auto&& member_id : member_ids_result) {
725 member_query_accids_.push_back(const_cast<char*>(member_id.c_str()));
726 }
727 c_response.member_ids_count = member_query_accids_.size();
728 c_response.member_ids = member_query_accids_.data();
729 return c_response;
730 }
731
732protected:
733 mutable std::vector<QChatMemberAccountId> member_query_accids_;
734};
735
738
742 uint32_t res_code{0};
743 bool has_permission{false};
746 res_code = c_resp.res_code;
747 if (c_resp.res_code != kNIMResSuccess)
748 return;
749 has_permission = c_resp.has_permission;
750 }
753 c_response.res_code = res_code;
754 c_response.has_permission = has_permission;
755 return c_response;
756 }
757};
758
762 uint32_t res_code{0};
764 std::map<uint32_t, NIMQChatPermissionsOption> permissions;
767 res_code = c_resp.res_code;
768 if (c_resp.res_code != kNIMResSuccess)
769 return;
770 permissions.clear();
771 for (size_t i = 0; i < c_resp.permissions_count; i++) {
772 permissions.emplace(c_resp.permissions[i], c_resp.options[i]);
773 }
774 }
777 c_response.res_code = res_code;
778 permissions_.clear();
779 options_.clear();
780 for (auto&& permission : permissions) {
781 permissions_.push_back(permission.first);
782 options_.push_back(permission.second);
783 }
784 c_response.permissions_count = permissions_.size();
785 c_response.permissions = permissions_.data();
786 c_response.options = const_cast<NIMQChatPermissionsOption*>(options_.data());
787 return c_response;
788 }
789
790protected:
791 mutable std::vector<uint32_t> permissions_;
792 mutable std::vector<NIMQChatPermissionsOption> options_;
793};
794
795// callbacks
800using QChatGetServerRolesCallback = std::function<void(const QChatGetServerRolesResp&)>;
804using QChatAddChannelRoleCallback = std::function<void(const QChatAddChannelRoleResp&)>;
807using QChatGetChannelRolesCallback = std::function<void(const QChatGetChannelRolesResp&)>;
808using QChatAddMemberRoleCallback = std::function<void(const QChatAddMemberRoleResp&)>;
817using QChatCheckPermissionCallback = std::function<void(const QChatCheckPermissionResp&)>;
827
836 info = param.role_info;
837 anti_spam_info = param.anti_spam_info;
838 cb = [c_callback = param.cb, user_data = param.user_data](const QChatCreateServerRoleResp& response) {
839 auto c_response = response.ToCParam();
840 c_response.user_data = user_data;
841 c_callback(&c_response);
842 };
843 }
845 auto cb_holder = new QChatCreateServerRoleCallback(cb);
847 c_param.user_data = cb_holder;
848 c_param.role_info = info.ToCParam();
849 c_param.anti_spam_info = anti_spam_info.ToCParam();
850 c_param.cb = [](const NIMQChatCreateServerRoleResp* resp) {
851 InvokeCallback<QChatCreateServerRoleCallback, NIMQChatCreateServerRoleResp>(resp);
852 };
853 return c_param;
854 }
855};
856
865 info = param.role_info;
866 anti_spam_info = param.anti_spam_info;
867 cb = [c_callback = param.cb, user_data = param.user_data](const QChatUpdateServerRoleResp& response) {
869 c_response.res_code = response.res_code;
870 c_response.user_data = user_data;
871 c_response.role_info = response.role_info.ToCParam();
872 c_callback(&c_response);
873 };
874 }
876 auto cb_holder = new QChatUpdateServerRoleCallback(cb);
878 c_param.user_data = cb_holder;
879 c_param.role_info = info.ToCParam();
880 c_param.anti_spam_info = anti_spam_info.ToCParam();
881 c_param.cb = [](const NIMQChatUpdateServerRoleResp* resp) {
882 InvokeCallback<QChatUpdateServerRoleCallback, NIMQChatUpdateServerRoleResp>(resp);
883 };
884
885 return c_param;
886 }
887};
888
892 uint64_t server_id = 0;
894 std::map<uint64_t, uint64_t> priority_map;
897 server_id = param.server_id;
898 for (size_t i = 0; i < param.update_count; i++) {
899 priority_map.emplace(param.update_priority_info[i].role_id, param.update_priority_info[i].priority);
900 }
901 cb = [c_callback = param.cb, user_data = param.user_data, this](const QChatUpdateServerRolePrioritiesResp& response) {
902 NIMQChatUpdateServerRolePrioritiesResp c_response = response.ToCParam();
903 c_response.user_data = user_data;
904 c_callback(&c_response);
905 };
906 }
908 auto cb_holder = new QChatBatchUpdateServerRolePrioritiesCallback(cb);
910 c_param.user_data = cb_holder;
911 c_param.server_id = server_id;
912 c_role_infos_.clear();
913 for (auto& priority_item : priority_map) {
915 priority_group.role_id = priority_item.first;
916 priority_group.priority = priority_item.second;
917 c_role_infos_.push_back(priority_group);
918 }
919 c_param.update_priority_info = c_role_infos_.data();
920 c_param.update_count = c_role_infos_.size();
921 c_param.cb = [](const NIMQChatUpdateServerRolePrioritiesResp* resp) {
922 InvokeCallback<QChatBatchUpdateServerRolePrioritiesCallback, NIMQChatUpdateServerRolePrioritiesResp>(resp);
923 };
924
925 return c_param;
926 }
927
928protected:
929 mutable std::vector<NIMQChatBatchUpdateServeRolePriorityGroup> c_role_infos_;
930};
931
936 uint64_t server_id = 0;
938 uint64_t role_id = 0;
941 server_id = param.server_id;
942 role_id = param.role_id;
943 cb = [c_callback = param.cb, user_data = param.user_data](const QChatDeleteServerRoleResp& response) {
944 auto c_response = response.ToCParam();
945 c_response.user_data = user_data;
946 c_callback(&c_response);
947 };
948 }
950 auto cb_holder = new QChatDeleteServerRoleCallback(cb);
952 c_param.user_data = cb_holder;
953 c_param.server_id = server_id;
954 c_param.role_id = role_id;
955 c_param.cb = [](const NIMQChatDeleteServerRoleResp* resp) {
956 InvokeCallback<QChatDeleteServerRoleCallback, NIMQChatDeleteServerRoleResp>(resp);
957 };
958
959 return c_param;
960 }
961};
965 uint64_t server_id = 0;
967 uint32_t limit = 100;
969 uint64_t priority = 0;
971 uint64_t channel_id = 0;
973 uint64_t channel_category_id = 0;
976 server_id = param.server_id;
977 limit = param.limit;
978 priority = param.priority;
979 channel_id = param.channel_id;
980 channel_category_id = param.channel_category_id;
981 cb = [c_callback = param.cb, user_data = param.user_data](const QChatGetServerRolesResp& response) {
982 auto c_response = response.ToCParam();
983 c_response.user_data = user_data;
984 c_callback(&c_response);
985 };
986 }
988 auto cb_holder = new QChatGetServerRolesCallback(cb);
990 c_param.user_data = cb_holder;
991 c_param.server_id = server_id;
992 c_param.limit = limit;
993 c_param.priority = priority;
994 c_param.channel_id = channel_id;
995 c_param.channel_category_id = channel_category_id;
996 c_param.cb = [](const NIMQChatGetServerRolesResp* resp) {
997 InvokeCallback<QChatGetServerRolesCallback, NIMQChatGetServerRolesResp>(resp);
998 };
999
1000 return c_param;
1001 }
1002};
1003
1008 uint64_t server_id = 0;
1010 uint64_t role_id = 0;
1012 std::vector<std::string> members_accids;
1015 server_id = param.server_id;
1016 role_id = param.role_id;
1017 for (size_t i = 0; i < param.member_count; i++)
1018 members_accids.push_back(param.members[i]);
1019 cb = [c_callback = param.cb, user_data = param.user_data](const QChatAddMembersToServerRoleResp& response) {
1020 auto c_response = response.ToCParam();
1021 c_response.user_data = user_data;
1022 c_callback(&c_response);
1023 };
1024 }
1026 auto cb_holder = new QChatAddMembersToServerRoleCallback(cb);
1028 c_param.user_data = cb_holder;
1029 c_param.server_id = server_id;
1030 c_param.role_id = role_id;
1031 vec_members.clear();
1032 for (auto&& member_accid : members_accids)
1033 vec_members.push_back(const_cast<char*>(member_accid.c_str()));
1034 c_param.member_count = vec_members.size();
1035 c_param.members = vec_members.data();
1036 c_param.cb = [](const NIMQChatAddMembersToServerRoleResp* resp) {
1037 InvokeCallback<QChatAddMembersToServerRoleCallback, NIMQChatAddMembersToServerRoleResp>(resp);
1038 };
1039
1040 return c_param;
1041 }
1042
1043protected:
1044 mutable std::vector<char*> vec_members;
1045};
1046
1051 uint64_t server_id = 0;
1053 uint64_t role_id = 0;
1055 std::vector<std::string> members_accids;
1058 server_id = param.server_id;
1059 role_id = param.role_id;
1060 for (size_t i = 0; i < param.member_count; i++)
1061 members_accids.push_back(param.members[i]);
1062 cb = [c_callback = param.cb, user_data = param.user_data](const QChatRemoveMembersFromServerRoleResp& response) {
1063 auto c_response = response.ToCParam();
1064 c_response.user_data = user_data;
1065 c_callback(&c_response);
1066 };
1067 }
1069 auto cb_holder = new QChatRemoveMembersFromServerRoleCallback(cb);
1071 c_param.user_data = cb_holder;
1072 c_param.server_id = server_id;
1073 c_param.role_id = role_id;
1074 vec_members.clear();
1075 for (auto&& member_accid : members_accids)
1076 vec_members.push_back(const_cast<char*>(member_accid.c_str()));
1077 c_param.member_count = vec_members.size();
1078 c_param.members = vec_members.data();
1079 c_param.cb = [](const NIMQChatRemoveMembersFromServerRoleResp* resp) {
1080 InvokeCallback<QChatRemoveMembersFromServerRoleCallback, NIMQChatRemoveMembersFromServerRoleResp>(resp);
1081 };
1082
1083 return c_param;
1084 }
1085
1086protected:
1087 mutable std::vector<char*> vec_members;
1088};
1089
1094 uint64_t server_id = 0;
1096 uint64_t role_id = 0;
1098 uint64_t timestamp = 0;
1100 uint32_t limit = 100;
1102 std::string begin_accid;
1105 server_id = param.server_id;
1106 role_id = param.role_id;
1107 timestamp = param.timestamp;
1108 limit = param.limit;
1109 begin_accid = param.begin_accid;
1110 cb = [c_callback = param.cb, user_data = param.user_data](const QChatGetMembersFromServerRoleResp& response) {
1111 auto c_response = response.ToCParam();
1112 c_response.user_data = user_data;
1113 c_callback(&c_response);
1114 };
1115 }
1117 auto cb_holder = new QChatGetMembersFromServerRoleCallback(cb);
1119 c_param.user_data = cb_holder;
1120 c_param.server_id = server_id;
1121 c_param.role_id = role_id;
1122 c_param.timestamp = timestamp;
1123 c_param.limit = limit;
1124 c_param.begin_accid = const_cast<char*>(begin_accid.c_str());
1125 c_param.cb = [](const NIMQChatGetMembersFromServerRoleResp* resp) {
1126 InvokeCallback<QChatGetMembersFromServerRoleCallback, NIMQChatGetMembersFromServerRoleResp>(resp);
1127 };
1128
1129 return c_param;
1130 }
1131};
1132
1136 uint64_t server_id = 0;
1137 uint64_t parent_role_id = 0;
1138 uint64_t channel_id = 0;
1141 server_id = param.server_id;
1142 parent_role_id = param.parent_role_id;
1143 channel_id = param.channel_id;
1144 cb = [c_callback = param.cb, user_data = param.user_data](const QChatAddChannelRoleResp& response) {
1145 auto c_response = response.ToCParam();
1146 c_response.user_data = user_data;
1147 c_callback(&c_response);
1148 };
1149 }
1151 auto cb_holder = new QChatAddChannelRoleCallback(cb);
1153 c_param.user_data = cb_holder;
1154 c_param.server_id = server_id;
1155 c_param.parent_role_id = parent_role_id;
1156 c_param.channel_id = channel_id;
1157 c_param.cb = [](const NIMQChatAddChannelRoleResp* resp) {
1158 InvokeCallback<QChatAddChannelRoleCallback, NIMQChatAddChannelRoleResp>(resp);
1159 };
1160 return c_param;
1161 }
1162};
1163
1167 uint64_t server_id = 0;
1168 uint64_t role_id = 0;
1169 uint64_t channel_id = 0;
1170 QChatPermission permissions{};
1173 server_id = param.server_id;
1174 role_id = param.role_id;
1175 channel_id = param.channel_id;
1176 for (size_t i = 0; i < param.permission_count; i++) {
1177 auto permission = param.permissions[i].permission;
1178 auto option = param.permissions[i].option;
1179 permissions.emplace(permission, option);
1180 }
1181 cb = [c_callback = param.cb, user_data = param.user_data](const QChatUpdateChannelRoleResp& response) {
1182 auto c_response = response.ToCParam();
1183 c_response.user_data = user_data;
1184 c_callback(&c_response);
1185 };
1186 }
1188 auto cb_holder = new QChatUpdateChannelRoleCallback(cb);
1190 c_param.user_data = cb_holder;
1191 c_param.server_id = server_id;
1192 c_param.role_id = role_id;
1193 c_param.channel_id = channel_id;
1194 vec_permissions_.clear();
1195 for (auto&& permission : permissions) {
1196 vec_permissions_.push_back({permission.first, permission.second});
1197 }
1198 c_param.permission_count = vec_permissions_.size();
1199 c_param.permissions = vec_permissions_.data();
1200 c_param.cb = [](const NIMQChatUpdateChannelRoleResp* resp) {
1201 InvokeCallback<QChatUpdateChannelRoleCallback, NIMQChatUpdateChannelRoleResp>(resp);
1202 };
1203 return c_param;
1204 }
1205
1206protected:
1207 mutable std::vector<NIMQChatPermissionGroup> vec_permissions_;
1208};
1209
1214 uint64_t server_id = 0;
1216 uint64_t role_id = 0;
1218 uint64_t channel_id = 0;
1221 server_id = param.server_id;
1222 role_id = param.role_id;
1223 channel_id = param.channel_id;
1224 cb = [c_callback = param.cb, user_data = param.user_data](const QChatRemoveChannelRoleResp& response) {
1225 auto c_response = response.ToCParam();
1226 c_response.user_data = user_data;
1227 c_callback(&c_response);
1228 };
1229 }
1231 auto cb_holder = new QChatRemoveChannelRoleCallback(cb);
1233 c_param.user_data = cb_holder;
1234 c_param.server_id = server_id;
1235 c_param.channel_id = channel_id;
1236 c_param.role_id = role_id;
1237 c_param.cb = [](const NIMQChatRemoveChannelRoleResp* resp) {
1238 InvokeCallback<QChatRemoveChannelRoleCallback, NIMQChatRemoveChannelRoleResp>(resp);
1239 };
1240 return c_param;
1241 }
1242};
1243
1248 uint64_t server_id = 0;
1250 uint64_t channel_id = 0;
1252 uint64_t timestamp = 0;
1254 uint32_t limit = 100;
1257 server_id = param.server_id;
1258 channel_id = param.channel_id;
1259 timestamp = param.timestamp;
1260 limit = param.limit;
1261 cb = [c_callback = param.cb, user_data = param.user_data](const QChatGetChannelRolesResp& response) {
1262 auto c_response = response.ToCParam();
1263 c_response.user_data = user_data;
1264 c_callback(&c_response);
1265 };
1266 }
1268 auto cb_holder = new QChatGetChannelRolesCallback(cb);
1270 c_param.user_data = cb_holder;
1271 c_param.server_id = server_id;
1272 c_param.channel_id = channel_id;
1273 c_param.timestamp = timestamp;
1274 c_param.limit = limit;
1275 c_param.cb = [](const NIMQChatGetChannelRolesResp* resp) {
1276 InvokeCallback<QChatGetChannelRolesCallback, NIMQChatGetChannelRolesResp>(resp);
1277 };
1278 return c_param;
1279 }
1280};
1281
1285 uint64_t server_id = 0;
1286 uint64_t channel_id = 0;
1287 std::string accid;
1290 server_id = param.server_id;
1291 channel_id = param.channel_id;
1292 accid = param.accid;
1293 cb = [c_callback = param.cb, user_data = param.user_data](const QChatAddMemberRoleResp& response) {
1294 auto c_response = response.ToCParam();
1295 c_response.user_data = user_data;
1296 c_callback(&c_response);
1297 };
1298 }
1300 auto cb_holder = new QChatAddMemberRoleCallback(cb);
1302 c_param.user_data = cb_holder;
1303 c_param.server_id = server_id;
1304 c_param.channel_id = channel_id;
1305 c_param.accid = const_cast<char*>(accid.c_str());
1306 c_param.cb = [](const NIMQChatAddMemberRoleResp* resp) {
1307 InvokeCallback<QChatAddMemberRoleCallback, NIMQChatAddMemberRoleResp>(resp);
1308 };
1309 return c_param;
1310 }
1311};
1312
1316 uint64_t server_id = 0;
1317 uint64_t channel_id = 0;
1318 std::string accid;
1319 QChatPermission permissions{};
1322 server_id = param.server_id;
1323 channel_id = param.channel_id;
1324 accid = param.accid;
1325 for (size_t i = 0; i < param.permission_count; i++)
1326 permissions.emplace(param.permissions[i].permission, param.permissions[i].option);
1327 cb = [c_callback = param.cb, user_data = param.user_data](const QChatUpdateMemberRoleResp& response) {
1328 auto c_response = response.ToCParam();
1329 c_response.user_data = user_data;
1330 c_callback(&c_response);
1331 };
1332 }
1334 auto cb_holder = new QChatUpdateMemberRoleCallback(cb);
1336 c_param.user_data = cb_holder;
1337 c_param.server_id = server_id;
1338 c_param.channel_id = channel_id;
1339 c_param.accid = const_cast<char*>(accid.c_str());
1340 permissions_.clear();
1341 for (auto&& permission : permissions)
1342 permissions_.push_back({permission.first, permission.second});
1343 c_param.permission_count = permissions_.size();
1344 c_param.permissions = permissions_.data();
1345 c_param.cb = [](const NIMQChatUpdateMemberRoleResp* resp) {
1346 InvokeCallback<QChatUpdateMemberRoleCallback, NIMQChatUpdateMemberRoleResp>(resp);
1347 };
1348 return c_param;
1349 }
1350
1351protected:
1352 mutable std::vector<NIMQChatPermissionGroup> permissions_;
1353};
1354
1359 uint64_t server_id = 0;
1361 uint64_t channel_id = 0;
1363 std::string accid;
1366 server_id = param.server_id;
1367 channel_id = param.channel_id;
1368 accid = param.accid;
1369 cb = [c_callback = param.cb, user_data = param.user_data](const QChatRemoveMemberRoleResp& response) {
1370 auto c_response = response.ToCParam();
1371 c_response.user_data = user_data;
1372 c_callback(&c_response);
1373 };
1374 }
1376 auto cb_holder = new QChatRemoveMemberRoleCallback(cb);
1378 c_param.user_data = cb_holder;
1379 c_param.server_id = server_id;
1380 c_param.channel_id = channel_id;
1381 c_param.accid = const_cast<char*>(accid.c_str());
1382 c_param.cb = [](const NIMQChatRemoveMemberRoleResp* resp) {
1383 InvokeCallback<QChatRemoveMemberRoleCallback, NIMQChatRemoveMemberRoleResp>(resp);
1384 };
1385 return c_param;
1386 }
1387};
1388
1393 uint64_t server_id = 0;
1395 uint64_t channel_id = 0;
1397 uint64_t timestamp = 0;
1399 uint32_t limit = 100;
1402 server_id = param.server_id;
1403 channel_id = param.channel_id;
1404 timestamp = param.timestamp;
1405 limit = param.limit;
1406 cb = [c_callback = param.cb, user_data = param.user_data](const QChatGetMemberRolesResp& response) {
1407 auto c_response = response.ToCParam();
1408 c_response.user_data = user_data;
1409 c_callback(&c_response);
1410 };
1411 }
1413 auto cb_holder = new QChatGetMemberRoleInChannelCallback(cb);
1415 c_param.user_data = cb_holder;
1416 c_param.server_id = server_id;
1417 c_param.channel_id = channel_id;
1418 c_param.timestamp = timestamp;
1419 c_param.limit = limit;
1420 c_param.cb = [](const NIMQChatGetMemberRolesResp* resp) {
1421 InvokeCallback<QChatGetMemberRoleInChannelCallback, NIMQChatGetMemberRolesResp>(resp);
1422 };
1423 return c_param;
1424 }
1425};
1426
1431 uint64_t server_id = 0;
1433 std::string accid;
1435 uint64_t timestamp = 0;
1437 uint32_t limit = 100;
1440 server_id = param.server_id;
1441 accid = param.accid;
1442 timestamp = param.timestamp;
1443 limit = param.limit;
1444 cb = [c_callback = param.cb, user_data = param.user_data](const QChatGetRolesByAccidResp& response) {
1445 auto c_response = response.ToCParam();
1446 c_response.user_data = user_data;
1447 c_callback(&c_response);
1448 };
1449 }
1451 auto cb_holder = new QChatGetRolesByMemberIdCallback(cb);
1453 c_param.user_data = cb_holder;
1454 c_param.server_id = server_id;
1455 c_param.accid = const_cast<char*>(accid.c_str());
1456 c_param.timestamp = timestamp;
1457 c_param.limit = limit;
1458 c_param.cb = [](const NIMQChatGetServerRolesByMembersIdResp* resp) {
1459 InvokeCallback<QChatGetRolesByMemberIdCallback, NIMQChatGetServerRolesByMembersIdResp>(resp);
1460 };
1461 return c_param;
1462 }
1463};
1464
1468 uint64_t server_id{0};
1469 std::vector<std::string> accids;
1474 server_id = param.server_id;
1475 for (size_t i = 0; i < param.account_count; i++) {
1476 accids.push_back(param.accids[i]);
1477 }
1478 sort_type = param.sort_type;
1479 search_order = param.search_order;
1480 cb = [c_callback = param.cb, user_data = param.user_data](const QChatGetExistingServerRolesByAccidsResp& response) {
1481 auto c_response = response.ToCParam();
1482 c_response.user_data = user_data;
1483 c_callback(&c_response);
1484 };
1485 }
1487 auto cb_holder = new QChatGetRolesByMemberIdsCallback(cb);
1489 c_param.user_data = cb_holder;
1490 c_param.server_id = server_id;
1491 c_param.account_count = accids.size();
1492 accids_.clear();
1493 for (auto& accid : accids)
1494 accids_.push_back(const_cast<char*>(accid.c_str()));
1495 c_param.accids = accids_.data();
1496 c_param.sort_type = sort_type;
1497 c_param.search_order = search_order;
1498 c_param.cb = [](const NIMQChatGetServerRolesByMemberIdsResp* resp) {
1499 InvokeCallback<QChatGetRolesByMemberIdsCallback, NIMQChatGetServerRolesByMemberIdsResp>(resp);
1500 };
1501 return c_param;
1502 }
1503
1504protected:
1505 mutable std::vector<QChatMemberAccountId> accids_;
1506};
1507
1511 uint64_t server_id{0};
1512 uint64_t channel_id{0};
1513 std::vector<uint64_t> role_ids;
1516 server_id = param.server_id;
1517 channel_id = param.channel_id;
1518 for (size_t i = 0; i < param.role_count; i++) {
1519 role_ids.push_back(param.role_ids[i]);
1520 }
1521 cb = [c_callback = param.cb, user_data = param.user_data](const QChatGetExistingChannelRolesByServerRoleIdsResp& response) {
1522 auto c_response = response.ToCParam();
1523 c_response.user_data = user_data;
1524 c_callback(&c_response);
1525 };
1526 }
1528 auto cb_holder = new QChatGetExistingRolesInChannelCallback(cb);
1530 c_param.user_data = cb_holder;
1531 c_param.server_id = server_id;
1532 c_param.channel_id = channel_id;
1533 c_param.role_count = role_ids.size();
1534 role_ids_.clear();
1535 for (auto& roleid : role_ids)
1536 role_ids_.push_back(roleid);
1537 c_param.role_ids = role_ids_.data();
1538 c_param.cb = [](const NIMQChatGetExistingRolesInChannelResp* resp) {
1539 InvokeCallback<QChatGetExistingRolesInChannelCallback, NIMQChatGetExistingRolesInChannelResp>(resp);
1540 };
1541 return c_param;
1542 }
1543
1544protected:
1545 mutable std::vector<uint64_t> role_ids_;
1546};
1547
1551 uint64_t server_id{0};
1552 uint64_t channel_id{0};
1553 std::vector<std::string> accids;
1556 server_id = param.server_id;
1557 channel_id = param.channel_id;
1558 for (size_t i = 0; i < param.account_count; i++) {
1559 accids.push_back(param.accids[i]);
1560 }
1561 cb = [c_callback = param.cb, user_data = param.user_data](const QChatGetExistingAccidsOfMemberRolesResp& response) {
1562 auto c_response = response.ToCParam();
1563 c_response.user_data = user_data;
1564 c_callback(&c_response);
1565 };
1566 }
1568 auto cb_holder = new QChatGetExistingAccidsOfMemberRolesCallback(cb);
1570 c_param.user_data = cb_holder;
1571 c_param.server_id = server_id;
1572 c_param.channel_id = channel_id;
1573 c_param.account_count = accids.size();
1574 accids_.clear();
1575 for (auto& accid : accids)
1576 accids_.push_back(const_cast<char*>(accid.c_str()));
1577 c_param.accids = accids_.data();
1578 c_param.cb = [](const NIMQChatGetExistingAccidsOfMemberRolesResp* resp) {
1579 InvokeCallback<QChatGetExistingAccidsOfMemberRolesCallback, NIMQChatGetExistingAccidsOfMemberRolesResp>(resp);
1580 };
1581 return c_param;
1582 }
1583
1584protected:
1585 mutable std::vector<QChatMemberAccountId> accids_;
1586};
1587
1591 uint64_t server_id{0};
1592 uint64_t role_id{0};
1593 std::vector<std::string> accids;
1596 server_id = param.server_id;
1597 role_id = param.role_id;
1598 for (size_t i = 0; i < param.account_count; i++) {
1599 accids.push_back(param.accids[i]);
1600 }
1601 cb = [c_callback = param.cb, user_data = param.user_data](const QChatGetExistingAccidsInServerRoleResp& response) {
1602 auto c_response = response.ToCParam();
1603 c_response.user_data = user_data;
1604 c_callback(&c_response);
1605 };
1606 }
1608 auto cb_holder = new QChatGetExistingAccidsInServerRoleCallback(cb);
1610 c_param.user_data = cb_holder;
1611 c_param.server_id = server_id;
1612 c_param.role_id = role_id;
1613 c_param.account_count = accids.size();
1614 accids_.clear();
1615 for (auto& accid : accids)
1616 accids_.push_back(const_cast<char*>(accid.c_str()));
1617 c_param.accids = accids_.data();
1618 c_param.cb = [](const NIMQChatGetExistingAccidsInServerRoleResp* resp) {
1619 InvokeCallback<QChatGetExistingAccidsInServerRoleCallback, NIMQChatGetExistingAccidsInServerRoleResp>(resp);
1620 };
1621 return c_param;
1622 }
1623
1624protected:
1625 mutable std::vector<QChatMemberAccountId> accids_;
1626};
1627
1632 uint64_t server_id{0};
1634 uint64_t channel_id{0};
1636 uint32_t permission{kPermissionManageServer};
1639 server_id = param.server_id;
1640 channel_id = param.channel_id;
1641 permission = param.permission;
1642 cb = [c_callback = param.cb, user_data = param.user_data](const QChatCheckPermissionResp& response) {
1643 auto c_response = response.ToCParam();
1644 c_response.user_data = user_data;
1645 c_callback(&c_response);
1646 };
1647 }
1649 auto cb_holder = new QChatCheckPermissionCallback(cb);
1651 c_param.user_data = cb_holder;
1652 c_param.server_id = server_id;
1653 c_param.channel_id = channel_id;
1654 c_param.permission = permission;
1655 c_param.cb = [](const NIMQChatCheckPermissionResp* resp) {
1656 InvokeCallback<QChatCheckPermissionCallback, NIMQChatCheckPermissionResp>(resp);
1657 };
1658 return c_param;
1659 }
1660};
1661
1666 uint64_t server_id{0};
1668 uint64_t channel_id{0};
1670 std::vector<uint32_t> permissions;
1673 server_id = param.server_id;
1674 channel_id = param.channel_id;
1675 for (size_t i = 0; i < param.permission_count; i++) {
1676 permissions.push_back(param.permissions[i]);
1677 }
1678 cb = [c_callback = param.cb, user_data = param.user_data](const QChatCheckPermissionsResp& response) {
1679 auto c_response = response.ToCParam();
1680 c_response.user_data = user_data;
1681 c_callback(&c_response);
1682 };
1683 }
1685 auto cb_holder = new QChatCheckPermissionsCallback(cb);
1687 c_param.user_data = cb_holder;
1688 c_param.server_id = server_id;
1689 c_param.channel_id = channel_id;
1690 c_param.permission_count = permissions.size();
1691 c_param.permissions = const_cast<uint32_t*>(permissions.data());
1692 c_param.cb = [](const NIMQChatCheckPermissionsResp* resp) {
1693 InvokeCallback<QChatCheckPermissionsCallback, NIMQChatCheckPermissionsResp>(resp);
1694 };
1695 return c_param;
1696 }
1697};
1698
1703 uint64_t server_id{0};
1705 uint64_t category_id{0};
1707 uint64_t parent_role_id{0};
1710 server_id = param.server_id;
1711 category_id = param.category_id;
1712 parent_role_id = param.parent_role_id;
1713 cb = [c_callback = param.cb, user_data = param.user_data](const QChatAddChannelCategoryRoleResp& response) {
1714 auto c_response = response.ToCParam();
1715 c_response.user_data = user_data;
1716 c_callback(&c_response);
1717 };
1718 }
1720 auto cb_holder = new QChatAddChannelCategoryRoleCallback(cb);
1722 c_param.user_data = cb_holder;
1723 c_param.server_id = server_id;
1724 c_param.category_id = category_id;
1725 c_param.parent_role_id = parent_role_id;
1726 c_param.cb = [](const NIMQChatAddChannelCategoryRoleResp* resp) {
1727 InvokeCallback<QChatAddChannelCategoryRoleCallback, NIMQChatAddChannelCategoryRoleResp>(resp);
1728 };
1729 return c_param;
1730 }
1731};
1732
1737 uint64_t server_id{0};
1739 uint64_t category_id{0};
1741 uint64_t role_id{0};
1743 QChatPermission permissions{};
1746 server_id = param.server_id;
1747 category_id = param.category_id;
1748 role_id = param.role_id;
1749 for (size_t i = 0; i < param.permission_count; i++)
1750 permissions.emplace(param.permissions[i].permission, param.permissions[i].option);
1751 cb = [c_callback = param.cb, user_data = param.user_data](const QChatUpdateChannelCategoryRoleResp& response) {
1752 auto c_response = response.ToCParam();
1753 c_response.user_data = user_data;
1754 c_callback(&c_response);
1755 };
1756 }
1758 auto cb_holder = new QChatUpdateChannelCategoryRoleCallback(cb);
1760 c_param.user_data = cb_holder;
1761 c_param.server_id = server_id;
1762 c_param.category_id = category_id;
1763 c_param.role_id = role_id;
1764 permissions_.clear();
1765 for (auto&& permission : permissions)
1766 permissions_.push_back({permission.first, permission.second});
1767 c_param.permission_count = permissions_.size();
1768 c_param.permissions = permissions_.data();
1769 c_param.cb = [](const NIMQChatUpdateChannelCategoryRoleResp* resp) {
1770 InvokeCallback<QChatUpdateChannelCategoryRoleCallback, NIMQChatUpdateChannelCategoryRoleResp>(resp);
1771 };
1772 return c_param;
1773 }
1774
1775protected:
1776 mutable std::vector<NIMQChatPermissionGroup> permissions_;
1777};
1778
1782 uint64_t server_id{0};
1783 uint64_t category_id{0};
1784 uint64_t role_id{0};
1787 server_id = param.server_id;
1788 category_id = param.category_id;
1789 role_id = param.role_id;
1790 cb = [c_callback = param.cb, user_data = param.user_data](const QChatRemoveChannelCategoryRoleResp& response) {
1791 auto c_response = response.ToCParam();
1792 c_response.user_data = user_data;
1793 c_callback(&c_response);
1794 };
1795 }
1797 auto cb_holder = new QChatRemoveChannelCategoryRoleCallback(cb);
1799 c_param.user_data = cb_holder;
1800 c_param.server_id = server_id;
1801 c_param.category_id = category_id;
1802 c_param.role_id = role_id;
1803 c_param.cb = [](const NIMQChatRemoveChannelCategoryRoleResp* resp) {
1804 InvokeCallback<QChatRemoveChannelCategoryRoleCallback, NIMQChatRemoveChannelCategoryRoleResp>(resp);
1805 };
1806 return c_param;
1807 }
1808};
1809
1813 uint64_t server_id{0};
1814 uint64_t category_id{0};
1815 uint64_t timestamp{0};
1816 uint32_t limit{100};
1819 server_id = param.server_id;
1820 category_id = param.category_id;
1821 timestamp = param.timestamp;
1822 limit = param.limit;
1823 cb = [c_callback = param.cb, user_data = param.user_data](const QChatGetChannelCategoryRolesPageResp& response) {
1824 auto c_response = response.ToCParam();
1825 c_response.user_data = user_data;
1826 c_callback(&c_response);
1827 };
1828 }
1830 auto cb_holder = new QChatGetChannelCategoryRolesPageCallback(cb);
1832 c_param.user_data = cb_holder;
1833 c_param.server_id = server_id;
1834 c_param.category_id = category_id;
1835 c_param.timestamp = timestamp;
1836 c_param.limit = limit;
1837 c_param.cb = [](const NIMQChatGetChannelCategoryRolesPageResp* resp) {
1838 InvokeCallback<QChatGetChannelCategoryRolesPageCallback, NIMQChatGetChannelCategoryRolesPageResp>(resp);
1839 };
1840 return c_param;
1841 }
1842};
1843
1847 uint64_t server_id{0};
1848 uint64_t category_id{0};
1849 std::string accid;
1852 server_id = param.server_id;
1853 category_id = param.category_id;
1854 accid = param.accid;
1855 cb = [c_callback = param.cb, user_data = param.user_data](const QChatAddChannelCategoryMemberRoleResp& response) {
1856 auto c_response = response.ToCParam();
1857 c_response.user_data = user_data;
1858 c_callback(&c_response);
1859 };
1860 }
1862 auto cb_holder = new QChatAddChannelCategoryMemberRoleCallback(cb);
1864 c_param.user_data = cb_holder;
1865 c_param.server_id = server_id;
1866 c_param.category_id = category_id;
1867 c_param.accid = const_cast<char*>(accid.c_str());
1868 c_param.cb = [](const NIMQChatAddChannelCategoryMemberRoleResp* resp) {
1869 InvokeCallback<QChatAddChannelCategoryMemberRoleCallback, NIMQChatAddChannelCategoryMemberRoleResp>(resp);
1870 };
1871 return c_param;
1872 }
1873};
1874
1879 uint64_t server_id{0};
1881 uint64_t category_id{0};
1883 std::string accid;
1885 QChatPermission permissions{};
1888 server_id = param.server_id;
1889 category_id = param.category_id;
1890 accid = param.accid;
1891 for (size_t i = 0; i < param.permission_count; i++)
1892 permissions.emplace(param.permissions[i].permission, param.permissions[i].option);
1893 cb = [c_callback = param.cb, user_data = param.user_data](const QChatUpdateChannelCategoryMemberRoleResp& response) {
1894 auto c_response = response.ToCParam();
1895 c_response.user_data = user_data;
1896 c_callback(&c_response);
1897 };
1898 }
1900 auto cb_holder = new QChatUpdateChannelCategoryMemberRoleCallback(cb);
1902 c_param.user_data = cb_holder;
1903 c_param.server_id = server_id;
1904 c_param.category_id = category_id;
1905 c_param.accid = const_cast<char*>(accid.c_str());
1906 permissions_.clear();
1907 for (auto&& permission : permissions)
1908 permissions_.push_back({permission.first, permission.second});
1909 c_param.permission_count = permissions_.size();
1910 c_param.permissions = permissions_.data();
1911 c_param.cb = [](const NIMQChatUpdateChannelCategoryMemberRoleResp* resp) {
1912 InvokeCallback<QChatUpdateChannelCategoryMemberRoleCallback, NIMQChatUpdateChannelCategoryMemberRoleResp>(resp);
1913 };
1914 return c_param;
1915 }
1916
1917protected:
1918 mutable std::vector<NIMQChatPermissionGroup> permissions_;
1919};
1920
1924 uint64_t server_id{0};
1925 uint64_t category_id{0};
1926 std::string accid;
1929 server_id = param.server_id;
1930 category_id = param.category_id;
1931 accid = param.accid;
1932 cb = [c_callback = param.cb, user_data = param.user_data](const QChatRemoveChannelCategoryMemberRoleResp& response) {
1933 auto c_response = response.ToCParam();
1934 c_response.user_data = user_data;
1935 c_callback(&c_response);
1936 };
1937 }
1939 auto cb_holder = new QChatRemoveChannelCategoryMemberRoleCallback(cb);
1941 c_param.user_data = cb_holder;
1942 c_param.server_id = server_id;
1943 c_param.category_id = category_id;
1944 c_param.accid = const_cast<char*>(accid.c_str());
1945 c_param.cb = [](const NIMQChatRemoveChannelCategoryMemberRoleResp* resp) {
1946 InvokeCallback<QChatRemoveChannelCategoryMemberRoleCallback, NIMQChatRemoveChannelCategoryMemberRoleResp>(resp);
1947 };
1948 return c_param;
1949 }
1950};
1951
1955 uint64_t server_id{0};
1956 uint64_t category_id{0};
1957 uint64_t timestamp{0};
1958 uint32_t limit{100};
1961 server_id = param.server_id;
1962 category_id = param.category_id;
1963 timestamp = param.timestamp;
1964 limit = param.limit;
1965 cb = [c_callback = param.cb, user_data = param.user_data](const QChatGetChannelCategoryMemberRolesPageResp& response) {
1966 auto c_response = response.ToCParam();
1967 c_response.user_data = user_data;
1968 c_callback(&c_response);
1969 };
1970 }
1972 auto cb_holder = new QChatGetChannelCategoryMemberRolesPageCallback(cb);
1974 c_param.user_data = cb_holder;
1975 c_param.server_id = server_id;
1976 c_param.category_id = category_id;
1977 c_param.timestamp = timestamp;
1978 c_param.limit = limit;
1979 c_param.cb = [](const NIMQChatGetChannelCategoryMemberRolesPageResp* resp) {
1980 InvokeCallback<QChatGetChannelCategoryMemberRolesPageCallback, NIMQChatGetChannelCategoryMemberRolesPageResp>(resp);
1981 };
1982 return c_param;
1983 }
1984};
1985
1986} // namespace nim
1987
1988#endif // __NIM_QCHAT_IDENTITY_CPP_DEF_H__
namespace nim
std::function< void(const QChatUpdateServerRolePrioritiesResp &)> QChatBatchUpdateServerRolePrioritiesCallback
Definition nim_qchat_role_cpp_def.h:798
std::function< void(const QChatGetChannelRolesResp &)> QChatGetChannelRolesCallback
Definition nim_qchat_role_cpp_def.h:807
std::function< void(const QChatUpdateServerRoleResp &)> QChatUpdateServerRoleCallback
Definition nim_qchat_role_cpp_def.h:797
std::function< void(const QChatGetExistingAccidsInServerRoleResp &)> QChatGetExistingAccidsInServerRoleCallback
Definition nim_qchat_role_cpp_def.h:816
QChatBaseCallback QChatRemoveChannelCategoryRoleCallback
Definition nim_qchat_role_cpp_def.h:821
std::map< uint32_t, NIMQChatPermissionsOption > QChatPermission
Definition nim_qchat_role_cpp_def.h:21
QChatBaseCallback QChatRemoveMemberRoleCallback
Definition nim_qchat_role_cpp_def.h:810
std::function< void(const QChatAddChannelCategoryRoleResp &)> QChatAddChannelCategoryRoleCallback
Definition nim_qchat_role_cpp_def.h:819
std::function< void(const QChatUpdateChannelRoleResp &)> QChatUpdateChannelRoleCallback
Definition nim_qchat_role_cpp_def.h:805
QChatBaseCallback QChatRemoveChannelRoleCallback
Definition nim_qchat_role_cpp_def.h:806
std::function< void(const QChatGetMemberRolesResp &)> QChatGetMemberRoleInChannelCallback
Definition nim_qchat_role_cpp_def.h:811
std::function< void(const QChatAddChannelCategoryMemberRoleResp &)> QChatAddChannelCategoryMemberRoleCallback
Definition nim_qchat_role_cpp_def.h:823
std::function< void(const QChatUpdateChannelCategoryRoleResp &)> QChatUpdateChannelCategoryRoleCallback
Definition nim_qchat_role_cpp_def.h:820
std::function< void(const QChatGetExistingChannelRolesByServerRoleIdsResp &)> QChatGetExistingRolesInChannelCallback
Definition nim_qchat_role_cpp_def.h:814
QChatBaseCallback QChatDeleteServerRoleCallback
Definition nim_qchat_role_cpp_def.h:799
QChatBaseCallback QChatRemoveChannelCategoryMemberRoleCallback
Definition nim_qchat_role_cpp_def.h:825
std::function< void(const QChatGetMembersFromServerRoleResp &)> QChatGetMembersFromServerRoleCallback
Definition nim_qchat_role_cpp_def.h:803
std::function< void(const QChatRemoveMembersFromServerRoleResp &)> QChatRemoveMembersFromServerRoleCallback
Definition nim_qchat_role_cpp_def.h:802
std::function< void(const QChatAddMemberRoleResp &)> QChatAddMemberRoleCallback
Definition nim_qchat_role_cpp_def.h:808
std::function< void(const QChatGetExistingAccidsOfMemberRolesResp &)> QChatGetExistingAccidsOfMemberRolesCallback
Definition nim_qchat_role_cpp_def.h:815
std::function< void(const QChatUpdateMemberRoleResp &)> QChatUpdateMemberRoleCallback
Definition nim_qchat_role_cpp_def.h:809
std::function< void(const QChatUpdateChannelCategoryMemberRoleResp &)> QChatUpdateChannelCategoryMemberRoleCallback
Definition nim_qchat_role_cpp_def.h:824
std::function< void(const QChatGetServerRolesResp &)> QChatGetServerRolesCallback
Definition nim_qchat_role_cpp_def.h:800
std::function< void(const QChatCreateServerRoleResp &)> QChatCreateServerRoleCallback
Definition nim_qchat_role_cpp_def.h:796
std::function< void(const QChatCheckPermissionsResp &)> QChatCheckPermissionsCallback
Definition nim_qchat_role_cpp_def.h:818
std::function< void(const QChatAddChannelRoleResp &)> QChatAddChannelRoleCallback
Definition nim_qchat_role_cpp_def.h:804
std::function< void(const QChatGetChannelCategoryRolesPageResp &)> QChatGetChannelCategoryRolesPageCallback
Definition nim_qchat_role_cpp_def.h:822
std::function< void(const QChatGetChannelCategoryMemberRolesPageResp &)> QChatGetChannelCategoryMemberRolesPageCallback
Definition nim_qchat_role_cpp_def.h:826
std::function< void(const QChatCheckPermissionResp &)> QChatCheckPermissionCallback
Definition nim_qchat_role_cpp_def.h:817
std::function< void(const QChatGetExistingServerRolesByAccidsResp &)> QChatGetRolesByMemberIdsCallback
Definition nim_qchat_role_cpp_def.h:813
std::function< void(const QChatAddMembersToServerRoleResp &)> QChatAddMembersToServerRoleCallback
Definition nim_qchat_role_cpp_def.h:801
std::function< void(const QChatBaseResp &) QChatBaseCallback)
通用回调模板
Definition nim_qchat_public_cpp_def.h:104
std::function< void(const QChatGetRolesByAccidResp &)> QChatGetRolesByMemberIdCallback
Definition nim_qchat_role_cpp_def.h:812
NIMQChatSearchOrder
搜索排序顺序
Definition nim_qchat_public_def.h:109
@ kNIMQChatSearchOrderDesc
按时间倒序
Definition nim_qchat_public_def.h:113
@ kPermissionManageServer
管理服务器,Server
Definition nim_qchat_role_def.h:20
NIMQChatSortType
身份组排序类型
Definition nim_qchat_role_def.h:646
@ kNIMQChatSortByCreateTime
按创建时间排序
Definition nim_qchat_role_def.h:648
NIMQChatRoleType
Definition nim_qchat_role_def.h:94
@ kRoleTypeCustom
自定义身份组
Definition nim_qchat_role_def.h:100
NIMQChatPermissionsOption
Definition nim_qchat_role_def.h:76
#define NIM_QCHAT_SDK_CPPWRAPPER_DLL_API
Definition nim_qchat_sdk_cpp_wrapper.h:38
@ kNIMResSuccess
没有错误,一切正常
Definition public_defines.h:26
Definition nim_qchat_role_def.h:775
nim_qchat_role_channel_category_member_role_add_cb_func cb
Definition nim_qchat_role_def.h:776
uint64_t category_id
频道分组 ID
Definition nim_qchat_role_def.h:781
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:779
char * accid
用户 ID
Definition nim_qchat_role_def.h:783
void * user_data
Definition nim_qchat_role_def.h:777
Definition nim_qchat_role_def.h:297
uint32_t res_code
Definition nim_qchat_role_def.h:298
NIMQChatChannelCategoryMemberRoleInfo role_info
Definition nim_qchat_role_def.h:300
Definition nim_qchat_role_def.h:721
void * user_data
Definition nim_qchat_role_def.h:723
uint64_t category_id
频道分组 ID
Definition nim_qchat_role_def.h:727
uint64_t parent_role_id
服务器身份组ID
Definition nim_qchat_role_def.h:729
nim_qchat_role_channel_category_add_cb_func cb
Definition nim_qchat_role_def.h:722
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:725
Definition nim_qchat_role_def.h:544
void * user_data
Definition nim_qchat_role_def.h:546
uint64_t parent_role_id
Definition nim_qchat_role_def.h:548
uint64_t server_id
Definition nim_qchat_role_def.h:547
nim_qchat_role_channel_add_cb_func cb
Definition nim_qchat_role_def.h:545
uint64_t channel_id
Definition nim_qchat_role_def.h:549
Definition nim_qchat_role_def.h:257
uint32_t res_code
Definition nim_qchat_role_def.h:258
NIMQChatRoleInfo role_info
Definition nim_qchat_role_def.h:260
Definition nim_qchat_role_def.h:590
nim_qchat_role_member_add_cb_func cb
Definition nim_qchat_role_def.h:591
char * accid
Definition nim_qchat_role_def.h:595
uint64_t server_id
Definition nim_qchat_role_def.h:593
void * user_data
Definition nim_qchat_role_def.h:592
uint64_t channel_id
Definition nim_qchat_role_def.h:594
Definition nim_qchat_role_def.h:290
uint32_t res_code
Definition nim_qchat_role_def.h:291
Definition nim_qchat_role_def.h:511
size_t member_count
要加入的用户数量
Definition nim_qchat_role_def.h:521
nim_qchat_role_server_add_member_cb_func cb
Definition nim_qchat_role_def.h:512
uint64_t role_id
身份组 ID
Definition nim_qchat_role_def.h:517
void * user_data
Definition nim_qchat_role_def.h:513
char ** members
用户数据指针首地址
Definition nim_qchat_role_def.h:519
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:515
Definition nim_qchat_role_def.h:236
QChatMemberAccountId * succeed_list
Definition nim_qchat_role_def.h:239
size_t succeed_count
Definition nim_qchat_role_def.h:240
size_t failed_count
Definition nim_qchat_role_def.h:242
QChatMemberAccountId * failed_list
Definition nim_qchat_role_def.h:241
uint32_t res_code
Definition nim_qchat_role_def.h:237
Definition nim_qchat_role_def.h:469
uint64_t priority
Definition nim_qchat_role_def.h:471
uint64_t role_id
Definition nim_qchat_role_def.h:470
Definition nim_qchat_role_def.h:475
uint64_t server_id
Definition nim_qchat_role_def.h:478
NIMQChatBatchUpdateServeRolePriorityGroup * update_priority_info
要更新的身份组 ID 及优先级组合
Definition nim_qchat_role_def.h:480
size_t update_count
Definition nim_qchat_role_def.h:481
nim_qchat_role_server_batch_update_priorities_cb_func cb
Definition nim_qchat_role_def.h:476
void * user_data
Definition nim_qchat_role_def.h:477
Definition nim_qchat_role_def.h:188
uint64_t update_time
身份组修改时间
Definition nim_qchat_role_def.h:202
uint64_t role_id
该定制权限所在的身份组 ID
Definition nim_qchat_role_def.h:192
uint64_t create_time
身份组创建时间
Definition nim_qchat_role_def.h:200
size_t permissions_count
身份组权限组合数量
Definition nim_qchat_role_def.h:198
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition nim_qchat_role_def.h:196
uint64_t category_id
该定制权限所在的频道分组 ID
Definition nim_qchat_role_def.h:190
NIMQChatMemberInfo member_info
定制权限的用户信息
Definition nim_qchat_role_def.h:194
uint64_t category_id
频道分组 ID
Definition nim_qchat_role_def.h:130
bool valid_flag
有效标志
Definition nim_qchat_role_def.h:134
uint64_t parent_role_id
继承的服务器身份组 ID
Definition nim_qchat_role_def.h:132
uint64_t channel_id
频道 ID
Definition nim_qchat_role_def.h:122
uint64_t parent_role_id
继承的服务器身份组 ID
Definition nim_qchat_role_def.h:124
Definition nim_qchat_role_def.h:695
uint32_t permission
权限
Definition nim_qchat_role_def.h:703
void * user_data
Definition nim_qchat_role_def.h:697
uint64_t channel_id
channel_id == 0 means check permission in server
Definition nim_qchat_role_def.h:701
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:699
nim_qchat_role_check_permission_cb_func cb
Definition nim_qchat_role_def.h:696
Definition nim_qchat_role_def.h:364
uint32_t res_code
Definition nim_qchat_role_def.h:365
bool has_permission
Definition nim_qchat_role_def.h:367
Definition nim_qchat_role_def.h:707
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:711
uint32_t * permissions
权限列表
Definition nim_qchat_role_def.h:717
nim_qchat_role_check_permissions_cb_func cb
Definition nim_qchat_role_def.h:708
size_t permission_count
权限列表长度
Definition nim_qchat_role_def.h:715
uint64_t channel_id
channel_id == 0 means check permission in server
Definition nim_qchat_role_def.h:713
void * user_data
Definition nim_qchat_role_def.h:709
Definition nim_qchat_role_def.h:371
size_t permissions_count
身份组权限组合数量
Definition nim_qchat_role_def.h:375
uint32_t res_code
Definition nim_qchat_role_def.h:372
NIMQChatPermissionsOption * options
身份组权限开关
Definition nim_qchat_role_def.h:379
uint32_t * permissions
身份组权限类型
Definition nim_qchat_role_def.h:377
Definition nim_qchat_role_def.h:449
nim_qchat_role_server_create_cb_func cb
Definition nim_qchat_role_def.h:450
NIMQChatRoleInfo role_info
服务器身份组信息结构体
Definition nim_qchat_role_def.h:453
void * user_data
Definition nim_qchat_role_def.h:451
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition nim_qchat_role_def.h:455
Definition nim_qchat_role_def.h:206
uint32_t res_code
Definition nim_qchat_role_def.h:207
NIMQChatRoleInfo role_info
Definition nim_qchat_role_def.h:209
Definition nim_qchat_role_def.h:485
uint64_t role_id
身份组 ID
Definition nim_qchat_role_def.h:491
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:489
nim_qchat_role_server_delete_cb_func cb
Definition nim_qchat_role_def.h:486
void * user_data
Definition nim_qchat_role_def.h:487
Definition nim_qchat_role_def.h:815
nim_qchat_role_channel_category_member_role_get_list_page_cb_func cb
Definition nim_qchat_role_def.h:816
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:819
uint64_t timestamp
时间戳,查询最新指定为 0
Definition nim_qchat_role_def.h:823
uint32_t limit
限制返回数量
Definition nim_qchat_role_def.h:825
void * user_data
Definition nim_qchat_role_def.h:817
uint64_t category_id
频道分组 ID
Definition nim_qchat_role_def.h:821
Definition nim_qchat_role_def.h:324
NIMQChatChannelCategoryMemberRoleInfo * role_infos
Definition nim_qchat_role_def.h:327
size_t member_role_count
Definition nim_qchat_role_def.h:328
uint32_t res_code
Definition nim_qchat_role_def.h:325
Definition nim_qchat_role_def.h:761
uint32_t limit
限制查询返回数量
Definition nim_qchat_role_def.h:771
void * user_data
Definition nim_qchat_role_def.h:763
uint64_t category_id
频道分组 ID
Definition nim_qchat_role_def.h:767
uint64_t timestamp
时间戳,查询最新指定为 0
Definition nim_qchat_role_def.h:769
nim_qchat_role_channel_category_get_list_page_cb_func cb
Definition nim_qchat_role_def.h:762
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:765
Definition nim_qchat_role_def.h:576
void * user_data
Definition nim_qchat_role_def.h:578
uint64_t channel_id
频道 ID
Definition nim_qchat_role_def.h:582
uint32_t limit
限制查询返回数量
Definition nim_qchat_role_def.h:586
nim_qchat_role_channel_get_list_cb_func cb
Definition nim_qchat_role_def.h:577
uint64_t timestamp
时间戳,查询最新指定为 0
Definition nim_qchat_role_def.h:584
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:580
Definition nim_qchat_role_def.h:279
uint32_t res_code
Definition nim_qchat_role_def.h:280
size_t role_count
Definition nim_qchat_role_def.h:283
NIMQChatRoleInfo * role_infos
Definition nim_qchat_role_def.h:282
Definition nim_qchat_role_def.h:685
uint64_t role_id
Definition nim_qchat_role_def.h:689
uint64_t server_id
Definition nim_qchat_role_def.h:688
size_t account_count
Definition nim_qchat_role_def.h:691
nim_qchat_role_get_accids_in_server_role_cb_func cb
Definition nim_qchat_role_def.h:686
char ** accids
Definition nim_qchat_role_def.h:690
void * user_data
Definition nim_qchat_role_def.h:687
Definition nim_qchat_role_def.h:675
uint64_t channel_id
Definition nim_qchat_role_def.h:679
QChatMemberAccountId * accids
Definition nim_qchat_role_def.h:680
uint64_t server_id
Definition nim_qchat_role_def.h:678
nim_qhcat_role_get_existing_accids_of_member_roles_cb_func cb
Definition nim_qchat_role_def.h:676
size_t account_count
Definition nim_qchat_role_def.h:681
void * user_data
Definition nim_qchat_role_def.h:677
Definition nim_qchat_role_def.h:356
uint32_t res_code
Definition nim_qchat_role_def.h:357
size_t member_ids_count
Definition nim_qchat_role_def.h:360
QChatMemberAccountId * member_ids
Definition nim_qchat_role_def.h:359
Definition nim_qchat_role_def.h:665
uint64_t channel_id
Definition nim_qchat_role_def.h:669
size_t role_count
Definition nim_qchat_role_def.h:671
uint64_t * role_ids
Definition nim_qchat_role_def.h:670
uint64_t server_id
Definition nim_qchat_role_def.h:668
void * user_data
Definition nim_qchat_role_def.h:667
nim_qchat_role_get_existing_roles_in_channel_cb_func cb
Definition nim_qchat_role_def.h:666
Definition nim_qchat_role_def.h:622
uint64_t timestamp
时间戳,查询最新指定为 0
Definition nim_qchat_role_def.h:630
uint64_t channel_id
频道 ID
Definition nim_qchat_role_def.h:628
uint32_t limit
限制返回数量
Definition nim_qchat_role_def.h:632
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:626
void * user_data
Definition nim_qchat_role_def.h:624
nim_qchat_role_member_get_list_cb_func cb
Definition nim_qchat_role_def.h:623
Definition nim_qchat_role_def.h:316
size_t member_role_count
Definition nim_qchat_role_def.h:320
uint32_t res_code
Definition nim_qchat_role_def.h:317
NIMQChatMemberRoleInfo * role_infos
Definition nim_qchat_role_def.h:319
Definition nim_qchat_role_def.h:528
uint32_t limit
限制返回数量
Definition nim_qchat_role_def.h:538
char * begin_accid
起查 account ID
Definition nim_qchat_role_def.h:540
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:532
void * user_data
Definition nim_qchat_role_def.h:530
nim_qchat_role_server_get_members_cb_func cb
Definition nim_qchat_role_def.h:529
uint64_t role_id
身份组 ID
Definition nim_qchat_role_def.h:534
uint64_t timestamp
时间戳,从最新起查使用 0
Definition nim_qchat_role_def.h:536
Definition nim_qchat_role_def.h:249
uint32_t res_code
Definition nim_qchat_role_def.h:250
size_t member_count
Definition nim_qchat_role_def.h:253
NIMQChatRoleMemberInfo * members
Definition nim_qchat_role_def.h:252
Definition nim_qchat_role_def.h:654
size_t account_count
Definition nim_qchat_role_def.h:659
nim_qchat_role_member_get_roles_by_ids_cb_func cb
Definition nim_qchat_role_def.h:655
NIMQChatSortType sort_type
Definition nim_qchat_role_def.h:660
uint64_t server_id
Definition nim_qchat_role_def.h:657
NIMQChatSearchOrder search_order
Definition nim_qchat_role_def.h:661
QChatMemberAccountId * accids
Definition nim_qchat_role_def.h:658
void * user_data
Definition nim_qchat_role_def.h:656
Definition nim_qchat_role_def.h:342
uint32_t res_code
Definition nim_qchat_role_def.h:343
NIMQChatRoleInfoOfMember * roles_of_member
Definition nim_qchat_role_def.h:345
size_t count
Definition nim_qchat_role_def.h:346
Definition nim_qchat_role_def.h:636
nim_qchat_role_member_roles_cb_func cb
Definition nim_qchat_role_def.h:637
char * accid
Definition nim_qchat_role_def.h:640
uint64_t server_id
Definition nim_qchat_role_def.h:639
uint64_t timestamp
Definition nim_qchat_role_def.h:641
uint32_t limit
Definition nim_qchat_role_def.h:642
void * user_data
Definition nim_qchat_role_def.h:638
Definition nim_qchat_role_def.h:495
uint64_t channel_id
频道 ID, 如果非空,则只需要有该channel的管理权限即可,否则需要有server的管理权限
Definition nim_qchat_role_def.h:505
void * user_data
Definition nim_qchat_role_def.h:497
uint64_t channel_category_id
频道分组 ID, 如果非空,则只需要有该channel_category的管理权限即可,否则需要有server的管理权限
Definition nim_qchat_role_def.h:507
nim_qchat_role_server_get_list_cb_func cb
Definition nim_qchat_role_def.h:496
uint64_t priority
起查的身份组优先级
Definition nim_qchat_role_def.h:503
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:499
uint32_t limit
限制返回数量
Definition nim_qchat_role_def.h:501
Definition nim_qchat_role_def.h:223
NIMQChatRoleInfo * roles
Definition nim_qchat_role_def.h:226
size_t role_count
Definition nim_qchat_role_def.h:227
uint32_t res_code
Definition nim_qchat_role_def.h:224
NIMQChatRoleInfo * joined_roles
Definition nim_qchat_role_def.h:228
size_t joined_role_count
Definition nim_qchat_role_def.h:229
Definition nim_qchat_role_def.h:170
size_t permissions_count
身份组权限组合数量
Definition nim_qchat_role_def.h:180
uint64_t create_time
身份组创建时间
Definition nim_qchat_role_def.h:182
uint64_t role_id
该定制权限所在的身份组 ID
Definition nim_qchat_role_def.h:174
NIMQChatMemberInfo member_info
定制权限的用户信息
Definition nim_qchat_role_def.h:176
uint64_t update_time
身份组修改时间
Definition nim_qchat_role_def.h:184
uint64_t channel_id
该定制权限所在的频道 ID
Definition nim_qchat_role_def.h:172
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition nim_qchat_role_def.h:178
Definition nim_qchat_role_def.h:86
uint32_t permission
权限, 见 NIMQChatPermissions 以及自定义权限
Definition nim_qchat_role_def.h:88
NIMQChatPermissionsOption option
开关
Definition nim_qchat_role_def.h:90
Definition nim_qchat_role_def.h:803
uint64_t category_id
频道分组 ID
Definition nim_qchat_role_def.h:809
char * accid
用户账号
Definition nim_qchat_role_def.h:811
void * user_data
Definition nim_qchat_role_def.h:805
nim_qchat_role_channel_category_member_role_remove_cb_func cb
Definition nim_qchat_role_def.h:804
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:807
Definition nim_qchat_role_def.h:749
uint64_t category_id
频道分组 ID
Definition nim_qchat_role_def.h:755
nim_qchat_role_channel_category_remove_cb_func cb
Definition nim_qchat_role_def.h:750
void * user_data
Definition nim_qchat_role_def.h:751
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:753
uint64_t role_id
身份组 ID
Definition nim_qchat_role_def.h:757
Definition nim_qchat_role_def.h:564
void * user_data
Definition nim_qchat_role_def.h:566
uint64_t role_id
身份组 ID
Definition nim_qchat_role_def.h:572
nim_qchat_role_channel_remove_cb_func cb
Definition nim_qchat_role_def.h:565
uint64_t channel_id
频道 ID
Definition nim_qchat_role_def.h:570
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:568
Definition nim_qchat_role_def.h:610
uint64_t channel_id
身份组 ID
Definition nim_qchat_role_def.h:616
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:614
char * accid
用户账号
Definition nim_qchat_role_def.h:618
void * user_data
Definition nim_qchat_role_def.h:612
nim_qchat_role_member_remove_cb_func cb
Definition nim_qchat_role_def.h:611
Definition nim_qchat_role_def.h:138
char * role_icon
身份组图片 URL
Definition nim_qchat_role_def.h:146
uint64_t role_id
身份组id
Definition nim_qchat_role_def.h:142
NIMQChatChannelCategoryRoleInfo channel_category_role
仅频道分组拥有的身份组字段
Definition nim_qchat_role_def.h:165
NIMQChatServerRoleInfo server_role
仅服务器拥有的身份组字段
Definition nim_qchat_role_def.h:161
char * role_name
身份组名称
Definition nim_qchat_role_def.h:144
uint64_t update_time
身份组修改时间
Definition nim_qchat_role_def.h:158
NIMQChatRoleType role_type
身份组类型 1 表示 Everyone,2 表示定制身份组
Definition nim_qchat_role_def.h:154
size_t permissions_count
身份组权限组合数量
Definition nim_qchat_role_def.h:152
uint64_t create_time
身份组创建时间
Definition nim_qchat_role_def.h:156
NIMQChatChannelRoleInfo channel_role
仅频道拥有的身份组字段
Definition nim_qchat_role_def.h:163
uint64_t server_id
服务器ID
Definition nim_qchat_role_def.h:140
char * extension
身份组扩展字段
Definition nim_qchat_role_def.h:148
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition nim_qchat_role_def.h:150
Definition nim_qchat_role_def.h:335
NIMQChatRoleInfo * roles
Definition nim_qchat_role_def.h:337
size_t role_count
Definition nim_qchat_role_def.h:338
char * member_id
Definition nim_qchat_role_def.h:336
Definition nim_qchat_role_def.h:104
uint64_t role_id
所在身份组role id
Definition nim_qchat_role_def.h:108
NIMQChatMemberInfo member_info
member info
Definition nim_qchat_role_def.h:106
Definition nim_qchat_role_def.h:112
uint32_t member_count
该身份组的成员数量,Everyone 身份组数量为 -1
Definition nim_qchat_role_def.h:114
uint64_t priority
身份组优先级,Everyone 最低为 0,数字越大优先级越低
Definition nim_qchat_role_def.h:116
Definition nim_qchat_role_def.h:787
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition nim_qchat_role_def.h:797
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:791
nim_qchat_role_channel_category_member_role_update_cb_func cb
Definition nim_qchat_role_def.h:788
size_t permission_count
权限设定数量
Definition nim_qchat_role_def.h:799
uint64_t category_id
频道分组 ID
Definition nim_qchat_role_def.h:793
char * accid
用户 ID
Definition nim_qchat_role_def.h:795
void * user_data
Definition nim_qchat_role_def.h:789
Definition nim_qchat_role_def.h:733
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition nim_qchat_role_def.h:743
size_t permission_count
权限设定数量
Definition nim_qchat_role_def.h:745
uint64_t server_id
服务器 ID
Definition nim_qchat_role_def.h:737
void * user_data
Definition nim_qchat_role_def.h:735
nim_qchat_role_channel_category_update_cb_func cb
Definition nim_qchat_role_def.h:734
uint64_t category_id
频道分组 ID
Definition nim_qchat_role_def.h:739
uint64_t role_id
身份组 ID
Definition nim_qchat_role_def.h:741
Definition nim_qchat_role_def.h:553
NIMQChatPermissionGroup * permissions
Definition nim_qchat_role_def.h:559
uint64_t channel_id
Definition nim_qchat_role_def.h:558
uint64_t server_id
Definition nim_qchat_role_def.h:556
uint64_t role_id
Definition nim_qchat_role_def.h:557
void * user_data
Definition nim_qchat_role_def.h:555
nim_qchat_role_channel_update_cb_func cb
Definition nim_qchat_role_def.h:554
size_t permission_count
Definition nim_qchat_role_def.h:560
Definition nim_qchat_role_def.h:599
char * accid
Definition nim_qchat_role_def.h:604
NIMQChatPermissionGroup * permissions
Definition nim_qchat_role_def.h:605
uint64_t channel_id
Definition nim_qchat_role_def.h:603
nim_qchat_role_member_update_cb_func cb
Definition nim_qchat_role_def.h:600
size_t permission_count
Definition nim_qchat_role_def.h:606
void * user_data
Definition nim_qchat_role_def.h:601
uint64_t server_id
Definition nim_qchat_role_def.h:602
Definition nim_qchat_role_def.h:459
NIMQChatRoleInfo role_info
服务器身份组信息结构体
Definition nim_qchat_role_def.h:463
nim_qchat_role_server_update_cb_func cb
Definition nim_qchat_role_def.h:460
void * user_data
Definition nim_qchat_role_def.h:461
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition nim_qchat_role_def.h:465
Definition nim_qchat_role_def.h:213
NIMQChatRoleInfo role_info
Definition nim_qchat_role_def.h:216
void * user_data
Definition nim_qchat_role_def.h:215
uint32_t res_code
Definition nim_qchat_role_def.h:214
Definition nim_qchat_role_cpp_def.h:1845
QChatAddChannelCategoryMemberRoleParam(const NIMQChatAddChannelCategoryMemberRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1851
NIMQChatAddChannelCategoryMemberRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1861
QChatAddChannelCategoryMemberRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1846
std::string accid
Definition nim_qchat_role_cpp_def.h:1849
Definition nim_qchat_role_cpp_def.h:567
NIMQChatAddChannelCategoryMemberRoleResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:579
QChatChannelCategoryMemberRoleInfo role_info
频道分组成员身份组信息
Definition nim_qchat_role_cpp_def.h:571
QChatAddChannelCategoryMemberRoleResp(const NIMQChatAddChannelCategoryMemberRoleResp &c_resp)
Definition nim_qchat_role_cpp_def.h:573
Definition nim_qchat_role_cpp_def.h:1700
QChatAddChannelCategoryRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1701
NIMQChatAddChannelCategoryRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1719
QChatAddChannelCategoryRoleParam(const NIMQChatAddChannelCategoryRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1709
Definition nim_qchat_role_cpp_def.h:457
NIMQChatAddChannelCategoryRoleResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:469
QChatAddChannelCategoryRoleResp(const NIMQChatAddChannelCategoryRoleResp &c_resp)
Definition nim_qchat_role_cpp_def.h:463
QChatChannelCategoryRoleInfo role_info
频道分组身份组信息
Definition nim_qchat_role_cpp_def.h:461
Definition nim_qchat_role_cpp_def.h:1134
NIMQChatAddChannelRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1150
QChatAddChannelRoleParam(const NIMQChatAddChannelRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1140
QChatAddChannelRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1135
Definition nim_qchat_role_cpp_def.h:432
NIMQChatAddChannelRoleResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:443
QChatAddChannelRoleResp(const NIMQChatAddChannelRoleResp &c_resp)
Definition nim_qchat_role_cpp_def.h:437
Definition nim_qchat_role_cpp_def.h:1283
QChatAddMemberRoleParam(const NIMQChatAddMemberRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1289
std::string accid
Definition nim_qchat_role_cpp_def.h:1287
QChatAddMemberRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1284
NIMQChatAddMemberRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1299
Definition nim_qchat_role_cpp_def.h:544
QChatAddMemberRoleResp(const NIMQChatAddMemberRoleResp &c_resp)
Definition nim_qchat_role_cpp_def.h:549
NIMQChatAddMemberRoleResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:553
Definition nim_qchat_role_cpp_def.h:1005
QChatAddMembersToServerRoleParam(const NIMQChatAddMembersToServerRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1014
QChatAddMembersToServerRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1006
std::vector< std::string > members_accids
要添加的成员列表
Definition nim_qchat_role_cpp_def.h:1012
NIMQChatAddMembersToServerRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1025
std::vector< char * > vec_members
Definition nim_qchat_role_cpp_def.h:1044
Definition nim_qchat_role_cpp_def.h:387
std::vector< std::string > failed_list
加入失败的用户列表
Definition nim_qchat_role_cpp_def.h:393
std::vector< char * > failed_members_
Definition nim_qchat_role_cpp_def.h:425
std::vector< std::string > succeed_list
加入成功的用户列表
Definition nim_qchat_role_cpp_def.h:391
NIMQChatAddMembersToServerRoleResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:407
std::vector< char * > succeed_members_
Definition nim_qchat_role_cpp_def.h:424
QChatAddMembersToServerRoleResp(const NIMQChatAddMembersToServerRoleResp &c_resp)
Definition nim_qchat_role_cpp_def.h:396
Definition nim_qchat_public_cpp_def.h:49
Definition nim_qchat_public_cpp_def.h:62
Definition nim_qchat_role_cpp_def.h:217
std::vector< NIMQChatPermissionGroup > vec_permissions
Definition nim_qchat_role_cpp_def.h:261
NIMQChatChannelCategoryMemberRoleInfo ToCParam() const
Definition nim_qchat_role_cpp_def.h:241
QChatChannelCategoryMemberRoleInfo(const NIMQChatChannelCategoryMemberRoleInfo &info)
Definition nim_qchat_role_cpp_def.h:231
Definition nim_qchat_role_cpp_def.h:145
NIMQChatRoleInfo ToCParam() const
Definition nim_qchat_role_cpp_def.h:159
QChatChannelCategoryRoleInfo(const NIMQChatRoleInfo &info)
Definition nim_qchat_role_cpp_def.h:153
Definition nim_qchat_role_cpp_def.h:125
QChatChannelRoleInfo(const NIMQChatRoleInfo &info)
Definition nim_qchat_role_cpp_def.h:131
NIMQChatRoleInfo ToCParam() const
Definition nim_qchat_role_cpp_def.h:136
Definition nim_qchat_role_cpp_def.h:1629
QChatCheckPermissionCallback cb
Definition nim_qchat_role_cpp_def.h:1630
NIMQChatCheckPermissionParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1648
QChatCheckPermissionParam(const NIMQChatCheckPermissionParam &param)
Definition nim_qchat_role_cpp_def.h:1638
Definition nim_qchat_role_cpp_def.h:740
QChatCheckPermissionResp(const NIMQChatCheckPermissionResp &c_resp)
Definition nim_qchat_role_cpp_def.h:745
NIMQChatCheckPermissionResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:751
Definition nim_qchat_role_cpp_def.h:1663
std::vector< uint32_t > permissions
查询的权限列表
Definition nim_qchat_role_cpp_def.h:1670
QChatCheckPermissionsParam(const NIMQChatCheckPermissionsParam &param)
Definition nim_qchat_role_cpp_def.h:1672
QChatCheckPermissionsCallback cb
Definition nim_qchat_role_cpp_def.h:1664
NIMQChatCheckPermissionsParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1684
Definition nim_qchat_role_cpp_def.h:760
NIMQChatCheckPermissionsResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:775
std::vector< uint32_t > permissions_
Definition nim_qchat_role_cpp_def.h:791
QChatCheckPermissionsResp(const NIMQChatCheckPermissionsResp &c_resp)
Definition nim_qchat_role_cpp_def.h:766
std::map< uint32_t, NIMQChatPermissionsOption > permissions
权限列表
Definition nim_qchat_role_cpp_def.h:764
std::vector< NIMQChatPermissionsOption > options_
Definition nim_qchat_role_cpp_def.h:792
Definition nim_qchat_role_cpp_def.h:829
QChatCreateServerRoleParam(const NIMQChatCreateServerRoleParam &param)
Definition nim_qchat_role_cpp_def.h:835
NIMQChatCreateServerRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:844
QChatCreateServerRoleCallback cb
Definition nim_qchat_role_cpp_def.h:830
Definition nim_qchat_role_cpp_def.h:267
QChatCreateServerRoleResp(const NIMQChatCreateServerRoleResp &c_resp)
Definition nim_qchat_role_cpp_def.h:272
std::vector< NIMQChatPermissionGroup > permissions_
Definition nim_qchat_role_cpp_def.h:286
QChatServerRoleInfo role_info
Definition nim_qchat_role_cpp_def.h:270
NIMQChatServerRoleInfo server_role_info_
Definition nim_qchat_role_cpp_def.h:287
NIMQChatCreateServerRoleResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:278
Definition nim_qchat_role_cpp_def.h:933
NIMQChatDeleteServerRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:949
QChatDeleteServerRoleCallback cb
Definition nim_qchat_role_cpp_def.h:934
QChatDeleteServerRoleParam(const NIMQChatDeleteServerRoleParam &param)
Definition nim_qchat_role_cpp_def.h:940
Definition nim_qchat_role_cpp_def.h:1953
QChatGetChannelCategoryMemberRolesPageParam(const NIMQChatGetChannelCategoryMemberRolesPageParam &param)
Definition nim_qchat_role_cpp_def.h:1960
NIMQChatGetChannelCategoryMemberRolesPageParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1971
QChatGetChannelCategoryMemberRolesPageCallback cb
Definition nim_qchat_role_cpp_def.h:1954
Definition nim_qchat_role_cpp_def.h:624
NIMQChatGetChannelCategoryMemberRolesPageResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:637
std::vector< NIMQChatChannelCategoryMemberRoleInfo > role_infos_
Definition nim_qchat_role_cpp_def.h:650
std::vector< QChatChannelCategoryMemberRoleInfo > role_infos
Definition nim_qchat_role_cpp_def.h:627
QChatGetChannelCategoryMemberRolesPageResp(const NIMQChatGetChannelCategoryMemberRolesPageResp &c_resp)
Definition nim_qchat_role_cpp_def.h:629
Definition nim_qchat_role_cpp_def.h:1811
QChatGetChannelCategoryRolesPageParam(const NIMQChatGetChannelCategoryRolesPageParam &param)
Definition nim_qchat_role_cpp_def.h:1818
QChatGetChannelCategoryRolesPageCallback cb
Definition nim_qchat_role_cpp_def.h:1812
NIMQChatGetChannelCategoryRolesPageParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1829
Definition nim_qchat_role_cpp_def.h:514
std::vector< NIMQChatRoleInfo > vec_role_infos_
Definition nim_qchat_role_cpp_def.h:540
NIMQChatGetChannelCategoryRolesPageResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:527
QChatGetChannelCategoryRolesPageResp(const NIMQChatGetChannelCategoryRolesPageResp &c_resp)
Definition nim_qchat_role_cpp_def.h:519
std::vector< QChatChannelCategoryRoleInfo > role_infos
Definition nim_qchat_role_cpp_def.h:517
Definition nim_qchat_role_cpp_def.h:1245
QChatGetChannelRolesParam(const NIMQChatGetChannelRolesParam &param)
Definition nim_qchat_role_cpp_def.h:1256
NIMQChatGetChannelRolesParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1267
QChatGetChannelRolesCallback cb
Definition nim_qchat_role_cpp_def.h:1246
Definition nim_qchat_role_cpp_def.h:482
NIMQChatGetChannelRolesResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:497
std::vector< QChatChannelRoleInfo > role_infos
Definition nim_qchat_role_cpp_def.h:485
QChatGetChannelRolesResp(const NIMQChatGetChannelRolesResp &c_resp)
Definition nim_qchat_role_cpp_def.h:488
std::vector< NIMQChatRoleInfo > channel_role_infos_
Definition nim_qchat_role_cpp_def.h:510
Definition nim_qchat_role_cpp_def.h:1589
QChatGetExistingAccidsInServerRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1590
std::vector< std::string > accids
Definition nim_qchat_role_cpp_def.h:1593
QChatGetExistingAccidsInServerRoleParam(const NIMQChatGetExistingAccidsInServerRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1595
NIMQChatGetExistingAccidsInServerRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1607
std::vector< QChatMemberAccountId > accids_
Definition nim_qchat_role_cpp_def.h:1625
Definition nim_qchat_role_cpp_def.h:1549
std::vector< std::string > accids
Definition nim_qchat_role_cpp_def.h:1553
QChatGetExistingAccidsOfMemberRolesCallback cb
Definition nim_qchat_role_cpp_def.h:1550
std::vector< QChatMemberAccountId > accids_
Definition nim_qchat_role_cpp_def.h:1585
NIMQChatGetExistingAccidsOfMemberRolesParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1567
QChatGetExistingAccidsOfMemberRolesParam(const NIMQChatGetExistingAccidsOfMemberRolesParam &param)
Definition nim_qchat_role_cpp_def.h:1555
Definition nim_qchat_role_cpp_def.h:707
std::vector< std::string > member_ids_result
Definition nim_qchat_role_cpp_def.h:710
QChatGetExistingAccidsOfMemberRolesResp(const NIMQChatGetExistingAccidsOfMemberRolesResp &c_resp)
Definition nim_qchat_role_cpp_def.h:712
NIMQChatGetExistingAccidsOfMemberRolesResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:720
std::vector< QChatMemberAccountId > member_query_accids_
Definition nim_qchat_role_cpp_def.h:733
Definition nim_qchat_role_cpp_def.h:1509
std::vector< uint64_t > role_ids
Definition nim_qchat_role_cpp_def.h:1513
QChatGetExistingChannelRolesByServerRoleIdsParam(const NIMQChatGetExistingRolesInChannelParam &param)
Definition nim_qchat_role_cpp_def.h:1515
std::vector< uint64_t > role_ids_
Definition nim_qchat_role_cpp_def.h:1545
NIMQChatGetExistingRolesInChannelParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1527
QChatGetExistingRolesInChannelCallback cb
Definition nim_qchat_role_cpp_def.h:1510
Definition nim_qchat_role_cpp_def.h:1466
NIMQChatGetServerRolesByMemberIdsParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1486
std::vector< std::string > accids
Definition nim_qchat_role_cpp_def.h:1469
QChatGetRolesByMemberIdsCallback cb
Definition nim_qchat_role_cpp_def.h:1467
std::vector< QChatMemberAccountId > accids_
Definition nim_qchat_role_cpp_def.h:1505
QChatGetExistingServerRolesByAccidsParam(const NIMQChatGetServerRolesByMemberIdsParam &param)
Definition nim_qchat_role_cpp_def.h:1473
Definition nim_qchat_role_cpp_def.h:657
NIMQChatGetServerRolesByMemberIdsResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:676
std::map< std::string, std::vector< QChatServerRoleInfo > > roles_of_member_ids
Definition nim_qchat_role_cpp_def.h:660
std::vector< NIMQChatRoleInfoOfMember > role_info_of_members_
Definition nim_qchat_role_cpp_def.h:699
QChatGetExistingServerRolesByAccidsResp(const NIMQChatGetServerRolesByMemberIdsResp &c_response)
Definition nim_qchat_role_cpp_def.h:662
std::vector< std::vector< NIMQChatRoleInfo > > c_role_info_of_members_
Definition nim_qchat_role_cpp_def.h:700
Definition nim_qchat_role_cpp_def.h:1390
NIMQChatGetMemberRolesParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1412
QChatGetMemberRoleInChannelCallback cb
Definition nim_qchat_role_cpp_def.h:1391
QChatGetMemberRolesParam(const NIMQChatGetMemberRolesParam &param)
Definition nim_qchat_role_cpp_def.h:1401
Definition nim_qchat_role_cpp_def.h:593
std::vector< NIMQChatMemberRoleInfo > role_infos_
Definition nim_qchat_role_cpp_def.h:620
QChatGetMemberRolesResp(const NIMQChatGetMemberRolesResp &c_resp)
Definition nim_qchat_role_cpp_def.h:598
NIMQChatGetMemberRolesResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:606
std::vector< QChatMemberRoleInfo > role_infos
Definition nim_qchat_role_cpp_def.h:596
Definition nim_qchat_role_cpp_def.h:1091
std::string begin_accid
起查 accid,成员可能在同一个时间点被添加到某个身份组中
Definition nim_qchat_role_cpp_def.h:1102
QChatGetMembersFromServerRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1092
NIMQChatGetMembersFromServerRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1116
QChatGetMembersFromServerRoleParam(const NIMQChatGetMembersFromServerRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1104
Definition nim_qchat_role_cpp_def.h:356
std::vector< QChatRoleMemberInfo > members
Definition nim_qchat_role_cpp_def.h:359
QChatGetMembersFromServerRoleResp(const NIMQChatGetMembersFromServerRoleResp &c_resp)
Definition nim_qchat_role_cpp_def.h:361
std::vector< NIMQChatRoleMemberInfo > members_
Definition nim_qchat_role_cpp_def.h:383
NIMQChatGetMembersFromServerRoleResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:370
Definition nim_qchat_role_cpp_def.h:1428
std::string accid
用户账号
Definition nim_qchat_role_cpp_def.h:1433
QChatGetRolesByAccidParam(const NIMQChatGetServerRolesByMembersIdParam &param)
Definition nim_qchat_role_cpp_def.h:1439
QChatGetRolesByMemberIdCallback cb
Definition nim_qchat_role_cpp_def.h:1429
NIMQChatGetServerRolesByMembersIdParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1450
Definition nim_qchat_role_cpp_def.h:962
QChatGetServerRolesCallback cb
Definition nim_qchat_role_cpp_def.h:963
NIMQChatGetServerRolesParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:987
QChatGetServerRolesParam(const NIMQChatGetServerRolesParam &param)
Definition nim_qchat_role_cpp_def.h:975
Definition nim_qchat_role_cpp_def.h:308
std::vector< QChatServerRoleInfo > role_infos
返回查询的所有身份组信息
Definition nim_qchat_role_cpp_def.h:312
QChatGetServerRolesResp(const NIMQChatGetServerRolesResp &c_resp)
Definition nim_qchat_role_cpp_def.h:316
std::vector< NIMQChatRoleInfo > joined_roles_vec
Definition nim_qchat_role_cpp_def.h:349
std::vector< NIMQChatRoleInfo > roles_vec
Definition nim_qchat_role_cpp_def.h:348
NIMQChatGetServerRolesResp ToCParam() const
Definition nim_qchat_role_cpp_def.h:327
std::vector< QChatServerRoleInfo > joined_roles
自己已经加入的身份组列表
Definition nim_qchat_role_cpp_def.h:314
Definition nim_qchat_member_cpp_def.h:19
Definition nim_qchat_role_cpp_def.h:169
NIMQChatMemberRoleInfo ToCParam() const
Definition nim_qchat_role_cpp_def.h:193
std::vector< NIMQChatPermissionGroup > vec_permissions
Definition nim_qchat_role_cpp_def.h:213
QChatMemberRoleInfo(const NIMQChatMemberRoleInfo &info)
Definition nim_qchat_role_cpp_def.h:183
Definition nim_qchat_role_cpp_def.h:1922
std::string accid
Definition nim_qchat_role_cpp_def.h:1926
QChatRemoveChannelCategoryMemberRoleParam(const NIMQChatRemoveChannelCategoryMemberRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1928
QChatRemoveChannelCategoryMemberRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1923
NIMQChatRemoveChannelCategoryMemberRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1938
Definition nim_qchat_role_cpp_def.h:1780
QChatRemoveChannelCategoryRoleParam(const NIMQChatRemoveChannelCategoryRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1786
QChatRemoveChannelCategoryRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1781
NIMQChatRemoveChannelCategoryRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1796
Definition nim_qchat_role_cpp_def.h:1211
QChatRemoveChannelRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1212
NIMQChatRemoveChannelRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1230
QChatRemoveChannelRoleParam(const NIMQChatRemoveChannelRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1220
Definition nim_qchat_role_cpp_def.h:1356
QChatRemoveMemberRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1357
NIMQChatRemoveMemberRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1375
std::string accid
用户账号列表
Definition nim_qchat_role_cpp_def.h:1363
QChatRemoveMemberRoleParam(const NIMQChatRemoveMemberRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1365
Definition nim_qchat_role_cpp_def.h:1048
QChatAddMembersToServerRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1049
std::vector< char * > vec_members
Definition nim_qchat_role_cpp_def.h:1087
std::vector< std::string > members_accids
要移除的成员列表
Definition nim_qchat_role_cpp_def.h:1055
QChatRemoveMembersFromServerRoleParam(const NIMQChatRemoveMembersFromServerRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1057
NIMQChatRemoveMembersFromServerRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1068
Definition nim_qchat_role_cpp_def.h:43
std::string extension
身份组扩展字段
Definition nim_qchat_role_cpp_def.h:53
std::vector< NIMQChatPermissionGroup > vec_permissions
Definition nim_qchat_role_cpp_def.h:101
NIMQChatRoleInfo ToCParam() const
Definition nim_qchat_role_cpp_def.h:78
std::string role_icon
身份组图片 URL
Definition nim_qchat_role_cpp_def.h:51
QChatRoleInfoBase(const NIMQChatRoleInfo &info)
Definition nim_qchat_role_cpp_def.h:63
std::string role_name
身份组名称
Definition nim_qchat_role_cpp_def.h:49
Definition nim_qchat_role_cpp_def.h:24
NIMQChatRoleMemberInfo ToCParam() const
Definition nim_qchat_role_cpp_def.h:34
QChatRoleMemberInfo(const NIMQChatRoleMemberInfo &c_param)
Definition nim_qchat_role_cpp_def.h:30
Definition nim_qchat_role_cpp_def.h:105
NIMQChatRoleInfo ToCParam() const
Definition nim_qchat_role_cpp_def.h:116
QChatServerRoleInfo(const NIMQChatRoleInfo &info)
Definition nim_qchat_role_cpp_def.h:111
Definition nim_qchat_role_cpp_def.h:1876
QChatUpdateChannelCategoryMemberRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1877
std::string accid
用户 ID
Definition nim_qchat_role_cpp_def.h:1883
std::vector< NIMQChatPermissionGroup > permissions_
Definition nim_qchat_role_cpp_def.h:1918
NIMQChatUpdateChannelCategoryMemberRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1899
QChatUpdateChannelCategoryMemberRoleParam(const NIMQChatUpdateChannelCategoryMemberRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1887
Definition nim_qchat_role_cpp_def.h:1734
std::vector< NIMQChatPermissionGroup > permissions_
Definition nim_qchat_role_cpp_def.h:1776
QChatUpdateChannelCategoryRoleParam(const NIMQChatUpdateChannelCategoryRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1745
NIMQChatUpdateChannelCategoryRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1757
QChatUpdateChannelCategoryRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1735
Definition nim_qchat_role_cpp_def.h:1165
QChatUpdateChannelRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1166
NIMQChatUpdateChannelRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1187
QChatUpdateChannelRoleParam(const NIMQChatUpdateChannelRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1172
std::vector< NIMQChatPermissionGroup > vec_permissions_
Definition nim_qchat_role_cpp_def.h:1207
Definition nim_qchat_role_cpp_def.h:1314
NIMQChatUpdateMemberRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:1333
QChatUpdateMemberRoleParam(const NIMQChatUpdateMemberRoleParam &param)
Definition nim_qchat_role_cpp_def.h:1321
std::string accid
Definition nim_qchat_role_cpp_def.h:1318
std::vector< NIMQChatPermissionGroup > permissions_
Definition nim_qchat_role_cpp_def.h:1352
QChatUpdateMemberRoleCallback cb
Definition nim_qchat_role_cpp_def.h:1315
Definition nim_qchat_role_cpp_def.h:858
QChatUpdateServerRoleCallback cb
Definition nim_qchat_role_cpp_def.h:859
QChatServerRoleInfo info
Definition nim_qchat_role_cpp_def.h:860
QChatUpdateServerRoleParam(const NIMQChatUpdateServerRoleParam &param)
Definition nim_qchat_role_cpp_def.h:864
NIMQChatUpdateServerRoleParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:875
Definition nim_qchat_role_cpp_def.h:890
QChatBatchUpdateServerRolePrioritiesCallback cb
Definition nim_qchat_role_cpp_def.h:891
NIMQChatBatchUpdateServerRolePrioritiesParam ToCParam() const
Definition nim_qchat_role_cpp_def.h:907
QChatUpdateServerRolePrioritiesParam(const NIMQChatBatchUpdateServerRolePrioritiesParam &param)
Definition nim_qchat_role_cpp_def.h:896
std::vector< NIMQChatBatchUpdateServeRolePriorityGroup > c_role_infos_
Definition nim_qchat_role_cpp_def.h:929
std::map< uint64_t, uint64_t > priority_map
要批量更新的身份组信息,key: role_id, value: priority
Definition nim_qchat_role_cpp_def.h:894
Definition nim_qchat_role_cpp_def.h:291
QChatServerRoleInfo role_info
Definition nim_qchat_role_cpp_def.h:294
QChatUpdateServerRoleResp(const NIMQChatUpdateServerRoleResp &c_resp)
Definition nim_qchat_role_cpp_def.h:296