xcRemoveDevice method

Future<bool> xcRemoveDevice(
  1. String deviceId
)

删除设备 deviceId 设备序列号 or ip+port return 是否删除成功

Implementation

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