xcBlueToothSearchStop method

Future<int> xcBlueToothSearchStop()

Implementation

Future<int> xcBlueToothSearchStop() async {
  final originResponse = await _api.xcBlueToothSearchStop(ApiSeq.instance.getSeq());
  // XCloudResponse<Map<String, dynamic>> response =
  //     XCloudResponse.fromOriginResponse<Map<String, dynamic>>(originResponse);
  if (originResponse.param1 < 0) {
    return Future.error(XCloudAPIException(code: originResponse.param1,commandId: originResponse.commandId));
  }
  return Future.value(originResponse.param1);
}