getUserFollowInfo method

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

获取指定用户的 关注/粉丝/互关 数量信息

Implementation

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