Class CompetitionStatusImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.status.CompetitionStatusImpl
- All Implemented Interfaces:
CompetitionStatus
- Direct Known Subclasses:
MatchStatusImpl,StageStatusImpl
The most basic status implementation describing core competition attributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns aListof event resultsReturns the period of ladderReturns an unmodifiableMapof additional sport event status propertiesgetPropertyValue(String property) Returns the value of the property specified by it's nameReturns aReportingStatusdescribing the reporting status of the associated sport eventReturns anEventStatusdescribing the high-level status of the associated sport eventReturns the sport event winner identifierReturns aMapcontaining data of the sport event status ordered in key/value pairs<T> TtryGetPropertyValue(String property, Class<T> requestedType) Tries to return the requested property value in the required type
-
Constructor Details
-
CompetitionStatusImpl
-
-
Method Details
-
getWinnerId
Returns the sport event winner identifier- Specified by:
getWinnerIdin interfaceCompetitionStatus- Returns:
- the sport event winner identifier, if available; otherwise null
-
getStatus
Returns anEventStatusdescribing the high-level status of the associated sport event- Specified by:
getStatusin interfaceCompetitionStatus- Returns:
- an
EventStatusdescribing the high-level status of the associated sport event
-
getReportingStatus
Returns aReportingStatusdescribing the reporting status of the associated sport event- Specified by:
getReportingStatusin interfaceCompetitionStatus- Returns:
- a
ReportingStatusdescribing the reporting status of the associated sport event
-
getEventResults
Returns aListof event results- Specified by:
getEventResultsin interfaceCompetitionStatus- Returns:
- - a
Listof event results
-
getPropertyValue
Returns the value of the property specified by it's name- Specified by:
getPropertyValuein interfaceCompetitionStatus- Parameters:
property- the name of the property to retrieve- Returns:
- the value of the requested property if available; otherwise null
-
tryGetPropertyValue
Tries to return the requested property value in the required type- Specified by:
tryGetPropertyValuein interfaceCompetitionStatus- Type Parameters:
T- the generic type value which should be returned- Parameters:
property- the name of the property to retrieverequestedType- the type to which the property should be checked against- Returns:
- the value of the requested property if available and the types are compatible; otherwise null
-
getProperties
Returns an unmodifiableMapof additional sport event status propertiesList of possible properties: aggregateAwayScore aggregateHomeScore aggregateWinnerId decidedByFed period winnerId winningReason throw try awayBatter awayDismissals awayGameScore awayLegScore awayPenaltyRuns awayRemainingBowls awaySuspend balls bases currentCtTeam currentEnd currentServer delivery expeditedMode homeBatter homeDismissals homeGameScore homeLegScore homePenaltyRuns homeRemainingBowls homeSuspend innings outs over position possession remainingReds strikes tiebreak visit yards
- Specified by:
getPropertiesin interfaceCompetitionStatus- Returns:
- an unmodifiable
Mapof additional sport event status properties
-
toKeyValueStore
Returns aMapcontaining data of the sport event status ordered in key/value pairs- Specified by:
toKeyValueStorein interfaceCompetitionStatus- Returns:
- a
Mapcontaining data of the sport event status ordered in key/value pairs
-
getPeriodOfLadder
Returns the period of ladder- Specified by:
getPeriodOfLadderin interfaceCompetitionStatus- Returns:
- the period of ladder
-