Class SidebarModelFactory

java.lang.Object
dev.deepcore.challenge.session.SidebarModelFactory

public final class SidebarModelFactory extends Object
Builds SidebarModel instances from current session and records state.
  • Constructor Details

    • SidebarModelFactory

      public SidebarModelFactory()
  • Method Details

    • create

      public SidebarModel create(RunRecordsService recordsService, SessionState.Phase phase, int readyCount, int onlineCount)
      Creates a sidebar model snapshot for lobby sidebar rendering.
      Parameters:
      recordsService - run records service used to read best split times
      phase - current session phase
      readyCount - number of ready players
      onlineCount - number of online players
      Returns:
      sidebar model snapshot for lobby rendering