Class CompleteRoundCiImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.ci.CompleteRoundCiImpl
- All Implemented Interfaces:
CompleteRoundCi,RoundCi
A round representation used by caching components. The cache item exists as a whole object,
there is no support for partial loading
-
Constructor Summary
ConstructorsConstructorDescriptionCompleteRoundCiImpl(com.sportradar.uf.sportsapi.datamodel.SapiMatchRound round, Locale locale) Initializes a new instance of theCompleteRoundCiImplclassCompleteRoundCiImpl(ExportableCompleteRoundCi exportable) -
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 roundbooleanhasTranslationsFor(List<Locale> locales) Checks if the associated cache item contains all the providedLocalesvoidMerges the information from the providedSapiMatchRoundinto the current instancetoString()
-
Constructor Details
-
CompleteRoundCiImpl
public CompleteRoundCiImpl(com.sportradar.uf.sportsapi.datamodel.SapiMatchRound round, Locale locale) Initializes a new instance of theCompleteRoundCiImplclass- Parameters:
round- -SapiMatchRoundcontaining information about the roundlocale- -Localespecifying the language of the round
-
CompleteRoundCiImpl
-
-
Method Details
-
merge
Merges the information from the providedSapiMatchRoundinto the current instance- Specified by:
mergein interfaceCompleteRoundCi- Parameters:
round- -SapiMatchRoundcontaining information about the roundlocale- -Localespecifying the language of the round
-
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
-
hasTranslationsFor
Checks if the associated cache item contains all the providedLocales- Specified by:
hasTranslationsForin interfaceCompleteRoundCi- Parameters:
locales- theLocales that should be checked- Returns:
trueif all the providedLocales are cached, otherwisefalse
-
toString
-
export
-