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–2024. All rights reserved.