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) serverForIdentifier
(String identifier) serverPlayerKillsAsJSONMaps
(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
-
serverPlayerKillsAsJSONMaps
-
serverForIdentifier
-
serversAsJSONMaps
-
pingPerGeolocation
-
pingPerGeolocation
-
listServers
-