11#ifndef __NIM_QCHAT_IDENTITY_CPP_DEF_H__
12#define __NIM_QCHAT_IDENTITY_CPP_DEF_H__
45 uint64_t server_id = 0;
59 uint64_t create_time = 0;
61 uint64_t update_time = 0;
72 permissions.emplace(permission, option);
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) {
90 perms.
option = permission.second;
91 vec_permissions.push_back(perms);
107 uint32_t member_count = 0;
109 uint64_t priority = 0;
117 auto c_param = QChatRoleInfoBase::ToCParam();
118 c_param.server_role.member_count = member_count;
119 c_param.server_role.priority = priority;
127 uint64_t channel_id = 0;
129 uint64_t parent_role_id = 0;
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;
147 uint64_t category_id{0};
149 uint64_t parent_role_id{0};
151 bool valid_flag{
true};
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;
171 uint64_t channel_id{0};
179 uint64_t create_time{0};
181 uint64_t update_time{0};
184 : member_info(info.member_info) {
198 vec_permissions.clear();
199 for (
auto&& permission : permissions) {
202 perms.
option = permission.second;
203 vec_permissions.push_back(perms);
219 uint64_t category_id{0};
227 uint64_t create_time{0};
229 uint64_t update_time{0};
232 : member_info(info.member_info) {
246 vec_permissions.clear();
247 for (
auto&& permission : permissions) {
250 perms.
option = permission.second;
251 vec_permissions.push_back(perms);
269 uint32_t res_code{0};
293 uint32_t res_code{0};
310 uint32_t res_code{0};
320 for (
size_t i = 0; i < c_resp.
role_count; i++) {
331 joined_roles_vec.clear();
332 for (
auto&& role : role_infos) {
333 auto&& role_info = role.ToCParam();
334 roles_vec.push_back(role_info);
336 for (
auto&& role : joined_roles) {
337 auto&& role_info = role.ToCParam();
338 joined_roles_vec.push_back(role_info);
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();
358 uint32_t res_code{0};
367 members.push_back(member);
375 for (
auto&& member : members) {
376 members_.push_back(member.ToCParam());
378 c_response.
members = members_.data();
383 mutable std::vector<NIMQChatRoleMemberInfo>
members_;
389 uint32_t res_code{0};
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()));
416 for (
auto&& member : failed_list)
417 failed_members_.push_back(
const_cast<char*
>(member.c_str()));
434 uint32_t res_code{0};
446 c_response.
role_info = role_info.ToCParam();
459 uint32_t res_code{0};
464 res_code = c_resp.res_code;
471 c_response.res_code = res_code;
472 c_response.role_info = role_info.
ToCParam();
484 uint32_t res_code{0};
493 for (
size_t i = 0; i < c_resp.
role_count; i++) {
500 channel_role_infos_.clear();
501 for (
auto&& role_info : role_infos) {
502 channel_role_infos_.push_back(role_info.ToCParam());
504 c_response.
role_count = channel_role_infos_.size();
505 c_response.
role_infos = channel_role_infos_.data();
516 uint32_t res_code{0};
520 res_code = c_resp.res_code;
523 for (
size_t i = 0; i < c_resp.role_count; i++) {
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());
534 c_response.role_count = vec_role_infos_.size();
535 c_response.role_infos = vec_role_infos_.data();
546 uint32_t res_code{0};
550 : role_info(c_resp.role_info) {
556 c_response.role_info = role_info.ToCParam();
569 uint32_t res_code{0};
595 uint32_t res_code{0};
610 for (
auto&& channel_member_role : role_infos) {
611 role_infos_.push_back(channel_member_role.ToCParam());
626 uint32_t res_code{0};
641 for (
auto&& channel_member_role : role_infos) {
642 role_infos_.push_back(channel_member_role.ToCParam());
650 mutable std::vector<NIMQChatChannelCategoryMemberRoleInfo>
role_infos_;
659 uint32_t res_code{0};
666 for (
size_t i = 0; i < c_response.
count; i++) {
668 std::vector<QChatServerRoleInfo> roles;
669 for (
auto j = 0; j < role_info_of_member.role_count; j++) {
671 roles.push_back(role_info);
673 roles_of_member_ids[role_info_of_member.member_id] = roles;
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;
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());
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));
709 uint32_t res_code{0};
717 member_ids_result.push_back(c_resp.
member_ids[i]);
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()));
728 c_response.
member_ids = member_query_accids_.data();
742 uint32_t res_code{0};
743 bool has_permission{
false};
762 uint32_t res_code{0};
778 permissions_.clear();
780 for (
auto&& permission : permissions) {
781 permissions_.push_back(permission.first);
782 options_.push_back(permission.second);
792 mutable std::vector<NIMQChatPermissionsOption>
options_;
839 auto c_response = response.ToCParam();
840 c_response.user_data = user_data;
841 c_callback(&c_response);
848 c_param.role_info = info.ToCParam();
849 c_param.anti_spam_info = anti_spam_info.ToCParam();
851 InvokeCallback<QChatCreateServerRoleCallback, NIMQChatCreateServerRoleResp>(resp);
869 c_response.
res_code = response.res_code;
871 c_response.
role_info = response.role_info.ToCParam();
872 c_callback(&c_response);
879 c_param.role_info = info.
ToCParam();
880 c_param.anti_spam_info = anti_spam_info.ToCParam();
882 InvokeCallback<QChatUpdateServerRoleCallback, NIMQChatUpdateServerRoleResp>(resp);
892 uint64_t server_id = 0;
903 c_response.user_data = user_data;
904 c_callback(&c_response);
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);
919 c_param.update_priority_info = c_role_infos_.data();
920 c_param.update_count = c_role_infos_.size();
922 InvokeCallback<QChatBatchUpdateServerRolePrioritiesCallback, NIMQChatUpdateServerRolePrioritiesResp>(resp);
929 mutable std::vector<NIMQChatBatchUpdateServeRolePriorityGroup>
c_role_infos_;
936 uint64_t server_id = 0;
938 uint64_t role_id = 0;
944 auto c_response = response.ToCParam();
945 c_response.user_data = user_data;
946 c_callback(&c_response);
953 c_param.server_id = server_id;
954 c_param.role_id = role_id;
956 InvokeCallback<QChatDeleteServerRoleCallback, NIMQChatDeleteServerRoleResp>(resp);
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;
982 auto c_response = response.ToCParam();
983 c_response.user_data = user_data;
984 c_callback(&c_response);
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;
997 InvokeCallback<QChatGetServerRolesCallback, NIMQChatGetServerRolesResp>(resp);
1008 uint64_t server_id = 0;
1010 uint64_t role_id = 0;
1018 members_accids.push_back(param.
members[i]);
1020 auto c_response = response.ToCParam();
1021 c_response.user_data = user_data;
1022 c_callback(&c_response);
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();
1037 InvokeCallback<QChatAddMembersToServerRoleCallback, NIMQChatAddMembersToServerRoleResp>(resp);
1051 uint64_t server_id = 0;
1053 uint64_t role_id = 0;
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]);
1063 auto c_response = response.ToCParam();
1064 c_response.user_data = user_data;
1065 c_callback(&c_response);
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();
1080 InvokeCallback<QChatRemoveMembersFromServerRoleCallback, NIMQChatRemoveMembersFromServerRoleResp>(resp);
1094 uint64_t server_id = 0;
1096 uint64_t role_id = 0;
1098 uint64_t timestamp = 0;
1100 uint32_t limit = 100;
1108 limit = param.
limit;
1111 auto c_response = response.ToCParam();
1112 c_response.user_data = user_data;
1113 c_callback(&c_response);
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());
1126 InvokeCallback<QChatGetMembersFromServerRoleCallback, NIMQChatGetMembersFromServerRoleResp>(resp);
1136 uint64_t server_id = 0;
1137 uint64_t parent_role_id = 0;
1138 uint64_t channel_id = 0;
1145 auto c_response = response.ToCParam();
1146 c_response.user_data = user_data;
1147 c_callback(&c_response);
1154 c_param.server_id = server_id;
1155 c_param.parent_role_id = parent_role_id;
1156 c_param.channel_id = channel_id;
1158 InvokeCallback<QChatAddChannelRoleCallback, NIMQChatAddChannelRoleResp>(resp);
1167 uint64_t server_id = 0;
1168 uint64_t role_id = 0;
1169 uint64_t channel_id = 0;
1179 permissions.emplace(permission, option);
1182 auto c_response = response.ToCParam();
1183 c_response.user_data = user_data;
1184 c_callback(&c_response);
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});
1198 c_param.permission_count = vec_permissions_.size();
1199 c_param.permissions = vec_permissions_.data();
1201 InvokeCallback<QChatUpdateChannelRoleCallback, NIMQChatUpdateChannelRoleResp>(resp);
1214 uint64_t server_id = 0;
1216 uint64_t role_id = 0;
1218 uint64_t channel_id = 0;
1225 auto c_response = response.ToCParam();
1226 c_response.user_data = user_data;
1227 c_callback(&c_response);
1234 c_param.server_id = server_id;
1235 c_param.channel_id = channel_id;
1236 c_param.role_id = role_id;
1238 InvokeCallback<QChatRemoveChannelRoleCallback, NIMQChatRemoveChannelRoleResp>(resp);
1248 uint64_t server_id = 0;
1250 uint64_t channel_id = 0;
1252 uint64_t timestamp = 0;
1254 uint32_t limit = 100;
1260 limit = param.
limit;
1262 auto c_response = response.ToCParam();
1263 c_response.user_data = user_data;
1264 c_callback(&c_response);
1271 c_param.server_id = server_id;
1272 c_param.channel_id = channel_id;
1273 c_param.timestamp = timestamp;
1274 c_param.limit = limit;
1276 InvokeCallback<QChatGetChannelRolesCallback, NIMQChatGetChannelRolesResp>(resp);
1285 uint64_t server_id = 0;
1286 uint64_t channel_id = 0;
1292 accid = param.
accid;
1294 auto c_response = response.ToCParam();
1295 c_response.user_data = user_data;
1296 c_callback(&c_response);
1303 c_param.server_id = server_id;
1304 c_param.channel_id = channel_id;
1305 c_param.accid =
const_cast<char*
>(accid.c_str());
1307 InvokeCallback<QChatAddMemberRoleCallback, NIMQChatAddMemberRoleResp>(resp);
1316 uint64_t server_id = 0;
1317 uint64_t channel_id = 0;
1324 accid = param.
accid;
1328 auto c_response = response.ToCParam();
1329 c_response.user_data = user_data;
1330 c_callback(&c_response);
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();
1346 InvokeCallback<QChatUpdateMemberRoleCallback, NIMQChatUpdateMemberRoleResp>(resp);
1359 uint64_t server_id = 0;
1361 uint64_t channel_id = 0;
1368 accid = param.
accid;
1370 auto c_response = response.ToCParam();
1371 c_response.user_data = user_data;
1372 c_callback(&c_response);
1379 c_param.server_id = server_id;
1380 c_param.channel_id = channel_id;
1381 c_param.accid =
const_cast<char*
>(accid.c_str());
1383 InvokeCallback<QChatRemoveMemberRoleCallback, NIMQChatRemoveMemberRoleResp>(resp);
1393 uint64_t server_id = 0;
1395 uint64_t channel_id = 0;
1397 uint64_t timestamp = 0;
1399 uint32_t limit = 100;
1405 limit = param.
limit;
1407 auto c_response = response.ToCParam();
1408 c_response.user_data = user_data;
1409 c_callback(&c_response);
1416 c_param.server_id = server_id;
1417 c_param.channel_id = channel_id;
1418 c_param.timestamp = timestamp;
1419 c_param.limit = limit;
1421 InvokeCallback<QChatGetMemberRoleInChannelCallback, NIMQChatGetMemberRolesResp>(resp);
1431 uint64_t server_id = 0;
1435 uint64_t timestamp = 0;
1437 uint32_t limit = 100;
1441 accid = param.
accid;
1443 limit = param.
limit;
1445 auto c_response = response.ToCParam();
1446 c_response.user_data = user_data;
1447 c_callback(&c_response);
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;
1459 InvokeCallback<QChatGetRolesByMemberIdCallback, NIMQChatGetServerRolesByMembersIdResp>(resp);
1468 uint64_t server_id{0};
1476 accids.push_back(param.
accids[i]);
1481 auto c_response = response.ToCParam();
1482 c_response.user_data = user_data;
1483 c_callback(&c_response);
1490 c_param.server_id = server_id;
1491 c_param.account_count = accids.size();
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;
1499 InvokeCallback<QChatGetRolesByMemberIdsCallback, NIMQChatGetServerRolesByMemberIdsResp>(resp);
1505 mutable std::vector<QChatMemberAccountId>
accids_;
1511 uint64_t server_id{0};
1512 uint64_t channel_id{0};
1518 for (
size_t i = 0; i < param.
role_count; i++) {
1519 role_ids.push_back(param.
role_ids[i]);
1522 auto c_response = response.ToCParam();
1523 c_response.user_data = user_data;
1524 c_callback(&c_response);
1531 c_param.server_id = server_id;
1532 c_param.channel_id = channel_id;
1533 c_param.role_count = role_ids.size();
1535 for (
auto& roleid : role_ids)
1536 role_ids_.push_back(roleid);
1537 c_param.role_ids = role_ids_.data();
1539 InvokeCallback<QChatGetExistingRolesInChannelCallback, NIMQChatGetExistingRolesInChannelResp>(resp);
1551 uint64_t server_id{0};
1552 uint64_t channel_id{0};
1559 accids.push_back(param.
accids[i]);
1562 auto c_response = response.ToCParam();
1563 c_response.user_data = user_data;
1564 c_callback(&c_response);
1571 c_param.server_id = server_id;
1572 c_param.channel_id = channel_id;
1573 c_param.account_count = accids.size();
1575 for (
auto& accid : accids)
1576 accids_.push_back(
const_cast<char*
>(accid.c_str()));
1577 c_param.accids = accids_.data();
1579 InvokeCallback<QChatGetExistingAccidsOfMemberRolesCallback, NIMQChatGetExistingAccidsOfMemberRolesResp>(resp);
1585 mutable std::vector<QChatMemberAccountId>
accids_;
1591 uint64_t server_id{0};
1592 uint64_t role_id{0};
1599 accids.push_back(param.
accids[i]);
1602 auto c_response = response.ToCParam();
1603 c_response.user_data = user_data;
1604 c_callback(&c_response);
1611 c_param.server_id = server_id;
1612 c_param.role_id = role_id;
1613 c_param.account_count = accids.size();
1615 for (
auto& accid : accids)
1616 accids_.push_back(
const_cast<char*
>(accid.c_str()));
1617 c_param.accids = accids_.data();
1619 InvokeCallback<QChatGetExistingAccidsInServerRoleCallback, NIMQChatGetExistingAccidsInServerRoleResp>(resp);
1625 mutable std::vector<QChatMemberAccountId>
accids_;
1632 uint64_t server_id{0};
1634 uint64_t channel_id{0};
1643 auto c_response = response.ToCParam();
1644 c_response.user_data = user_data;
1645 c_callback(&c_response);
1652 c_param.server_id = server_id;
1653 c_param.channel_id = channel_id;
1654 c_param.permission = permission;
1656 InvokeCallback<QChatCheckPermissionCallback, NIMQChatCheckPermissionResp>(resp);
1666 uint64_t server_id{0};
1668 uint64_t channel_id{0};
1679 auto c_response = response.ToCParam();
1680 c_response.user_data = user_data;
1681 c_callback(&c_response);
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());
1693 InvokeCallback<QChatCheckPermissionsCallback, NIMQChatCheckPermissionsResp>(resp);
1703 uint64_t server_id{0};
1705 uint64_t category_id{0};
1707 uint64_t parent_role_id{0};
1714 auto c_response = response.ToCParam();
1715 c_response.user_data = user_data;
1716 c_callback(&c_response);
1723 c_param.server_id = server_id;
1724 c_param.category_id = category_id;
1725 c_param.parent_role_id = parent_role_id;
1727 InvokeCallback<QChatAddChannelCategoryRoleCallback, NIMQChatAddChannelCategoryRoleResp>(resp);
1737 uint64_t server_id{0};
1739 uint64_t category_id{0};
1741 uint64_t role_id{0};
1752 auto c_response = response.ToCParam();
1753 c_response.user_data = user_data;
1754 c_callback(&c_response);
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();
1770 InvokeCallback<QChatUpdateChannelCategoryRoleCallback, NIMQChatUpdateChannelCategoryRoleResp>(resp);
1782 uint64_t server_id{0};
1783 uint64_t category_id{0};
1784 uint64_t role_id{0};
1791 auto c_response = response.ToCParam();
1792 c_response.user_data = user_data;
1793 c_callback(&c_response);
1800 c_param.server_id = server_id;
1801 c_param.category_id = category_id;
1802 c_param.role_id = role_id;
1804 InvokeCallback<QChatRemoveChannelCategoryRoleCallback, NIMQChatRemoveChannelCategoryRoleResp>(resp);
1813 uint64_t server_id{0};
1814 uint64_t category_id{0};
1815 uint64_t timestamp{0};
1816 uint32_t limit{100};
1822 limit = param.
limit;
1824 auto c_response = response.ToCParam();
1825 c_response.user_data = user_data;
1826 c_callback(&c_response);
1833 c_param.server_id = server_id;
1834 c_param.category_id = category_id;
1835 c_param.timestamp = timestamp;
1836 c_param.limit = limit;
1838 InvokeCallback<QChatGetChannelCategoryRolesPageCallback, NIMQChatGetChannelCategoryRolesPageResp>(resp);
1847 uint64_t server_id{0};
1848 uint64_t category_id{0};
1854 accid = param.
accid;
1856 auto c_response = response.ToCParam();
1857 c_response.user_data = user_data;
1858 c_callback(&c_response);
1865 c_param.server_id = server_id;
1866 c_param.category_id = category_id;
1867 c_param.accid =
const_cast<char*
>(accid.c_str());
1869 InvokeCallback<QChatAddChannelCategoryMemberRoleCallback, NIMQChatAddChannelCategoryMemberRoleResp>(resp);
1879 uint64_t server_id{0};
1881 uint64_t category_id{0};
1890 accid = param.
accid;
1894 auto c_response = response.ToCParam();
1895 c_response.user_data = user_data;
1896 c_callback(&c_response);
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();
1912 InvokeCallback<QChatUpdateChannelCategoryMemberRoleCallback, NIMQChatUpdateChannelCategoryMemberRoleResp>(resp);
1924 uint64_t server_id{0};
1925 uint64_t category_id{0};
1931 accid = param.
accid;
1933 auto c_response = response.ToCParam();
1934 c_response.user_data = user_data;
1935 c_callback(&c_response);
1942 c_param.server_id = server_id;
1943 c_param.category_id = category_id;
1944 c_param.accid =
const_cast<char*
>(accid.c_str());
1946 InvokeCallback<QChatRemoveChannelCategoryMemberRoleCallback, NIMQChatRemoveChannelCategoryMemberRoleResp>(resp);
1955 uint64_t server_id{0};
1956 uint64_t category_id{0};
1957 uint64_t timestamp{0};
1958 uint32_t limit{100};
1964 limit = param.
limit;
1966 auto c_response = response.ToCParam();
1967 c_response.user_data = user_data;
1968 c_callback(&c_response);
1975 c_param.server_id = server_id;
1976 c_param.category_id = category_id;
1977 c_param.timestamp = timestamp;
1978 c_param.limit = limit;
1980 InvokeCallback<QChatGetChannelCategoryMemberRolesPageCallback, NIMQChatGetChannelCategoryMemberRolesPageResp>(resp);
std::function< void(const QChatGetMembersFromServerRoleResp &)> QChatGetMembersFromServerRoleCallback
Definition: nim_qchat_role_cpp_def.h:803
std::function< void(const QChatAddMembersToServerRoleResp &)> QChatAddMembersToServerRoleCallback
Definition: nim_qchat_role_cpp_def.h:801
QChatBaseCallback QChatRemoveChannelCategoryMemberRoleCallback
Definition: nim_qchat_role_cpp_def.h:825
std::function< void(const QChatGetChannelRolesResp &)> QChatGetChannelRolesCallback
Definition: nim_qchat_role_cpp_def.h:807
std::function< void(const QChatGetChannelCategoryRolesPageResp &)> QChatGetChannelCategoryRolesPageCallback
Definition: nim_qchat_role_cpp_def.h:822
std::function< void(const QChatAddMemberRoleResp &)> QChatAddMemberRoleCallback
Definition: nim_qchat_role_cpp_def.h:808
QChatBaseCallback QChatRemoveChannelRoleCallback
Definition: nim_qchat_role_cpp_def.h:806
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 QChatUpdateChannelCategoryRoleResp &)> QChatUpdateChannelCategoryRoleCallback
Definition: nim_qchat_role_cpp_def.h:820
std::function< void(const QChatGetExistingAccidsOfMemberRolesResp &)> QChatGetExistingAccidsOfMemberRolesCallback
Definition: nim_qchat_role_cpp_def.h:815
std::function< void(const QChatGetServerRolesResp &)> QChatGetServerRolesCallback
Definition: nim_qchat_role_cpp_def.h:800
std::function< void(const QChatAddChannelCategoryMemberRoleResp &)> QChatAddChannelCategoryMemberRoleCallback
Definition: nim_qchat_role_cpp_def.h:823
std::function< void(const QChatCreateServerRoleResp &)> QChatCreateServerRoleCallback
Definition: nim_qchat_role_cpp_def.h:796
std::function< void(const QChatUpdateChannelRoleResp &)> QChatUpdateChannelRoleCallback
Definition: nim_qchat_role_cpp_def.h:805
std::function< void(const QChatGetRolesByAccidResp &)> QChatGetRolesByMemberIdCallback
Definition: nim_qchat_role_cpp_def.h:812
std::function< void(const QChatBaseResp &)> QChatBaseCallback
通用回调模板
Definition: nim_qchat_public_cpp_def.h:104
std::function< void(const QChatRemoveMembersFromServerRoleResp &)> QChatRemoveMembersFromServerRoleCallback
Definition: nim_qchat_role_cpp_def.h:802
std::function< void(const QChatCheckPermissionsResp &)> QChatCheckPermissionsCallback
Definition: nim_qchat_role_cpp_def.h:818
std::function< void(const QChatGetExistingAccidsInServerRoleResp &)> QChatGetExistingAccidsInServerRoleCallback
Definition: nim_qchat_role_cpp_def.h:816
std::function< void(const QChatCheckPermissionResp &)> QChatCheckPermissionCallback
Definition: nim_qchat_role_cpp_def.h:817
std::function< void(const QChatUpdateChannelCategoryMemberRoleResp &)> QChatUpdateChannelCategoryMemberRoleCallback
Definition: nim_qchat_role_cpp_def.h:824
std::function< void(const QChatGetExistingServerRolesByAccidsResp &)> QChatGetRolesByMemberIdsCallback
Definition: nim_qchat_role_cpp_def.h:813
std::map< uint32_t, NIMQChatPermissionsOption > QChatPermission
Definition: nim_qchat_role_cpp_def.h:21
std::function< void(const QChatGetExistingChannelRolesByServerRoleIdsResp &)> QChatGetExistingRolesInChannelCallback
Definition: nim_qchat_role_cpp_def.h:814
std::function< void(const QChatGetMemberRolesResp &)> QChatGetMemberRoleInChannelCallback
Definition: nim_qchat_role_cpp_def.h:811
std::function< void(const QChatUpdateServerRoleResp &)> QChatUpdateServerRoleCallback
Definition: nim_qchat_role_cpp_def.h:797
std::function< void(const QChatAddChannelRoleResp &)> QChatAddChannelRoleCallback
Definition: nim_qchat_role_cpp_def.h:804
QChatBaseCallback QChatDeleteServerRoleCallback
Definition: nim_qchat_role_cpp_def.h:799
std::function< void(const QChatGetChannelCategoryMemberRolesPageResp &)> QChatGetChannelCategoryMemberRolesPageCallback
Definition: nim_qchat_role_cpp_def.h:826
std::function< void(const QChatUpdateMemberRoleResp &)> QChatUpdateMemberRoleCallback
Definition: nim_qchat_role_cpp_def.h:809
std::function< void(const QChatUpdateServerRolePrioritiesResp &)> QChatBatchUpdateServerRolePrioritiesCallback
Definition: nim_qchat_role_cpp_def.h:798
QChatBaseCallback QChatRemoveChannelCategoryRoleCallback
Definition: nim_qchat_role_cpp_def.h:821
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 ¶m)
Definition: nim_qchat_role_cpp_def.h:1851
NIMQChatAddChannelCategoryMemberRoleParam ToCParam() const
Definition: nim_qchat_role_cpp_def.h:1861
QChatAddChannelCategoryMemberRoleParam()=default
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
QChatAddChannelCategoryMemberRoleResp()=default
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 ¶m)
Definition: nim_qchat_role_cpp_def.h:1709
QChatAddChannelCategoryRoleParam()=default
Definition: nim_qchat_role_cpp_def.h:457
QChatAddChannelCategoryRoleResp()=default
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()=default
QChatAddChannelRoleParam(const NIMQChatAddChannelRoleParam ¶m)
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
QChatAddChannelRoleResp()=default
Definition: nim_qchat_role_cpp_def.h:1283
QChatAddMemberRoleParam(const NIMQChatAddMemberRoleParam ¶m)
Definition: nim_qchat_role_cpp_def.h:1289
std::string accid
Definition: nim_qchat_role_cpp_def.h:1287
QChatAddMemberRoleParam()=default
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
QChatAddMemberRoleResp()=default
Definition: nim_qchat_role_cpp_def.h:1005
QChatAddMembersToServerRoleParam(const NIMQChatAddMembersToServerRoleParam ¶m)
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
QChatAddMembersToServerRoleParam()=default
Definition: nim_qchat_role_cpp_def.h:387
std::vector< std::string > failed_list
加入失败的用户列表
Definition: nim_qchat_role_cpp_def.h:393
QChatAddMembersToServerRoleResp()=default
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
QChatChannelCategoryMemberRoleInfo()=default
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
QChatChannelCategoryRoleInfo()=default
Definition: nim_qchat_role_cpp_def.h:125
QChatChannelRoleInfo(const NIMQChatRoleInfo &info)
Definition: nim_qchat_role_cpp_def.h:131
QChatChannelRoleInfo()=default
NIMQChatRoleInfo ToCParam() const
Definition: nim_qchat_role_cpp_def.h:136
Definition: nim_qchat_role_cpp_def.h:1629
QChatCheckPermissionParam()=default
QChatCheckPermissionCallback cb
Definition: nim_qchat_role_cpp_def.h:1630
NIMQChatCheckPermissionParam ToCParam() const
Definition: nim_qchat_role_cpp_def.h:1648
QChatCheckPermissionParam(const NIMQChatCheckPermissionParam ¶m)
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
QChatCheckPermissionResp()=default
Definition: nim_qchat_role_cpp_def.h:1663
QChatCheckPermissionsParam()=default
std::vector< uint32_t > permissions
查询的权限列表
Definition: nim_qchat_role_cpp_def.h:1670
QChatCheckPermissionsParam(const NIMQChatCheckPermissionsParam ¶m)
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
QChatCheckPermissionsResp()=default
std::vector< NIMQChatPermissionsOption > options_
Definition: nim_qchat_role_cpp_def.h:792
Definition: nim_qchat_role_cpp_def.h:829
QChatCreateServerRoleParam(const NIMQChatCreateServerRoleParam ¶m)
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
QChatCreateServerRoleParam()=default
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
QChatCreateServerRoleResp()=default
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()=default
QChatDeleteServerRoleParam(const NIMQChatDeleteServerRoleParam ¶m)
Definition: nim_qchat_role_cpp_def.h:940
Definition: nim_qchat_role_cpp_def.h:1953
QChatGetChannelCategoryMemberRolesPageParam(const NIMQChatGetChannelCategoryMemberRolesPageParam ¶m)
Definition: nim_qchat_role_cpp_def.h:1960
NIMQChatGetChannelCategoryMemberRolesPageParam ToCParam() const
Definition: nim_qchat_role_cpp_def.h:1971
QChatGetChannelCategoryMemberRolesPageParam()=default
QChatGetChannelCategoryMemberRolesPageCallback cb
Definition: nim_qchat_role_cpp_def.h:1954
Definition: nim_qchat_role_cpp_def.h:624
QChatGetChannelCategoryMemberRolesPageResp()=default
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 ¶m)
Definition: nim_qchat_role_cpp_def.h:1818
QChatGetChannelCategoryRolesPageCallback cb
Definition: nim_qchat_role_cpp_def.h:1812
QChatGetChannelCategoryRolesPageParam()=default
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
QChatGetChannelCategoryRolesPageResp()=default
Definition: nim_qchat_role_cpp_def.h:1245
QChatGetChannelRolesParam()=default
QChatGetChannelRolesParam(const NIMQChatGetChannelRolesParam ¶m)
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()=default
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
QChatGetExistingAccidsInServerRoleParam()=default
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 ¶m)
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
QChatGetExistingAccidsOfMemberRolesParam()=default
NIMQChatGetExistingAccidsOfMemberRolesParam ToCParam() const
Definition: nim_qchat_role_cpp_def.h:1567
QChatGetExistingAccidsOfMemberRolesParam(const NIMQChatGetExistingAccidsOfMemberRolesParam ¶m)
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
QChatGetExistingAccidsOfMemberRolesResp()=default
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()=default
QChatGetExistingChannelRolesByServerRoleIdsParam(const NIMQChatGetExistingRolesInChannelParam ¶m)
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
QChatGetExistingServerRolesByAccidsParam()=default
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 ¶m)
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
QChatGetExistingServerRolesByAccidsResp()=default
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
QChatGetMemberRolesParam()=default
QChatGetMemberRoleInChannelCallback cb
Definition: nim_qchat_role_cpp_def.h:1391
QChatGetMemberRolesParam(const NIMQChatGetMemberRolesParam ¶m)
Definition: nim_qchat_role_cpp_def.h:1401
Definition: nim_qchat_role_cpp_def.h:593
QChatGetMemberRolesResp()=default
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()=default
QChatGetMembersFromServerRoleParam(const NIMQChatGetMembersFromServerRoleParam ¶m)
Definition: nim_qchat_role_cpp_def.h:1104
Definition: nim_qchat_role_cpp_def.h:356
QChatGetMembersFromServerRoleResp()=default
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()=default
QChatGetRolesByAccidParam(const NIMQChatGetServerRolesByMembersIdParam ¶m)
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 ¶m)
Definition: nim_qchat_role_cpp_def.h:975
QChatGetServerRolesParam()=default
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
QChatGetServerRolesResp()=default
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
QChatMemberRoleInfo()=default
Definition: nim_qchat_role_cpp_def.h:1922
std::string accid
Definition: nim_qchat_role_cpp_def.h:1926
QChatRemoveChannelCategoryMemberRoleParam(const NIMQChatRemoveChannelCategoryMemberRoleParam ¶m)
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
QChatRemoveChannelCategoryMemberRoleParam()=default
Definition: nim_qchat_role_cpp_def.h:1780
QChatRemoveChannelCategoryRoleParam(const NIMQChatRemoveChannelCategoryRoleParam ¶m)
Definition: nim_qchat_role_cpp_def.h:1786
QChatRemoveChannelCategoryRoleCallback cb
Definition: nim_qchat_role_cpp_def.h:1781
QChatRemoveChannelCategoryRoleParam()=default
NIMQChatRemoveChannelCategoryRoleParam ToCParam() const
Definition: nim_qchat_role_cpp_def.h:1796
Definition: nim_qchat_role_cpp_def.h:1211
QChatRemoveChannelRoleParam()=default
QChatRemoveChannelRoleCallback cb
Definition: nim_qchat_role_cpp_def.h:1212
NIMQChatRemoveChannelRoleParam ToCParam() const
Definition: nim_qchat_role_cpp_def.h:1230
QChatRemoveChannelRoleParam(const NIMQChatRemoveChannelRoleParam ¶m)
Definition: nim_qchat_role_cpp_def.h:1220
Definition: nim_qchat_role_cpp_def.h:1356
QChatRemoveMemberRoleParam()=default
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 ¶m)
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
QChatRemoveMembersFromServerRoleParam()=default
std::vector< std::string > members_accids
要移除的成员列表
Definition: nim_qchat_role_cpp_def.h:1055
QChatRemoveMembersFromServerRoleParam(const NIMQChatRemoveMembersFromServerRoleParam ¶m)
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
QChatRoleInfoBase()=default
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
QChatRoleMemberInfo()=default
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
QChatServerRoleInfo()=default
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
QChatUpdateChannelCategoryMemberRoleParam()=default
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 ¶m)
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 ¶m)
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
QChatUpdateChannelCategoryRoleParam()=default
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 ¶m)
Definition: nim_qchat_role_cpp_def.h:1172
QChatUpdateChannelRoleParam()=default
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 ¶m)
Definition: nim_qchat_role_cpp_def.h:1321
std::string accid
Definition: nim_qchat_role_cpp_def.h:1318
QChatUpdateMemberRoleParam()=default
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 ¶m)
Definition: nim_qchat_role_cpp_def.h:864
NIMQChatUpdateServerRoleParam ToCParam() const
Definition: nim_qchat_role_cpp_def.h:875
QChatUpdateServerRoleParam()=default
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 ¶m)
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
QChatUpdateServerRolePrioritiesParam()=default
Definition: nim_qchat_role_cpp_def.h:291
QChatServerRoleInfo role_info
Definition: nim_qchat_role_cpp_def.h:294
QChatUpdateServerRoleResp()=default
QChatUpdateServerRoleResp(const NIMQChatUpdateServerRoleResp &c_resp)
Definition: nim_qchat_role_cpp_def.h:296