Class LoadableRoundCiImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.ci.LoadableRoundCiImpl
- All Implemented Interfaces:
LoadableRoundCi,RoundCi
A round representation used by caching components. The cache item properties are loaded on demand.
-
Constructor Summary
ConstructorsConstructorDescriptionLoadableRoundCiImpl(com.sportradar.uf.sportsapi.datamodel.SapiMatchRound roundData, boolean isFixtureEndpoint, Locale dataLocale, CacheItem associatedEventCi, DataRouterManager dataRouterManager, Locale defaultLocale, ExceptionHandlingStrategy exceptionHandlingStrategy) LoadableRoundCiImpl(CacheItem associatedEventCi, DataRouterManager dataRouterManager, Locale defaultLocale, ExceptionHandlingStrategy exceptionHandlingStrategy) LoadableRoundCiImpl(CacheItem associatedEventCi, ExportableLoadableRoundCi exportable, DataRouterManager dataRouterManager, ExceptionHandlingStrategy exceptionHandlingStrategy) -
Method Summary
Modifier and TypeMethodDescriptionexport()Returns the betradar identifierReturns the betradar nameReturns a value specifying the number of matches in the current cup round or a null reference if number of matches is not applicable to current instanceReturns a value specifying the number of the match in the current cup round or a null reference if match number is not applicable to current instancegetGroup()Returns the name of the group associated with the current roundReturns the id of the group associated with the current roundReturns the name for specific localeReturns a value specifying the round number or a null reference if round number is not definedReturns the id of the other matchgetPhase()Returns the phase of the roundgetPhaseOrGroupLongName(Locale locale) Returns the name or group long name for the specified localegetType()Returns the type of the roundvoidmerge(com.sportradar.uf.sportsapi.datamodel.SapiMatchRound round, Locale locale, boolean isFixtureEndpoint) Merges the information from the providedSapiMatchRoundinto the current instancetoString()
-
Constructor Details
-
LoadableRoundCiImpl
public LoadableRoundCiImpl(CacheItem associatedEventCi, DataRouterManager dataRouterManager, Locale defaultLocale, ExceptionHandlingStrategy exceptionHandlingStrategy) -
LoadableRoundCiImpl
public LoadableRoundCiImpl(com.sportradar.uf.sportsapi.datamodel.SapiMatchRound roundData, boolean isFixtureEndpoint, Locale dataLocale, CacheItem associatedEventCi, DataRouterManager dataRouterManager, Locale defaultLocale, ExceptionHandlingStrategy exceptionHandlingStrategy) -
LoadableRoundCiImpl
public LoadableRoundCiImpl(CacheItem associatedEventCi, ExportableLoadableRoundCi exportable, DataRouterManager dataRouterManager, ExceptionHandlingStrategy exceptionHandlingStrategy)
-
-
Method Details
-
getType
Returns the type of the round -
getGroup
Returns the name of the group associated with the current round -
getGroupId
Returns the id of the group associated with the current round- Specified by:
getGroupIdin interfaceRoundCi- Returns:
- the id of the group associated with the current round
-
getOtherMatchId
Returns the id of the other match- Specified by:
getOtherMatchIdin interfaceRoundCi- Returns:
- the id of the other match
-
getNumber
Returns a value specifying the round number or a null reference if round number is not defined -
getCupRoundMatches
Returns a value specifying the number of matches in the current cup round or a null reference if number of matches is not applicable to current instance- Specified by:
getCupRoundMatchesin interfaceRoundCi- Returns:
- a value specifying the number of matches in the current cup round or a null reference if number of matches is not applicable to current instance
-
getCupRoundMatchNumber
Returns a value specifying the number of the match in the current cup round or a null reference if match number is not applicable to current instance- Specified by:
getCupRoundMatchNumberin interfaceRoundCi- Returns:
- a value specifying the number of the match in the current cup round or a null reference if match number is not applicable to current instance
-
getBetradarId
Returns the betradar identifier- Specified by:
getBetradarIdin interfaceRoundCi- Returns:
- the betradar identifier; or null if unavailable
-
getName
Returns the name for specific locale -
getPhaseOrGroupLongName
Returns the name or group long name for the specified locale- Specified by:
getPhaseOrGroupLongNamein interfaceRoundCi- Parameters:
locale-Localespecifying the language of the value- Returns:
- the name or group long name if exists, or null
-
getPhase
Returns the phase of the round -
getBetradarName
Returns the betradar name- Specified by:
getBetradarNamein interfaceRoundCi- Returns:
- the betradar name
-
merge
public void merge(com.sportradar.uf.sportsapi.datamodel.SapiMatchRound round, Locale locale, boolean isFixtureEndpoint) Merges the information from the providedSapiMatchRoundinto the current instance- Specified by:
mergein interfaceLoadableRoundCi- Parameters:
round-SapiMatchRoundcontaining information about the roundlocale-Localespecifying the language of the provided dataisFixtureEndpoint- an indication if the data provided was extracted from the fixture endpoint
-
toString
-
export
-