Class JSONFactory


  • @Singleton
    public class JSONFactory
    extends java.lang.Object
    Factory with different JSON creation methods placed to a single class.
    • 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()