Class JSONFlightExport
java.lang.Object
org.deltava.service.logbook.JSONFlightExport
A log book export class to generate JSON-formatted log books.
- Since:
- 12.4
- Version:
- 12.4
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescription(package private) static org.json.JSONObjectformat(Recorder r, RouteEntry re) Formats a RouteEntry bean into a JSON object.(package private) static org.json.JSONObjectformat(NavigationDataBean ndb) Formats a NavigationDataBean into a JSON object.(package private) static org.json.JSONObjectformat(Aircraft ac, FlightReport fr) Formats a FlightReport into a JSON object.(package private) static org.json.JSONObjectformat(PositionData pd) Formats an online PositionData bean into a JSON object.
-
Method Details
-
format
Formats a FlightReport into a JSON object.- Parameters:
ac- the Aircraft usedfr- a FlightReport- Returns:
- a JSONObject
-
format
Formats a RouteEntry bean into a JSON object.- Parameters:
r- the Recorder usedre- the RouteEntry- Returns:
- a JSONOject
-
format
Formats an online PositionData bean into a JSON object.- Parameters:
pd- a PositionData- Returns:
- a JSONObject
-