getSessionInfo method

  1. @override
Future<Aria2SessionInfo> getSessionInfo()
override

获取当前连接的sessionID

Implementation

@override
Future<Aria2SessionInfo> getSessionInfo() async {
  var data = await _requestApi('aria2.getSessionInfo', []);
  return Aria2SessionInfo.fromJson(data);
}