11#ifndef __NIM_QCHAT_IDENTITY_CPP_DEF_H__
12#define __NIM_QCHAT_IDENTITY_CPP_DEF_H__
47 uint64_t server_id = 0;
61 uint64_t create_time = 0;
63 uint64_t update_time = 0;
74 permissions.emplace(permission, option);
85 c_param.
role_name =
const_cast<char*
>(role_name.c_str());
86 c_param.
role_icon =
const_cast<char*
>(role_icon.c_str());
87 c_param.
extension =
const_cast<char*
>(extension.c_str());
88 vec_permissions.clear();
89 for (
auto&& permission : permissions) {
92 perms.
option = permission.second;
93 vec_permissions.push_back(perms);
103 mutable std::vector<NIMQChatPermissionGroup> vec_permissions;
109 uint32_t member_count = 0;
111 uint64_t priority = 0;
119 auto c_param = QChatRoleInfoBase::ToCParam();
129 uint64_t channel_id = 0;
131 uint64_t parent_role_id = 0;
139 auto c_param = QChatRoleInfoBase::ToCParam();
149 uint64_t category_id{0};
151 uint64_t parent_role_id{0};
153 bool valid_flag{
true};
162 auto c_param = QChatRoleInfoBase::ToCParam();
173 uint64_t channel_id{0};
181 uint64_t create_time{0};
183 uint64_t update_time{0};
186 : member_info(info.member_info) {
200 vec_permissions.clear();
201 for (
auto&& permission : permissions) {
204 perms.
option = permission.second;
205 vec_permissions.push_back(perms);
215 mutable std::vector<NIMQChatPermissionGroup> vec_permissions;
221 uint64_t category_id{0};
229 uint64_t create_time{0};
231 uint64_t update_time{0};
234 : member_info(info.member_info) {
248 vec_permissions.clear();
249 for (
auto&& permission : permissions) {
252 perms.
option = permission.second;
253 vec_permissions.push_back(perms);
263 mutable std::vector<NIMQChatPermissionGroup> vec_permissions;
275 res_code = c_resp.res_code;
282 c_resp.res_code = res_code;
283 c_resp.role_info = role_info.ToCParam();
288 mutable std::vector<NIMQChatPermissionGroup> permissions_;
299 res_code = c_resp.res_code;
319 res_code = c_resp.res_code;
322 for (
size_t i = 0; i < c_resp.role_count; i++) {
325 for (
size_t i = 0; i < c_resp.joined_role_count; i++) {
331 c_response.res_code = res_code;
333 joined_roles_vec.clear();
334 for (
auto&& role : role_infos) {
335 auto&& role_info = role.ToCParam();
336 roles_vec.push_back(role_info);
338 for (
auto&& role : joined_roles) {
339 auto&& role_info = role.ToCParam();
340 joined_roles_vec.push_back(role_info);
342 c_response.roles = roles_vec.data();
343 c_response.role_count = roles_vec.size();
344 c_response.joined_roles = joined_roles_vec.data();
345 c_response.joined_role_count = joined_roles_vec.size();
350 mutable std::vector<NIMQChatRoleInfo> roles_vec;
351 mutable std::vector<NIMQChatRoleInfo> joined_roles_vec;
361 std::list<QChatRoleMemberInfo> members;
364 res_code = c_resp.res_code;
367 for (
size_t i = 0; i < c_resp.member_count; i++) {
369 members.push_back(member);
374 c_response.res_code = res_code;
375 c_response.member_count = members.size();
377 for (
auto&& member : members) {
378 members_.push_back(member.ToCParam());
380 c_response.members = members_.data();
385 mutable std::vector<NIMQChatRoleMemberInfo> members_;
399 res_code = c_resp.res_code;
402 for (
size_t i = 0; i < c_resp.succeed_count; i++) {
403 succeed_list.push_back(c_resp.succeed_list[i]);
405 for (
size_t i = 0; i < c_resp.failed_count; i++) {
406 failed_list.push_back(c_resp.failed_list[i]);
411 c_response.res_code = res_code;
412 succeed_members_.clear();
413 failed_members_.clear();
414 for (
auto&& member : succeed_list)
415 succeed_members_.push_back(
const_cast<char*
>(member.c_str()));
416 c_response.succeed_count = succeed_members_.size();
417 c_response.succeed_list = succeed_members_.data();
418 for (
auto&& member : failed_list)
419 failed_members_.push_back(
const_cast<char*
>(member.c_str()));
420 c_response.failed_count = failed_members_.size();
421 c_response.failed_list = failed_members_.data();
426 mutable std::vector<char*> succeed_members_;
427 mutable std::vector<char*> failed_members_;
440 res_code = c_resp.res_code;
447 c_response.res_code = res_code;
448 c_response.role_info = role_info.ToCParam();
466 res_code = c_resp.res_code;
473 c_response.res_code = res_code;
474 c_response.role_info = role_info.ToCParam();
487 std::list<QChatChannelRoleInfo> role_infos;
491 res_code = c_resp.res_code;
495 for (
size_t i = 0; i < c_resp.role_count; i++) {
501 c_response.res_code = res_code;
502 channel_role_infos_.clear();
503 for (
auto&& role_info : role_infos) {
504 channel_role_infos_.push_back(role_info.ToCParam());
506 c_response.role_count = channel_role_infos_.size();
507 c_response.role_infos = channel_role_infos_.data();
512 mutable std::vector<NIMQChatRoleInfo> channel_role_infos_;
519 std::list<QChatChannelCategoryRoleInfo> role_infos;
522 res_code = c_resp.res_code;
525 for (
size_t i = 0; i < c_resp.role_count; i++) {
531 c_response.res_code = res_code;
532 vec_role_infos_.clear();
533 for (
auto&& role_info : role_infos) {
534 vec_role_infos_.push_back(role_info.ToCParam());
536 c_response.role_count = vec_role_infos_.size();
537 c_response.role_infos = vec_role_infos_.data();
542 mutable std::vector<NIMQChatRoleInfo> vec_role_infos_;
552 : role_info(c_resp.role_info) {
553 res_code = c_resp.res_code;
557 c_response.res_code = res_code;
558 c_response.role_info = role_info.ToCParam();
576 res_code = c_resp.res_code;
583 c_response.res_code = res_code;
584 c_response.role_info = role_info.ToCParam();
598 std::list<QChatMemberRoleInfo> role_infos;
601 res_code = c_resp.res_code;
604 for (
size_t i = 0; i < c_resp.member_role_count; i++) {
610 c_response.res_code = res_code;
612 for (
auto&& channel_member_role : role_infos) {
613 role_infos_.push_back(channel_member_role.ToCParam());
616 c_response.member_role_count = role_infos_.size();
617 c_response.role_infos = role_infos_.data();
622 mutable std::vector<NIMQChatMemberRoleInfo> role_infos_;
629 std::list<QChatChannelCategoryMemberRoleInfo> role_infos;
632 res_code = c_resp.res_code;
635 for (
size_t i = 0; i < c_resp.member_role_count; i++) {
641 c_response.res_code = res_code;
643 for (
auto&& channel_member_role : role_infos) {
644 role_infos_.push_back(channel_member_role.ToCParam());
646 c_response.member_role_count = role_infos_.size();
647 c_response.role_infos = role_infos_.data();
652 mutable std::vector<NIMQChatChannelCategoryMemberRoleInfo> role_infos_;
662 std::map<std::string, std::list<QChatServerRoleInfo>> roles_of_member_ids;
665 res_code = c_response.res_code;
668 for (
size_t i = 0; i < c_response.count; i++) {
669 auto& role_info_of_member = c_response.roles_of_member[i];
670 std::list<QChatServerRoleInfo> roles;
671 for (
auto j = 0; j < role_info_of_member.role_count; j++) {
673 roles.push_back(role_info);
675 roles_of_member_ids[role_info_of_member.member_id] = roles;
680 c_response.res_code = res_code;
681 c_response.count = roles_of_member_ids.size();
682 role_info_of_members_.clear();
683 c_role_info_of_members_.clear();
684 for (
auto& roles_of_member : roles_of_member_ids) {
685 std::vector<NIMQChatRoleInfo> roles;
687 role_info_of_member.member_id =
const_cast<char*
>(roles_of_member.first.c_str());
688 role_info_of_member.role_count = roles_of_member.second.size();
689 for (
auto& role_info : roles_of_member.second) {
690 roles.push_back(role_info.ToCParam());
692 role_info_of_member.roles = roles.data();
693 c_role_info_of_members_.push_back(std::move(roles));
694 role_info_of_members_.push_back(std::move(role_info_of_member));
696 c_response.roles_of_member = role_info_of_members_.data();
701 mutable std::vector<NIMQChatRoleInfoOfMember> role_info_of_members_;
702 mutable std::list<std::vector<NIMQChatRoleInfo>> c_role_info_of_members_;
712 std::list<std::string> member_ids_result;
715 res_code = c_resp.res_code;
718 for (
size_t i = 0; i < c_resp.member_ids_count; i++) {
719 member_ids_result.push_back(c_resp.member_ids[i]);
724 c_response.res_code = res_code;
725 member_query_accids_.clear();
726 for (
auto&& member_id : member_ids_result) {
727 member_query_accids_.push_back(
const_cast<char*
>(member_id.c_str()));
729 c_response.member_ids_count = member_query_accids_.size();
730 c_response.member_ids = member_query_accids_.data();
735 mutable std::vector<QChatMemberAccountId> member_query_accids_;
745 bool has_permission{
false};
748 res_code = c_resp.res_code;
751 has_permission = c_resp.has_permission;
755 c_response.res_code = res_code;
756 c_response.has_permission = has_permission;
769 res_code = c_resp.res_code;
779 c_response.res_code = res_code;
780 permissions_.clear();
782 for (
auto&& permission : permissions) {
783 permissions_.push_back(permission.first);
784 options_.push_back(permission.second);
793 mutable std::vector<uint32_t> permissions_;
794 mutable std::vector<NIMQChatPermissionsOption> options_;
798using QChatCreateServerRoleCallback = std::function<void(
const QChatCreateServerRoleResp&)>;
799using QChatUpdateServerRoleCallback = std::function<void(
const QChatUpdateServerRoleResp&)>;
802using QChatGetServerRolesCallback = std::function<void(
const QChatGetServerRolesResp&)>;
803using QChatAddMembersToServerRoleCallback = std::function<void(
const QChatAddMembersToServerRoleResp&)>;
805using QChatGetMembersFromServerRoleCallback = std::function<void(
const QChatGetMembersFromServerRoleResp&)>;
806using QChatAddChannelRoleCallback = std::function<void(
const QChatAddChannelRoleResp&)>;
809using QChatGetChannelRolesCallback = std::function<void(
const QChatGetChannelRolesResp&)>;
810using QChatAddMemberRoleCallback = std::function<void(
const QChatAddMemberRoleResp&)>;
813using QChatGetMemberRoleInChannelCallback = std::function<void(
const QChatGetMemberRolesResp&)>;
815using QChatGetRolesByMemberIdsCallback = std::function<void(
const QChatGetExistingServerRolesByAccidsResp&)>;
817using QChatGetExistingAccidsOfMemberRolesCallback = std::function<void(
const QChatGetExistingAccidsOfMemberRolesResp&)>;
819using QChatCheckPermissionCallback = std::function<void(
const QChatCheckPermissionResp&)>;
820using QChatCheckPermissionsCallback = std::function<void(
const QChatCheckPermissionsResp&)>;
821using QChatAddChannelCategoryRoleCallback = std::function<void(
const QChatAddChannelCategoryRoleResp&)>;
824using QChatGetChannelCategoryRolesPageCallback = std::function<void(
const QChatGetChannelCategoryRolesPageResp&)>;
825using QChatAddChannelCategoryMemberRoleCallback = std::function<void(
const QChatAddChannelCategoryMemberRoleResp&)>;
828using QChatGetChannelCategoryMemberRolesPageCallback = std::function<void(
const QChatGetChannelCategoryMemberRolesPageResp&)>;
832 QChatCreateServerRoleCallback cb;
841 auto c_response = response.ToCParam();
842 c_response.user_data = user_data;
843 c_callback(&c_response);
847 auto cb_holder =
new QChatCreateServerRoleCallback(cb);
849 c_param.user_data = cb_holder;
850 c_param.role_info = info.ToCParam();
851 c_param.anti_spam_info = anti_spam_info.ToCParam();
853 InvokeCallback<QChatCreateServerRoleCallback, NIMQChatCreateServerRoleResp>(*resp);
861 QChatUpdateServerRoleCallback cb;
871 c_response.res_code = response.res_code;
872 c_response.user_data = user_data;
873 c_response.role_info = response.role_info.ToCParam();
874 c_callback(&c_response);
878 auto cb_holder =
new QChatUpdateServerRoleCallback(cb);
880 c_param.user_data = cb_holder;
881 c_param.role_info = info.ToCParam();
882 c_param.anti_spam_info = anti_spam_info.ToCParam();
884 InvokeCallback<QChatUpdateServerRoleCallback, NIMQChatUpdateServerRoleResp>(*resp);
893 QChatBatchUpdateServerRolePrioritiesCallback cb;
894 uint64_t server_id = 0;
899 server_id = param.server_id;
900 for (
size_t i = 0; i < param.update_count; i++) {
905 c_response.user_data = user_data;
906 c_callback(&c_response);
910 auto cb_holder =
new QChatBatchUpdateServerRolePrioritiesCallback(cb);
912 c_param.user_data = cb_holder;
913 c_param.server_id = server_id;
914 c_role_infos_.clear();
915 for (
auto& priority_item : priority_map) {
917 priority_group.role_id = priority_item.first;
918 priority_group.priority = priority_item.second;
919 c_role_infos_.push_back(priority_group);
921 c_param.update_priority_info = c_role_infos_.data();
922 c_param.update_count = c_role_infos_.size();
924 InvokeCallback<QChatBatchUpdateServerRolePrioritiesCallback, NIMQChatUpdateServerRolePrioritiesResp>(*resp);
931 mutable std::vector<NIMQChatBatchUpdateServeRolePriorityGroup> c_role_infos_;
936 QChatDeleteServerRoleCallback cb;
938 uint64_t server_id = 0;
940 uint64_t role_id = 0;
946 auto c_response = response.ToCParam();
947 c_response.user_data = user_data;
948 c_callback(&c_response);
952 auto cb_holder =
new QChatDeleteServerRoleCallback(cb);
954 c_param.user_data = cb_holder;
955 c_param.server_id = server_id;
958 InvokeCallback<QChatDeleteServerRoleCallback, NIMQChatDeleteServerRoleResp>(*resp);
965 QChatGetServerRolesCallback cb;
967 uint64_t server_id = 0;
971 uint64_t priority = 0;
973 uint64_t channel_id = 0;
975 uint64_t channel_category_id = 0;
984 auto c_response = response.ToCParam();
985 c_response.user_data = user_data;
986 c_callback(&c_response);
990 auto cb_holder =
new QChatGetServerRolesCallback(cb);
992 c_param.user_data = cb_holder;
993 c_param.server_id = server_id;
994 c_param.limit = limit;
995 c_param.priority = priority;
996 c_param.channel_id = channel_id;
997 c_param.channel_category_id = channel_category_id;
999 InvokeCallback<QChatGetServerRolesCallback, NIMQChatGetServerRolesResp>(*resp);
1008 QChatAddMembersToServerRoleCallback cb;
1010 uint64_t server_id = 0;
1012 uint64_t role_id = 0;
1020 members_accids.push_back(param.
members[i]);
1022 auto c_response = response.ToCParam();
1023 c_response.user_data = user_data;
1024 c_callback(&c_response);
1028 auto cb_holder =
new QChatAddMembersToServerRoleCallback(cb);
1030 c_param.user_data = cb_holder;
1031 c_param.server_id = server_id;
1033 vec_members.clear();
1034 for (
auto&& member_accid : members_accids)
1035 vec_members.push_back(
const_cast<char*
>(member_accid.c_str()));
1036 c_param.member_count = vec_members.size();
1037 c_param.members = vec_members.data();
1039 InvokeCallback<QChatAddMembersToServerRoleCallback, NIMQChatAddMembersToServerRoleResp>(*resp);
1046 mutable std::vector<char*> vec_members;
1051 QChatAddMembersToServerRoleCallback cb;
1053 uint64_t server_id = 0;
1055 uint64_t role_id = 0;
1060 server_id = param.server_id;
1061 role_id = param.role_id;
1062 for (
size_t i = 0; i < param.member_count; i++)
1063 members_accids.push_back(param.members[i]);
1065 auto c_response = response.ToCParam();
1066 c_response.user_data = user_data;
1067 c_callback(&c_response);
1071 auto cb_holder =
new QChatRemoveMembersFromServerRoleCallback(cb);
1073 c_param.user_data = cb_holder;
1074 c_param.server_id = server_id;
1076 vec_members.clear();
1077 for (
auto&& member_accid : members_accids)
1078 vec_members.push_back(
const_cast<char*
>(member_accid.c_str()));
1079 c_param.member_count = vec_members.size();
1080 c_param.members = vec_members.data();
1082 InvokeCallback<QChatRemoveMembersFromServerRoleCallback, NIMQChatRemoveMembersFromServerRoleResp>(*resp);
1089 mutable std::vector<char*> vec_members;
1094 QChatGetMembersFromServerRoleCallback cb;
1096 uint64_t server_id = 0;
1098 uint64_t role_id = 0;
1100 uint64_t timestamp = 0;
1110 limit = param.
limit;
1113 auto c_response = response.ToCParam();
1114 c_response.user_data = user_data;
1115 c_callback(&c_response);
1119 auto cb_holder =
new QChatGetMembersFromServerRoleCallback(cb);
1121 c_param.user_data = cb_holder;
1122 c_param.server_id = server_id;
1124 c_param.timestamp = timestamp;
1125 c_param.limit = limit;
1126 c_param.begin_accid =
const_cast<char*
>(begin_accid.c_str());
1128 InvokeCallback<QChatGetMembersFromServerRoleCallback, NIMQChatGetMembersFromServerRoleResp>(*resp);
1137 QChatAddChannelRoleCallback cb;
1138 uint64_t server_id = 0;
1139 uint64_t parent_role_id = 0;
1140 uint64_t channel_id = 0;
1143 server_id = param.server_id;
1144 parent_role_id = param.parent_role_id;
1145 channel_id = param.channel_id;
1147 auto c_response = response.ToCParam();
1148 c_response.user_data = user_data;
1149 c_callback(&c_response);
1153 auto cb_holder =
new QChatAddChannelRoleCallback(cb);
1155 c_param.user_data = cb_holder;
1156 c_param.server_id = server_id;
1157 c_param.parent_role_id = parent_role_id;
1158 c_param.channel_id = channel_id;
1160 InvokeCallback<QChatAddChannelRoleCallback, NIMQChatAddChannelRoleResp>(*resp);
1168 QChatUpdateChannelRoleCallback cb;
1169 uint64_t server_id = 0;
1170 uint64_t role_id = 0;
1171 uint64_t channel_id = 0;
1175 server_id = param.server_id;
1176 role_id = param.role_id;
1177 channel_id = param.channel_id;
1178 for (
size_t i = 0; i < param.permission_count; i++) {
1179 auto permission = param.permissions[i].
permission;
1180 auto option = param.permissions[i].
option;
1181 permissions.emplace(permission, option);
1184 auto c_response = response.ToCParam();
1185 c_response.user_data = user_data;
1186 c_callback(&c_response);
1190 auto cb_holder =
new QChatUpdateChannelRoleCallback(cb);
1192 c_param.user_data = cb_holder;
1193 c_param.server_id = server_id;
1195 c_param.channel_id = channel_id;
1196 vec_permissions_.clear();
1197 for (
auto&& permission : permissions) {
1198 vec_permissions_.push_back({permission.first, permission.second});
1200 c_param.permission_count = vec_permissions_.size();
1203 InvokeCallback<QChatUpdateChannelRoleCallback, NIMQChatUpdateChannelRoleResp>(*resp);
1209 mutable std::vector<NIMQChatPermissionGroup> vec_permissions_;
1214 QChatRemoveChannelRoleCallback cb;
1216 uint64_t server_id = 0;
1218 uint64_t role_id = 0;
1220 uint64_t channel_id = 0;
1227 auto c_response = response.ToCParam();
1228 c_response.user_data = user_data;
1229 c_callback(&c_response);
1233 auto cb_holder =
new QChatRemoveChannelRoleCallback(cb);
1235 c_param.user_data = cb_holder;
1236 c_param.server_id = server_id;
1237 c_param.channel_id = channel_id;
1240 InvokeCallback<QChatRemoveChannelRoleCallback, NIMQChatRemoveChannelRoleResp>(*resp);
1248 QChatGetChannelRolesCallback cb;
1250 uint64_t server_id = 0;
1252 uint64_t channel_id = 0;
1254 uint64_t timestamp = 0;
1262 limit = param.
limit;
1264 auto c_response = response.ToCParam();
1265 c_response.user_data = user_data;
1266 c_callback(&c_response);
1270 auto cb_holder =
new QChatGetChannelRolesCallback(cb);
1272 c_param.user_data = cb_holder;
1273 c_param.server_id = server_id;
1274 c_param.channel_id = channel_id;
1275 c_param.timestamp = timestamp;
1276 c_param.limit = limit;
1278 InvokeCallback<QChatGetChannelRolesCallback, NIMQChatGetChannelRolesResp>(*resp);
1286 QChatAddMemberRoleCallback cb;
1287 uint64_t server_id = 0;
1288 uint64_t channel_id = 0;
1292 server_id = param.server_id;
1293 channel_id = param.channel_id;
1294 accid = param.accid;
1296 auto c_response = response.ToCParam();
1297 c_response.user_data = user_data;
1298 c_callback(&c_response);
1302 auto cb_holder =
new QChatAddMemberRoleCallback(cb);
1304 c_param.user_data = cb_holder;
1305 c_param.server_id = server_id;
1306 c_param.channel_id = channel_id;
1307 c_param.accid =
const_cast<char*
>(accid.c_str());
1309 InvokeCallback<QChatAddMemberRoleCallback, NIMQChatAddMemberRoleResp>(*resp);
1317 QChatUpdateMemberRoleCallback cb;
1318 uint64_t server_id = 0;
1319 uint64_t channel_id = 0;
1324 server_id = param.server_id;
1325 channel_id = param.channel_id;
1326 accid = param.accid;
1327 for (
size_t i = 0; i < param.permission_count; i++)
1328 permissions.emplace(param.permissions[i].
permission, param.permissions[i].
option);
1330 auto c_response = response.ToCParam();
1331 c_response.user_data = user_data;
1332 c_callback(&c_response);
1336 auto cb_holder =
new QChatUpdateMemberRoleCallback(cb);
1338 c_param.user_data = cb_holder;
1339 c_param.server_id = server_id;
1340 c_param.channel_id = channel_id;
1341 c_param.accid =
const_cast<char*
>(accid.c_str());
1342 permissions_.clear();
1343 for (
auto&& permission : permissions)
1344 permissions_.push_back({permission.first, permission.second});
1345 c_param.permission_count = permissions_.size();
1348 InvokeCallback<QChatUpdateMemberRoleCallback, NIMQChatUpdateMemberRoleResp>(*resp);
1354 mutable std::vector<NIMQChatPermissionGroup> permissions_;
1359 QChatRemoveMemberRoleCallback cb;
1361 uint64_t server_id = 0;
1363 uint64_t channel_id = 0;
1370 accid = param.
accid;
1372 auto c_response = response.ToCParam();
1373 c_response.user_data = user_data;
1374 c_callback(&c_response);
1378 auto cb_holder =
new QChatRemoveMemberRoleCallback(cb);
1380 c_param.user_data = cb_holder;
1381 c_param.server_id = server_id;
1382 c_param.channel_id = channel_id;
1383 c_param.accid =
const_cast<char*
>(accid.c_str());
1385 InvokeCallback<QChatRemoveMemberRoleCallback, NIMQChatRemoveMemberRoleResp>(*resp);
1393 QChatGetMemberRoleInChannelCallback cb;
1395 uint64_t server_id = 0;
1397 uint64_t channel_id = 0;
1399 uint64_t timestamp = 0;
1407 limit = param.
limit;
1409 auto c_response = response.ToCParam();
1410 c_response.user_data = user_data;
1411 c_callback(&c_response);
1415 auto cb_holder =
new QChatGetMemberRoleInChannelCallback(cb);
1417 c_param.user_data = cb_holder;
1418 c_param.server_id = server_id;
1419 c_param.channel_id = channel_id;
1420 c_param.timestamp = timestamp;
1421 c_param.limit = limit;
1423 InvokeCallback<QChatGetMemberRoleInChannelCallback, NIMQChatGetMemberRolesResp>(*resp);
1431 QChatGetRolesByMemberIdCallback cb;
1433 uint64_t server_id = 0;
1437 uint64_t timestamp = 0;
1442 server_id = param.server_id;
1443 accid = param.accid;
1444 timestamp = param.timestamp;
1445 limit = param.limit;
1447 auto c_response = response.ToCParam();
1448 c_response.user_data = user_data;
1449 c_callback(&c_response);
1453 auto cb_holder =
new QChatGetRolesByMemberIdCallback(cb);
1455 c_param.user_data = cb_holder;
1456 c_param.server_id = server_id;
1457 c_param.accid =
const_cast<char*
>(accid.c_str());
1458 c_param.timestamp = timestamp;
1459 c_param.limit = limit;
1461 InvokeCallback<QChatGetRolesByMemberIdCallback, NIMQChatGetServerRolesByMembersIdResp>(*resp);
1469 QChatGetRolesByMemberIdsCallback cb;
1470 uint64_t server_id{0};
1471 std::list<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]);
1479 auto c_response = response.ToCParam();
1480 c_response.user_data = user_data;
1481 c_callback(&c_response);
1485 auto cb_holder =
new QChatGetRolesByMemberIdsCallback(cb);
1487 c_param.user_data = cb_holder;
1488 c_param.server_id = server_id;
1489 c_param.account_count = accids.size();
1491 for (
auto& accid : accids)
1492 accids_.push_back(
const_cast<char*
>(accid.c_str()));
1493 c_param.accids = accids_.data();
1495 InvokeCallback<QChatGetRolesByMemberIdsCallback, NIMQChatGetServerRolesByMemberIdsResp>(*resp);
1501 mutable std::vector<QChatMemberAccountId> accids_;
1506 QChatGetExistingRolesInChannelCallback cb;
1507 uint64_t server_id{0};
1508 uint64_t channel_id{0};
1509 std::list<uint64_t> role_ids;
1512 server_id = param.server_id;
1513 channel_id = param.channel_id;
1514 for (
size_t i = 0; i < param.role_count; i++) {
1515 role_ids.push_back(param.role_ids[i]);
1518 auto c_response = response.ToCParam();
1519 c_response.user_data = user_data;
1520 c_callback(&c_response);
1524 auto cb_holder =
new QChatGetExistingRolesInChannelCallback(cb);
1526 c_param.user_data = cb_holder;
1527 c_param.server_id = server_id;
1528 c_param.channel_id = channel_id;
1529 c_param.role_count = role_ids.size();
1531 for (
auto& roleid : role_ids)
1532 role_ids_.push_back(roleid);
1533 c_param.role_ids = role_ids_.data();
1535 InvokeCallback<QChatGetExistingRolesInChannelCallback, NIMQChatGetExistingRolesInChannelResp>(*resp);
1541 mutable std::vector<uint64_t> role_ids_;
1546 QChatGetExistingAccidsOfMemberRolesCallback cb;
1547 uint64_t server_id{0};
1548 uint64_t channel_id{0};
1549 std::list<std::string> accids;
1552 server_id = param.server_id;
1553 channel_id = param.channel_id;
1554 for (
size_t i = 0; i < param.account_count; i++) {
1555 accids.push_back(param.accids[i]);
1558 auto c_response = response.ToCParam();
1559 c_response.user_data = user_data;
1560 c_callback(&c_response);
1564 auto cb_holder =
new QChatGetExistingAccidsOfMemberRolesCallback(cb);
1566 c_param.user_data = cb_holder;
1567 c_param.server_id = server_id;
1568 c_param.channel_id = channel_id;
1569 c_param.account_count = accids.size();
1571 for (
auto& accid : accids)
1572 accids_.push_back(
const_cast<char*
>(accid.c_str()));
1573 c_param.accids = accids_.data();
1575 InvokeCallback<QChatGetExistingAccidsOfMemberRolesCallback, NIMQChatGetExistingAccidsOfMemberRolesResp>(*resp);
1581 mutable std::vector<QChatMemberAccountId> accids_;
1586 QChatGetExistingAccidsInServerRoleCallback cb;
1587 uint64_t server_id{0};
1588 uint64_t role_id{0};
1589 std::list<std::string> accids;
1592 server_id = param.server_id;
1593 role_id = param.role_id;
1594 for (
size_t i = 0; i < param.account_count; i++) {
1595 accids.push_back(param.accids[i]);
1598 auto c_response = response.ToCParam();
1599 c_response.user_data = user_data;
1600 c_callback(&c_response);
1604 auto cb_holder =
new QChatGetExistingAccidsInServerRoleCallback(cb);
1606 c_param.user_data = cb_holder;
1607 c_param.server_id = server_id;
1609 c_param.account_count = accids.size();
1611 for (
auto& accid : accids)
1612 accids_.push_back(
const_cast<char*
>(accid.c_str()));
1613 c_param.accids = accids_.data();
1615 InvokeCallback<QChatGetExistingAccidsInServerRoleCallback, NIMQChatGetExistingAccidsInServerRoleResp>(*resp);
1621 mutable std::vector<QChatMemberAccountId> accids_;
1626 QChatCheckPermissionCallback cb;
1628 uint64_t server_id{0};
1630 uint64_t channel_id{0};
1639 auto c_response = response.ToCParam();
1640 c_response.user_data = user_data;
1641 c_callback(&c_response);
1645 auto cb_holder =
new QChatCheckPermissionCallback(cb);
1647 c_param.user_data = cb_holder;
1648 c_param.server_id = server_id;
1649 c_param.channel_id = channel_id;
1650 c_param.permission = permission;
1652 InvokeCallback<QChatCheckPermissionCallback, NIMQChatCheckPermissionResp>(*resp);
1660 QChatCheckPermissionsCallback cb;
1662 uint64_t server_id{0};
1664 uint64_t channel_id{0};
1675 auto c_response = response.ToCParam();
1676 c_response.user_data = user_data;
1677 c_callback(&c_response);
1681 auto cb_holder =
new QChatCheckPermissionsCallback(cb);
1683 c_param.user_data = cb_holder;
1684 c_param.server_id = server_id;
1685 c_param.channel_id = channel_id;
1686 c_param.permission_count = permissions.size();
1687 c_param.
permissions =
const_cast<uint32_t*
>(permissions.data());
1689 InvokeCallback<QChatCheckPermissionsCallback, NIMQChatCheckPermissionsResp>(*resp);
1697 QChatAddChannelCategoryRoleCallback cb;
1699 uint64_t server_id{0};
1701 uint64_t category_id{0};
1703 uint64_t parent_role_id{0};
1710 auto c_response = response.ToCParam();
1711 c_response.user_data = user_data;
1712 c_callback(&c_response);
1716 auto cb_holder =
new QChatAddChannelCategoryRoleCallback(cb);
1718 c_param.user_data = cb_holder;
1719 c_param.server_id = server_id;
1721 c_param.parent_role_id = parent_role_id;
1723 InvokeCallback<QChatAddChannelCategoryRoleCallback, NIMQChatAddChannelCategoryRoleResp>(*resp);
1731 QChatUpdateChannelCategoryRoleCallback cb;
1733 uint64_t server_id{0};
1735 uint64_t category_id{0};
1737 uint64_t role_id{0};
1748 auto c_response = response.ToCParam();
1749 c_response.user_data = user_data;
1750 c_callback(&c_response);
1754 auto cb_holder =
new QChatUpdateChannelCategoryRoleCallback(cb);
1756 c_param.user_data = cb_holder;
1757 c_param.server_id = server_id;
1760 permissions_.clear();
1761 for (
auto&& permission : permissions)
1762 permissions_.push_back({permission.first, permission.second});
1763 c_param.permission_count = permissions_.size();
1766 InvokeCallback<QChatUpdateChannelCategoryRoleCallback, NIMQChatUpdateChannelCategoryRoleResp>(*resp);
1772 mutable std::vector<NIMQChatPermissionGroup> permissions_;
1777 QChatRemoveChannelCategoryRoleCallback cb;
1778 uint64_t server_id{0};
1779 uint64_t category_id{0};
1780 uint64_t role_id{0};
1787 auto c_response = response.ToCParam();
1788 c_response.user_data = user_data;
1789 c_callback(&c_response);
1793 auto cb_holder =
new QChatRemoveChannelCategoryRoleCallback(cb);
1795 c_param.user_data = cb_holder;
1796 c_param.server_id = server_id;
1800 InvokeCallback<QChatRemoveChannelCategoryRoleCallback, NIMQChatRemoveChannelCategoryRoleResp>(*resp);
1808 QChatGetChannelCategoryRolesPageCallback cb;
1809 uint64_t server_id{0};
1810 uint64_t category_id{0};
1811 uint64_t timestamp{0};
1812 uint32_t limit{100};
1818 limit = param.
limit;
1820 auto c_response = response.ToCParam();
1821 c_response.user_data = user_data;
1822 c_callback(&c_response);
1826 auto cb_holder =
new QChatGetChannelCategoryRolesPageCallback(cb);
1828 c_param.user_data = cb_holder;
1829 c_param.server_id = server_id;
1831 c_param.timestamp = timestamp;
1832 c_param.limit = limit;
1834 InvokeCallback<QChatGetChannelCategoryRolesPageCallback, NIMQChatGetChannelCategoryRolesPageResp>(*resp);
1842 QChatAddChannelCategoryMemberRoleCallback cb;
1843 uint64_t server_id{0};
1844 uint64_t category_id{0};
1850 accid = param.
accid;
1852 auto c_response = response.ToCParam();
1853 c_response.user_data = user_data;
1854 c_callback(&c_response);
1858 auto cb_holder =
new QChatAddChannelCategoryMemberRoleCallback(cb);
1860 c_param.user_data = cb_holder;
1861 c_param.server_id = server_id;
1863 c_param.accid =
const_cast<char*
>(accid.c_str());
1865 InvokeCallback<QChatAddChannelCategoryMemberRoleCallback, NIMQChatAddChannelCategoryMemberRoleResp>(*resp);
1873 QChatUpdateChannelCategoryMemberRoleCallback cb;
1875 uint64_t server_id{0};
1877 uint64_t category_id{0};
1886 accid = param.
accid;
1890 auto c_response = response.ToCParam();
1891 c_response.user_data = user_data;
1892 c_callback(&c_response);
1896 auto cb_holder =
new QChatUpdateChannelCategoryMemberRoleCallback(cb);
1898 c_param.user_data = cb_holder;
1899 c_param.server_id = server_id;
1901 c_param.accid =
const_cast<char*
>(accid.c_str());
1902 permissions_.clear();
1903 for (
auto&& permission : permissions)
1904 permissions_.push_back({permission.first, permission.second});
1905 c_param.permission_count = permissions_.size();
1908 InvokeCallback<QChatUpdateChannelCategoryMemberRoleCallback, NIMQChatUpdateChannelCategoryMemberRoleResp>(*resp);
1914 mutable std::vector<NIMQChatPermissionGroup> permissions_;
1919 QChatRemoveChannelCategoryMemberRoleCallback cb;
1920 uint64_t server_id{0};
1921 uint64_t category_id{0};
1927 accid = param.
accid;
1929 auto c_response = response.ToCParam();
1930 c_response.user_data = user_data;
1931 c_callback(&c_response);
1935 auto cb_holder =
new QChatRemoveChannelCategoryMemberRoleCallback(cb);
1937 c_param.user_data = cb_holder;
1938 c_param.server_id = server_id;
1940 c_param.accid =
const_cast<char*
>(accid.c_str());
1942 InvokeCallback<QChatRemoveChannelCategoryMemberRoleCallback, NIMQChatRemoveChannelCategoryMemberRoleResp>(*resp);
1950 QChatGetChannelCategoryMemberRolesPageCallback cb;
1951 uint64_t server_id{0};
1952 uint64_t category_id{0};
1953 uint64_t timestamp{0};
1954 uint32_t limit{100};
1960 limit = param.
limit;
1962 auto c_response = response.ToCParam();
1963 c_response.user_data = user_data;
1964 c_callback(&c_response);
1968 auto cb_holder =
new QChatGetChannelCategoryMemberRolesPageCallback(cb);
1970 c_param.user_data = cb_holder;
1971 c_param.server_id = server_id;
1973 c_param.timestamp = timestamp;
1974 c_param.limit = limit;
1976 InvokeCallback<QChatGetChannelCategoryMemberRolesPageCallback, NIMQChatGetChannelCategoryMemberRolesPageResp>(*resp);
std::function< void(const QChatBaseResp &)> QChatBaseCallback
通用回调模板
Definition: nim_qchat_public_cpp_def.h:95
NIMResCode
Definition: nim_chatroom_res_code_def.h:15
@ kNIMResSuccess
Definition: nim_chatroom_res_code_def.h:18
@ kPermissionManageServer
管理服务器,Server
Definition: nim_qchat_role_def.h:22
NIMQChatRoleType
Definition: nim_qchat_role_def.h:96
@ kRoleTypeUnkonwn
未知
Definition: nim_qchat_role_def.h:98
NIMQChatPermissionsOption
Definition: nim_qchat_role_def.h:78
Definition: nim_qchat_role_def.h:767
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:773
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:771
char * accid
用户 ID
Definition: nim_qchat_role_def.h:775
Definition: nim_qchat_role_def.h:299
Definition: nim_qchat_role_def.h:713
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:719
uint64_t parent_role_id
服务器身份组ID
Definition: nim_qchat_role_def.h:721
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:717
Definition: nim_qchat_role_def.h:546
Definition: nim_qchat_role_def.h:259
Definition: nim_qchat_role_def.h:592
Definition: nim_qchat_role_def.h:292
Definition: nim_qchat_role_def.h:513
size_t member_count
要加入的用户数量
Definition: nim_qchat_role_def.h:523
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:519
char ** members
用户数据指针首地址
Definition: nim_qchat_role_def.h:521
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:517
Definition: nim_qchat_role_def.h:238
Definition: nim_qchat_role_def.h:471
Definition: nim_qchat_role_def.h:477
NIMQChatBatchUpdateServeRolePriorityGroup * update_priority_info
要更新的身份组 ID 及优先级组合
Definition: nim_qchat_role_def.h:482
Definition: nim_qchat_role_def.h:190
uint64_t update_time
身份组修改时间
Definition: nim_qchat_role_def.h:204
uint64_t role_id
该定制权限所在的身份组 ID
Definition: nim_qchat_role_def.h:194
uint64_t create_time
身份组创建时间
Definition: nim_qchat_role_def.h:202
size_t permissions_count
身份组权限组合数量
Definition: nim_qchat_role_def.h:200
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition: nim_qchat_role_def.h:198
uint64_t category_id
该定制权限所在的频道分组 ID
Definition: nim_qchat_role_def.h:192
NIMQChatMemberInfo member_info
定制权限的用户信息
Definition: nim_qchat_role_def.h:196
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:132
bool valid_flag
有效标志
Definition: nim_qchat_role_def.h:136
uint64_t parent_role_id
继承的服务器身份组 ID
Definition: nim_qchat_role_def.h:134
uint64_t channel_id
频道 ID
Definition: nim_qchat_role_def.h:124
uint64_t parent_role_id
继承的服务器身份组 ID
Definition: nim_qchat_role_def.h:126
Definition: nim_qchat_role_def.h:687
uint32_t permission
权限
Definition: nim_qchat_role_def.h:695
uint64_t channel_id
channel_id == 0 means check permission in server
Definition: nim_qchat_role_def.h:693
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:691
Definition: nim_qchat_role_def.h:366
Definition: nim_qchat_role_def.h:699
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:703
uint32_t * permissions
权限列表
Definition: nim_qchat_role_def.h:709
size_t permission_count
权限列表长度
Definition: nim_qchat_role_def.h:707
uint64_t channel_id
channel_id == 0 means check permission in server
Definition: nim_qchat_role_def.h:705
Definition: nim_qchat_role_def.h:373
size_t permissions_count
身份组权限组合数量
Definition: nim_qchat_role_def.h:377
NIMQChatPermissionsOption * options
身份组权限开关
Definition: nim_qchat_role_def.h:381
uint32_t * permissions
身份组权限类型
Definition: nim_qchat_role_def.h:379
Definition: nim_qchat_role_def.h:451
NIMQChatRoleInfo role_info
服务器身份组信息结构体
Definition: nim_qchat_role_def.h:455
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_role_def.h:457
Definition: nim_qchat_role_def.h:208
Definition: nim_qchat_role_def.h:487
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:493
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:491
Definition: nim_qchat_role_def.h:807
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:811
uint64_t timestamp
时间戳,查询最新指定为 0
Definition: nim_qchat_role_def.h:815
uint32_t limit
限制返回数量
Definition: nim_qchat_role_def.h:817
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:813
Definition: nim_qchat_role_def.h:326
Definition: nim_qchat_role_def.h:753
uint32_t limit
限制查询返回数量
Definition: nim_qchat_role_def.h:763
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:759
uint64_t timestamp
时间戳,查询最新指定为 0
Definition: nim_qchat_role_def.h:761
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:757
Definition: nim_qchat_role_def.h:578
uint64_t channel_id
频道 ID
Definition: nim_qchat_role_def.h:584
uint32_t limit
限制查询返回数量
Definition: nim_qchat_role_def.h:588
uint64_t timestamp
时间戳,查询最新指定为 0
Definition: nim_qchat_role_def.h:586
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:582
Definition: nim_qchat_role_def.h:281
Definition: nim_qchat_role_def.h:677
Definition: nim_qchat_role_def.h:667
Definition: nim_qchat_role_def.h:358
Definition: nim_qchat_role_def.h:657
Definition: nim_qchat_role_def.h:624
uint64_t timestamp
时间戳,查询最新指定为 0
Definition: nim_qchat_role_def.h:632
uint64_t channel_id
频道 ID
Definition: nim_qchat_role_def.h:630
uint32_t limit
限制返回数量
Definition: nim_qchat_role_def.h:634
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:628
Definition: nim_qchat_role_def.h:318
Definition: nim_qchat_role_def.h:530
uint32_t limit
限制返回数量
Definition: nim_qchat_role_def.h:540
char * begin_accid
起查 account ID
Definition: nim_qchat_role_def.h:542
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:534
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:536
uint64_t timestamp
时间戳,从最新起查使用 0
Definition: nim_qchat_role_def.h:538
Definition: nim_qchat_role_def.h:251
Definition: nim_qchat_role_def.h:648
Definition: nim_qchat_role_def.h:344
Definition: nim_qchat_role_def.h:638
Definition: nim_qchat_role_def.h:497
uint64_t channel_id
频道 ID, 如果非空,则只需要有该channel的管理权限即可,否则需要有server的管理权限
Definition: nim_qchat_role_def.h:507
uint64_t channel_category_id
频道分组 ID, 如果非空,则只需要有该channel_category的管理权限即可,否则需要有server的管理权限
Definition: nim_qchat_role_def.h:509
uint64_t priority
起查的身份组优先级
Definition: nim_qchat_role_def.h:505
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:501
uint32_t limit
限制返回数量
Definition: nim_qchat_role_def.h:503
Definition: nim_qchat_role_def.h:225
Definition: nim_qchat_role_def.h:172
size_t permissions_count
身份组权限组合数量
Definition: nim_qchat_role_def.h:182
uint64_t create_time
身份组创建时间
Definition: nim_qchat_role_def.h:184
uint64_t role_id
该定制权限所在的身份组 ID
Definition: nim_qchat_role_def.h:176
NIMQChatMemberInfo member_info
定制权限的用户信息
Definition: nim_qchat_role_def.h:178
uint64_t update_time
身份组修改时间
Definition: nim_qchat_role_def.h:186
uint64_t channel_id
该定制权限所在的频道 ID
Definition: nim_qchat_role_def.h:174
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition: nim_qchat_role_def.h:180
Definition: nim_qchat_role_def.h:88
uint32_t permission
权限, 见 NIMQChatPermissions 以及自定义权限
Definition: nim_qchat_role_def.h:90
NIMQChatPermissionsOption option
开关
Definition: nim_qchat_role_def.h:92
Definition: nim_qchat_role_def.h:795
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:801
char * accid
用户账号
Definition: nim_qchat_role_def.h:803
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:799
Definition: nim_qchat_role_def.h:741
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:747
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:745
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:749
Definition: nim_qchat_role_def.h:566
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:574
uint64_t channel_id
频道 ID
Definition: nim_qchat_role_def.h:572
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:570
Definition: nim_qchat_role_def.h:612
uint64_t channel_id
身份组 ID
Definition: nim_qchat_role_def.h:618
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:616
char * accid
用户账号
Definition: nim_qchat_role_def.h:620
Definition: nim_qchat_role_def.h:140
char * role_icon
身份组图片 URL
Definition: nim_qchat_role_def.h:148
uint64_t role_id
身份组id
Definition: nim_qchat_role_def.h:144
NIMQChatChannelCategoryRoleInfo channel_category_role
仅频道分组拥有的身份组字段
Definition: nim_qchat_role_def.h:167
NIMQChatServerRoleInfo server_role
仅服务器拥有的身份组字段
Definition: nim_qchat_role_def.h:163
char * role_name
身份组名称
Definition: nim_qchat_role_def.h:146
uint64_t update_time
身份组修改时间
Definition: nim_qchat_role_def.h:160
NIMQChatRoleType role_type
身份组类型 1 表示 Everyone,2 表示定制身份组
Definition: nim_qchat_role_def.h:156
size_t permissions_count
身份组权限组合数量
Definition: nim_qchat_role_def.h:154
uint64_t create_time
身份组创建时间
Definition: nim_qchat_role_def.h:158
NIMQChatChannelRoleInfo channel_role
仅频道拥有的身份组字段
Definition: nim_qchat_role_def.h:165
uint64_t server_id
服务器ID
Definition: nim_qchat_role_def.h:142
char * extension
身份组扩展字段
Definition: nim_qchat_role_def.h:150
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition: nim_qchat_role_def.h:152
Definition: nim_qchat_role_def.h:337
Definition: nim_qchat_role_def.h:106
uint64_t role_id
所在身份组role id
Definition: nim_qchat_role_def.h:110
NIMQChatMemberInfo member_info
member info
Definition: nim_qchat_role_def.h:108
Definition: nim_qchat_role_def.h:114
uint32_t member_count
该身份组的成员数量,Everyone 身份组数量为 -1
Definition: nim_qchat_role_def.h:116
uint64_t priority
身份组优先级,Everyone 最低为 0,数字越大优先级越低
Definition: nim_qchat_role_def.h:118
Definition: nim_qchat_role_def.h:779
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition: nim_qchat_role_def.h:789
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:783
size_t permission_count
权限设定数量
Definition: nim_qchat_role_def.h:791
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:785
char * accid
用户 ID
Definition: nim_qchat_role_def.h:787
Definition: nim_qchat_role_def.h:725
NIMQChatPermissionGroup * permissions
身份组权限设定
Definition: nim_qchat_role_def.h:735
size_t permission_count
权限设定数量
Definition: nim_qchat_role_def.h:737
uint64_t server_id
服务器 ID
Definition: nim_qchat_role_def.h:729
uint64_t category_id
频道分组 ID
Definition: nim_qchat_role_def.h:731
uint64_t role_id
身份组 ID
Definition: nim_qchat_role_def.h:733
Definition: nim_qchat_role_def.h:555
Definition: nim_qchat_role_def.h:601
Definition: nim_qchat_role_def.h:461
NIMQChatRoleInfo role_info
服务器身份组信息结构体
Definition: nim_qchat_role_def.h:465
NIMQChatBusinessAntiSpamInfo anti_spam_info
反垃圾信息
Definition: nim_qchat_role_def.h:467
Definition: nim_qchat_role_def.h:215
Definition: nim_qchat_role_cpp_def.h:1841
Definition: nim_qchat_role_cpp_def.h:569
QChatChannelCategoryMemberRoleInfo role_info
频道分组成员身份组信息
Definition: nim_qchat_role_cpp_def.h:573
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:571
Definition: nim_qchat_role_cpp_def.h:1696
Definition: nim_qchat_role_cpp_def.h:459
QChatChannelCategoryRoleInfo role_info
频道分组身份组信息
Definition: nim_qchat_role_cpp_def.h:463
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:461
Definition: nim_qchat_role_cpp_def.h:1136
Definition: nim_qchat_role_cpp_def.h:434
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:436
Definition: nim_qchat_role_cpp_def.h:1285
Definition: nim_qchat_role_cpp_def.h:546
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:548
Definition: nim_qchat_role_cpp_def.h:1007
std::list< std::string > members_accids
要添加的成员列表
Definition: nim_qchat_role_cpp_def.h:1014
Definition: nim_qchat_role_cpp_def.h:389
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:391
std::list< std::string > failed_list
加入失败的用户列表
Definition: nim_qchat_role_cpp_def.h:395
std::list< std::string > succeed_list
加入成功的用户列表
Definition: nim_qchat_role_cpp_def.h:393
Definition: nim_qchat_public_cpp_def.h:40
Definition: nim_qchat_public_cpp_def.h:53
Definition: nim_qchat_role_cpp_def.h:219
Definition: nim_qchat_role_cpp_def.h:147
Definition: nim_qchat_role_cpp_def.h:127
Definition: nim_qchat_role_cpp_def.h:1625
Definition: nim_qchat_role_cpp_def.h:742
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:744
Definition: nim_qchat_role_cpp_def.h:1659
std::vector< uint32_t > permissions
查询的权限列表
Definition: nim_qchat_role_cpp_def.h:1666
Definition: nim_qchat_role_cpp_def.h:762
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:764
std::map< uint32_t, NIMQChatPermissionsOption > permissions
权限列表
Definition: nim_qchat_role_cpp_def.h:766
Definition: nim_qchat_role_cpp_def.h:831
Definition: nim_qchat_role_cpp_def.h:269
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:271
Definition: nim_qchat_role_cpp_def.h:935
Definition: nim_qchat_role_cpp_def.h:1949
Definition: nim_qchat_role_cpp_def.h:626
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:628
Definition: nim_qchat_role_cpp_def.h:1807
Definition: nim_qchat_role_cpp_def.h:516
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:518
Definition: nim_qchat_role_cpp_def.h:1247
Definition: nim_qchat_role_cpp_def.h:484
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:486
Definition: nim_qchat_role_cpp_def.h:1585
Definition: nim_qchat_role_cpp_def.h:1545
Definition: nim_qchat_role_cpp_def.h:709
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:711
Definition: nim_qchat_role_cpp_def.h:1505
Definition: nim_qchat_role_cpp_def.h:1468
Definition: nim_qchat_role_cpp_def.h:659
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:661
Definition: nim_qchat_role_cpp_def.h:1392
Definition: nim_qchat_role_cpp_def.h:595
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:597
Definition: nim_qchat_role_cpp_def.h:1093
std::string begin_accid
起查 accid,成员可能在同一个时间点被添加到某个身份组中
Definition: nim_qchat_role_cpp_def.h:1104
Definition: nim_qchat_role_cpp_def.h:358
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:360
Definition: nim_qchat_role_cpp_def.h:1430
std::string accid
用户账号
Definition: nim_qchat_role_cpp_def.h:1435
Definition: nim_qchat_role_cpp_def.h:964
Definition: nim_qchat_role_cpp_def.h:310
std::list< QChatServerRoleInfo > role_infos
返回查询的所有身份组信息
Definition: nim_qchat_role_cpp_def.h:314
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:312
std::list< QChatServerRoleInfo > joined_roles
自己已经加入的身份组列表
Definition: nim_qchat_role_cpp_def.h:316
Definition: nim_qchat_member_cpp_def.h:20
Definition: nim_qchat_role_cpp_def.h:171
Definition: nim_qchat_role_cpp_def.h:1918
Definition: nim_qchat_role_cpp_def.h:1776
Definition: nim_qchat_role_cpp_def.h:1213
Definition: nim_qchat_role_cpp_def.h:1358
std::string accid
用户账号列表
Definition: nim_qchat_role_cpp_def.h:1365
Definition: nim_qchat_role_cpp_def.h:1050
std::list< std::string > members_accids
要移除的成员列表
Definition: nim_qchat_role_cpp_def.h:1057
Definition: nim_qchat_role_cpp_def.h:45
std::string role_name
身份组名称
Definition: nim_qchat_role_cpp_def.h:51
std::string role_icon
身份组图片 URL
Definition: nim_qchat_role_cpp_def.h:53
std::string extension
身份组扩展字段
Definition: nim_qchat_role_cpp_def.h:55
Definition: nim_qchat_role_cpp_def.h:26
Definition: nim_qchat_role_cpp_def.h:107
Definition: nim_qchat_role_cpp_def.h:1872
std::string accid
用户 ID
Definition: nim_qchat_role_cpp_def.h:1879
Definition: nim_qchat_role_cpp_def.h:1730
Definition: nim_qchat_role_cpp_def.h:1167
Definition: nim_qchat_role_cpp_def.h:1316
Definition: nim_qchat_role_cpp_def.h:860
Definition: nim_qchat_role_cpp_def.h:892
std::map< uint64_t, uint64_t > priority_map
要批量更新的身份组信息,key: role_id, value: priority
Definition: nim_qchat_role_cpp_def.h:896
Definition: nim_qchat_role_cpp_def.h:293
NIMResCode res_code
操作结果,
Definition: nim_qchat_role_cpp_def.h:295