addCommunityMembersToPermissionGroup method

  1. @override
Future<V2TimValueCallback<List<V2TimPermissionGroupMemberOperationResult>>> addCommunityMembersToPermissionGroup({
  1. required String groupID,
  2. required String permissionGroupID,
  3. required List<String> memberList,
})
override

Implementation

@override
Future<V2TimValueCallback<List<V2TimPermissionGroupMemberOperationResult>>> addCommunityMembersToPermissionGroup({
  required String groupID,
  required String permissionGroupID,
  required List<String> memberList,
}) async {
  return V2TimValueCallback<List<V2TimPermissionGroupMemberOperationResult>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "addCommunityMembersToPermissionGroup",
        buildCommunityManagerParam(
          {
            "groupID": groupID,
            "permissionGroupID": permissionGroupID,
            "memberList": memberList,
          },
        ),
      ),
    ),
  );
}