Class SportEventStatusFactoryImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.SportEventStatusFactoryImpl
- All Implemented Interfaces:
SportEventStatusFactory
Factory used to build various sport event status instances such as
MatchStatus,...-
Constructor Summary
ConstructorsConstructorDescriptionSportEventStatusFactoryImpl(SportEventStatusCache sportEventStatusCache, NamedValuesProvider namedValuesProvider) -
Method Summary
Modifier and TypeMethodDescription<T extends CompetitionStatus>
TbuildSportEventStatus(Urn eventId, Class<T> targetClass, boolean makeApiCall) Builds the requested sport event status type
-
Constructor Details
-
SportEventStatusFactoryImpl
@Inject public SportEventStatusFactoryImpl(SportEventStatusCache sportEventStatusCache, NamedValuesProvider namedValuesProvider)
-
-
Method Details
-
buildSportEventStatus
public <T extends CompetitionStatus> T buildSportEventStatus(Urn eventId, Class<T> targetClass, boolean makeApiCall) Builds the requested sport event status type- Specified by:
buildSportEventStatusin interfaceSportEventStatusFactory- Type Parameters:
T- the expected return type- Parameters:
eventId- aUrnrepresenting the id of the sport event whose status to buildtargetClass- the expected return type classmakeApiCall- should the API call be made if necessary- Returns:
- a
CompetitionStatusrepresenting the status of the specified sport event
-