Class ReplayScenario
java.lang.Object
com.sportradar.unifiedodds.sdk.managers.ReplayScenario
A representation of a possible replay scenario provided by the feed
-
Constructor Summary
ConstructorsConstructorDescriptionReplayScenario(com.sportradar.uf.sportsapi.datamodel.ReplayScenarioType scenario, SportEntityFactory entityFactory, ExceptionHandlingStrategy handlingStrategy) Initializes a newReplayScenarioinstance which represent an available replay scenario -
Method Summary
Modifier and TypeMethodDescriptiongetAssociatedEvents(Locale locale) Returns aListofSportEvents that are a part of the scenarioReturns the scenario descriptionintgetId()Returns the replay scenario identifierbooleanReturns an indication if the scenario can be run in parallel
-
Constructor Details
-
ReplayScenario
public ReplayScenario(com.sportradar.uf.sportsapi.datamodel.ReplayScenarioType scenario, SportEntityFactory entityFactory, ExceptionHandlingStrategy handlingStrategy) Initializes a newReplayScenarioinstance which represent an available replay scenario- Parameters:
scenario- the API representation of the scenarioentityFactory- aSportEntityFactoryinstance which will be used to build associated sport eventshandlingStrategy- theExceptionHandlingStrategythat is associated with the current SDK instance
-
-
Method Details
-
getId
public int getId()Returns the replay scenario identifier- Returns:
- the replay scenario identifier
-
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:
trueif the scenario can be run in parallel, otherwisefalse
-
getAssociatedEvents
Returns aListofSportEvents that are a part of the scenario- Parameters:
locale- theLocalein which the events should be built- Returns:
- a
ListofSportEvents that are a part of the scenario
-