Commit 8b991592 authored by Luca Weiss's avatar Luca Weiss
Browse files

Allow ticketedSeat for bus extractors

Make it possible for a bus extractor to set the reserved seat:

  var res = JsonLd.newBusReservation();
  res.reservedTicket.ticketedSeat.seatNumber = "foo";
parent f19e8f4a
Pipeline #208041 passed with stage
in 2 minutes and 48 seconds
......@@ -99,7 +99,10 @@ QJSValue JsApi::JsonLd::newBusReservation() const
const auto dep = newPlace(QStringLiteral("BusStation"));
const auto arr = newPlace(QStringLiteral("BusStation"));
const auto person = newObject(QStringLiteral("Person"));
const auto ticket = newObject(QStringLiteral("Ticket"));
const auto seat = newObject(QStringLiteral("Seat"));
auto ticket = newObject(QStringLiteral("Ticket"));
ticket.setProperty(QStringLiteral("ticketedSeat"), seat);
auto resFor = newObject(QStringLiteral("BusTrip"));
resFor.setProperty(QStringLiteral("departureBusStop"), dep);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment