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 {
  Map<String, dynamic> param = {
    "groupID": groupID,
    "permissionGroupID": permissionGroupID,
    "memberList": memberList,
  };
  var resp = V2TimValueCallback<List<V2TimPermissionGroupMemberOperationResult>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "addCommunityMembersToPermissionGroup",
        buildCommunityManagerParam(
          param,
        ),
      ),
    ),
  );
  log("addCommunityMembersToPermissionGroup", param, resp.toLogString());
  return resp;
}