getPeers method

  1. @override
Future<List<Aria2Peer>> getPeers(
  1. String gid
)
override

获取下载任务中活动的节点

Implementation

@override
Future<List<Aria2Peer>> getPeers(String gid) async {
  var data = await _requestApi('aria2.getPeers', [gid]);
  return data.map<Aria2Peer>((dt) => Aria2Peer.fromJson(dt)).toList();
}