public class CompetitionStatusImpl extends Object implements CompetitionStatus
Constructor and Description |
---|
CompetitionStatusImpl(SportEventStatusCi statusCi) |
Modifier and Type | Method and Description |
---|---|
List<EventResult> |
getEventResults()
Returns a
List of event results |
Integer |
getPeriodOfLadder()
Returns the period of ladder
|
Map<String,Object> |
getProperties()
Returns an unmodifiable
Map of additional sport event status properties |
Object |
getPropertyValue(String property)
Returns the value of the property specified by it's name
|
ReportingStatus |
getReportingStatus()
Returns a
ReportingStatus describing the reporting status of the associated sport event |
EventStatus |
getStatus()
Returns an
EventStatus describing the high-level status of the associated sport event |
Urn |
getWinnerId()
Returns the sport event winner identifier
|
Map<String,Object> |
toKeyValueStore()
Returns a
Map containing data of the sport event status ordered in key/value pairs |
<T> T |
tryGetPropertyValue(String property,
Class<T> requestedType)
Tries to return the requested property value in the required type
|
public CompetitionStatusImpl(SportEventStatusCi statusCi)
public Urn getWinnerId()
getWinnerId
in interface CompetitionStatus
public EventStatus getStatus()
EventStatus
describing the high-level status of the associated sport eventgetStatus
in interface CompetitionStatus
EventStatus
describing the high-level status of the associated sport eventpublic ReportingStatus getReportingStatus()
ReportingStatus
describing the reporting status of the associated sport eventgetReportingStatus
in interface CompetitionStatus
ReportingStatus
describing the reporting status of the associated sport eventpublic List<EventResult> getEventResults()
List
of event resultsgetEventResults
in interface CompetitionStatus
List
of event resultspublic Object getPropertyValue(String property)
getPropertyValue
in interface CompetitionStatus
property
- the name of the property to retrievepublic <T> T tryGetPropertyValue(String property, Class<T> requestedType)
tryGetPropertyValue
in interface CompetitionStatus
T
- the generic type value which should be returnedproperty
- the name of the property to retrieverequestedType
- the type to which the property should be checked againstpublic Map<String,Object> getProperties()
Map
of additional sport event status properties
List 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
getProperties
in interface CompetitionStatus
Map
of additional sport event status propertiespublic Map<String,Object> toKeyValueStore()
Map
containing data of the sport event status ordered in key/value pairstoKeyValueStore
in interface CompetitionStatus
Map
containing data of the sport event status ordered in key/value pairspublic Integer getPeriodOfLadder()
getPeriodOfLadder
in interface CompetitionStatus
Copyright © 2016–2025. All rights reserved.