xcBlueToothSearchStart<T> method

Future<bool> xcBlueToothSearchStart<T>()

Implementation

Future<bool> xcBlueToothSearchStart<T>() async {
  final originResponse = await _api.xcBlueToothSearchStart(ApiSeq.instance.getSeq());
  XCloudResponse<T> response =
      XCloudResponse.fromOriginResponse<T>(originResponse);
  if (!response.success) {
    return Future.error(XCloudAPIException(code: response.code,commandId: originResponse.commandId));
  }
  return Future.value(response.success);
}