Class JSONFlightExport

java.lang.Object
org.deltava.service.logbook.JSONFlightExport

class JSONFlightExport extends Object
A log book export class to generate JSON-formatted log books.
Since:
12.4
Version:
12.4
Author:
Luke
  • Method Details

    • format

      static org.json.JSONObject format(Aircraft ac, FlightReport fr)
      Formats a FlightReport into a JSON object.
      Parameters:
      ac - the Aircraft used
      fr - a FlightReport
      Returns:
      a JSONObject
    • format

      static org.json.JSONObject format(Recorder r, RouteEntry re)
      Formats a RouteEntry bean into a JSON object.
      Parameters:
      r - the Recorder used
      re - the RouteEntry
      Returns:
      a JSONOject
    • format

      static org.json.JSONObject format(NavigationDataBean ndb)
      Formats a NavigationDataBean into a JSON object.
      Parameters:
      ndb - a NavigationDataBean
      Returns:
      a JSONObject
    • format

      static org.json.JSONObject format(PositionData pd)
      Formats an online PositionData bean into a JSON object.
      Parameters:
      pd - a PositionData
      Returns:
      a JSONObject