public class ReplayScenario extends Object
Constructor and Description |
---|
ReplayScenario(com.sportradar.uf.sportsapi.datamodel.ReplayScenarioType scenario,
SportEntityFactory entityFactory,
ExceptionHandlingStrategy handlingStrategy)
Initializes a new
ReplayScenario instance which represent an available replay scenario |
Modifier and Type | Method and Description |
---|---|
List<SportEvent> |
getAssociatedEvents(Locale locale)
Returns a
List of SportEvent s that are a part of the scenario |
String |
getDescription()
Returns the scenario description
|
int |
getId()
Returns the replay scenario identifier
|
boolean |
isRunParallel()
Returns an indication if the scenario can be run in parallel
|
public ReplayScenario(com.sportradar.uf.sportsapi.datamodel.ReplayScenarioType scenario, SportEntityFactory entityFactory, ExceptionHandlingStrategy handlingStrategy)
ReplayScenario
instance which represent an available replay scenarioscenario
- the API representation of the scenarioentityFactory
- a SportEntityFactory
instance which will be used to build associated sport eventshandlingStrategy
- the ExceptionHandlingStrategy
that is associated with the current SDK instancepublic int getId()
public String getDescription()
public boolean isRunParallel()
true
if the scenario can be run in parallel, otherwise false
public List<SportEvent> getAssociatedEvents(Locale locale)
List
of SportEvent
s that are a part of the scenariolocale
- the Locale
in which the events should be builtList
of SportEvent
s that are a part of the scenarioCopyright © 2016–2025. All rights reserved.