Class JSONFactory
java.lang.Object
com.djrapitops.plan.delivery.rendering.json.JSONFactory
Factory with different JSON creation methods placed to a single class.
-
Constructor Summary
ConstructorDescriptionJSONFactory(PlanConfig config, Locale locale, DBSystem dbSystem, ServerInfo serverInfo, ServerUptimeCalculator serverUptimeCalculator, Graphs graphs, Formatters formatters)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addActiveSessions(List<FinishedSession> sessions)
pingPerGeolocation(ServerUUID serverUUID)
serverPlayerKillsAsJSONMap(ServerUUID serverUUID)
serverPlayersTableJSON(ServerUUID serverUUID)
serverSessionsAsJSONMap(ServerUUID serverUUID)
-
Constructor Details
-
JSONFactory
@Inject public JSONFactory(PlanConfig config, Locale locale, DBSystem dbSystem, ServerInfo serverInfo, ServerUptimeCalculator serverUptimeCalculator, Graphs graphs, Formatters formatters)
-
-
Method Details
-
serverPlayersTableJSON
-
networkPlayersTableJSON
-
serverSessionsAsJSONMap
-
networkSessionsAsJSONMap
-
addActiveSessions
-
serverPlayerKillsAsJSONMap
-
serversAsJSONMaps
-
pingPerGeolocation
-
pingPerGeolocation
-
listServers
-