followUser method

  1. @override
Future<V2TimValueCallback<List<V2TimFollowOperationResult>>> followUser({
  1. required List<String> userIDList,
})
override

关注用户

Implementation

@override
Future<V2TimValueCallback<List<V2TimFollowOperationResult>>> followUser({
  required List<String> userIDList,
}) async {
  Map<String, dynamic> param = {
    "userIDList": userIDList,
    "ability": Utils.getAbility(),
  };
  var resp = V2TimValueCallback<List<V2TimFollowOperationResult>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "followUser",
        buildFriendManagerParam(
          param,
        ),
      ),
    ),
  );
  log("followUser", param, resp.toLogString());
  return resp;
}