Class JSONFactory
- java.lang.Object
-
- com.djrapitops.plan.delivery.rendering.json.JSONFactory
-
@Singleton public class JSONFactory extends java.lang.Object
Factory with different JSON creation methods placed to a single class.
-
-
Constructor Summary
Constructors Constructor Description JSONFactory(PlanConfig config, Locale locale, DBSystem dbSystem, ServerInfo serverInfo, Graphs graphs, Formatters formatters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addActiveSessions(java.util.List<FinishedSession> sessions)
java.util.Map<java.lang.String,java.lang.Object>
networkPlayersTableJSON()
java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
networkSessionsAsJSONMap()
java.util.Map<java.lang.String,java.lang.Object>
pingPerGeolocation()
java.util.Map<java.lang.String,java.lang.Object>
pingPerGeolocation(ServerUUID serverUUID)
java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
serverPlayerKillsAsJSONMap(ServerUUID serverUUID)
java.util.Map<java.lang.String,java.lang.Object>
serverPlayersTableJSON(ServerUUID serverUUID)
java.util.Map<java.lang.String,java.lang.Object>
serversAsJSONMaps()
java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
serverSessionsAsJSONMap(ServerUUID serverUUID)
-
-
-
Constructor Detail
-
JSONFactory
@Inject public JSONFactory(PlanConfig config, Locale locale, DBSystem dbSystem, ServerInfo serverInfo, Graphs graphs, Formatters formatters)
-
-
Method Detail
-
serverPlayersTableJSON
public java.util.Map<java.lang.String,java.lang.Object> serverPlayersTableJSON(ServerUUID serverUUID)
-
networkPlayersTableJSON
public java.util.Map<java.lang.String,java.lang.Object> networkPlayersTableJSON()
-
serverSessionsAsJSONMap
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> serverSessionsAsJSONMap(ServerUUID serverUUID)
-
networkSessionsAsJSONMap
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> networkSessionsAsJSONMap()
-
addActiveSessions
public void addActiveSessions(java.util.List<FinishedSession> sessions)
-
serverPlayerKillsAsJSONMap
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> serverPlayerKillsAsJSONMap(ServerUUID serverUUID)
-
serversAsJSONMaps
public java.util.Map<java.lang.String,java.lang.Object> serversAsJSONMaps()
-
pingPerGeolocation
public java.util.Map<java.lang.String,java.lang.Object> pingPerGeolocation(ServerUUID serverUUID)
-
pingPerGeolocation
public java.util.Map<java.lang.String,java.lang.Object> pingPerGeolocation()
-
-