public interface SportEntityFactory
Sport
and Tournament
instances.Modifier and Type | Method and Description |
---|---|
CategorySummary |
buildCategory(URN id,
List<Locale> locales)
Builds the associated category summary
|
Competitor |
buildCompetitor(URN id,
String qualifier,
Integer division,
Boolean isVirtual,
com.sportradar.unifiedodds.sdk.caching.SportEventCI parentSportEventCI,
List<Locale> locales)
Builds a
Competitor instance associated with the provided URN |
PlayerProfile |
buildPlayerProfile(URN id,
List<Locale> locales,
List<URN> possibleAssociatedCompetitorIds) |
Sport |
buildSport(URN sportId,
List<Locale> locales)
Builds a
Sport instance with the provided data |
SportEvent |
buildSportEvent(URN id,
List<Locale> locales,
boolean buildBasicEventImpl)
Builds the
Competition derived class based on the provided data |
SportEvent |
buildSportEvent(URN id,
URN sportId,
List<Locale> locales,
boolean buildBasicEventImpl)
Builds the
SportEvent derived class based on the provided data |
List<Competition> |
buildSportEvents(List<URN> ids,
List<Locale> locales)
Builds a list of
Competition derived classes based on the provided data |
SportSummary |
buildSportForCategory(URN categoryId,
List<Locale> locales)
Builds the associated category sport summary
|
List<Sport> |
buildSports(List<Locale> locales)
|
List<Competitor> |
buildStreamCompetitors(List<URN> competitorIds,
com.sportradar.unifiedodds.sdk.caching.SportEventCI parentSportEventCI,
List<Locale> locales)
Builds a
List of Competitor instances
Notice: a StreamWrapperException is thrown if any problems are encountered |
List<Sport> buildSports(List<Locale> locales) throws com.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
Sport buildSport(URN sportId, List<Locale> locales) throws com.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
Sport
instance with the provided datasportId
- - the URN
sport identifierlocales
- - a List
of locales specifying the languages used in the returned instanceSport
instancecom.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
- if the requested sport failed to build or was not foundCategorySummary buildCategory(URN id, List<Locale> locales) throws com.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
id
- the identifier of the categorylocales
- locales in which the data is providedCategorySummary
associated with the current instancecom.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
- if the category CI could not be foundSportSummary buildSportForCategory(URN categoryId, List<Locale> locales) throws com.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
categoryId
- the identifier of the categorylocales
- locales in which the data is providedSportSummary
associated with the current instancecom.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
- if the category CI could not be foundSportEvent buildSportEvent(URN id, List<Locale> locales, boolean buildBasicEventImpl) throws com.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
Competition
derived class based on the provided dataid
- - the URN
specifying the identifier of the sport eventlocales
- - a List
of locales specifying the languages used in the returned instancebuildBasicEventImpl
- - an indication if the basic event entity should be built if the mapping type is unknownCompetition
com.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
- if the requested sport event object could not be provided(failure built, api request errors,..)SportEvent buildSportEvent(URN id, URN sportId, List<Locale> locales, boolean buildBasicEventImpl) throws com.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
SportEvent
derived class based on the provided dataid
- - the URN
specifying the identifier of the sport eventsportId
- - the URN
specifying the sport type of the eventlocales
- - a List
of locales specifying the languages used in the returned instancebuildBasicEventImpl
- - an indication if the basic event entity should be built if the mapping type is unknowncom.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
- if the requested sport event object could not be provided(failure built, api request errors,..)List<Competition> buildSportEvents(List<URN> ids, List<Locale> locales) throws com.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
Competition
derived classes based on the provided dataids
- - the list of URN
specifying the identifier of the sport events to be builtlocales
- - a List
of locales specifying the languages used in the returned instancecom.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
- if the requested sport event objects could not be provided(failure built, api request errors,..)Competitor buildCompetitor(URN id, String qualifier, Integer division, Boolean isVirtual, com.sportradar.unifiedodds.sdk.caching.SportEventCI parentSportEventCI, List<Locale> locales) throws com.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
Competitor
instance associated with the provided URN
id
- the competitor identifierqualifier
- the competitor qualifier (if available) *division
- the competitor division (if available)isVirtual
- indication if the competitor is marked as virtualparentSportEventCI
- the parent SportEventCI
this Competitor
belongs tolocales
- the Locale
s in which the data should be availablecom.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
- if the requested instance could not be providedList<Competitor> buildStreamCompetitors(List<URN> competitorIds, com.sportradar.unifiedodds.sdk.caching.SportEventCI parentSportEventCI, List<Locale> locales)
List
of Competitor
instances
Notice: a StreamWrapperException
is thrown if any problems are encounteredcompetitorIds
- the ids representing the instances that should be builtparentSportEventCI
- the parent SportEventCI
this Competitor
belongs tolocales
- the Locale
s in which the data should be availablePlayerProfile buildPlayerProfile(URN id, List<Locale> locales, List<URN> possibleAssociatedCompetitorIds) throws com.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
id
- the player identifierlocales
- the Locale
s in which the data should be availablepossibleAssociatedCompetitorIds
- a list of possible associated competitor ids (used to prefetch data)com.sportradar.unifiedodds.sdk.exceptions.internal.ObjectNotFoundException
- if the requested instance could not be providedCopyright © 2016–2023. All rights reserved.