xcDeviceDownloadFile method

Future<DownloadFileByAppResponse> xcDeviceDownloadFile({
  1. required String commandBody,
  2. required String fileSavePath,
})

app下载固件

Implementation

Future<DownloadFileByAppResponse> xcDeviceDownloadFile(
    {required String commandBody, required String fileSavePath}) async {
  final result = await _api.xcDeviceDownloadFile(
      commandBody, fileSavePath, ApiSeq.instance.getSeq());
  DownloadFileByAppResponse response = DownloadFileByAppResponse(code: result.param1,filePath: result.data);
  return Future.value(response);
}