Class ReplayScenario

java.lang.Object
com.sportradar.unifiedodds.sdk.managers.ReplayScenario

public class ReplayScenario extends Object
A representation of a possible replay scenario provided by the feed
  • Constructor Details

    • ReplayScenario

      public ReplayScenario(com.sportradar.uf.sportsapi.datamodel.ReplayScenarioType scenario, SportEntityFactory entityFactory, ExceptionHandlingStrategy handlingStrategy)
      Initializes a new ReplayScenario instance which represent an available replay scenario
      Parameters:
      scenario - the API representation of the scenario
      entityFactory - a SportEntityFactory instance which will be used to build associated sport events
      handlingStrategy - the ExceptionHandlingStrategy that is associated with the current SDK instance
  • Method Details

    • getId

      public int getId()
      Returns the replay scenario identifier
      Returns:
      the replay scenario identifier
    • getDescription

      public String getDescription()
      Returns the scenario description
      Returns:
      the scenario description
    • isRunParallel

      public boolean isRunParallel()
      Returns an indication if the scenario can be run in parallel
      Returns:
      true if the scenario can be run in parallel, otherwise false
    • getAssociatedEvents

      public List<SportEvent> getAssociatedEvents(Locale locale)
      Returns a List of SportEvents that are a part of the scenario
      Parameters:
      locale - the Locale in which the events should be built
      Returns:
      a List of SportEvents that are a part of the scenario