java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.status.CompetitionStatusImpl
All Implemented Interfaces:
CompetitionStatus
Direct Known Subclasses:
MatchStatusImpl, StageStatusImpl

public class CompetitionStatusImpl extends Object implements CompetitionStatus
The most basic status implementation describing core competition attributes
  • Constructor Details

  • Method Details

    • getWinnerId

      public Urn getWinnerId()
      Returns the sport event winner identifier
      Specified by:
      getWinnerId in interface CompetitionStatus
      Returns:
      the sport event winner identifier, if available; otherwise null
    • getStatus

      public EventStatus getStatus()
      Returns an EventStatus describing the high-level status of the associated sport event
      Specified by:
      getStatus in interface CompetitionStatus
      Returns:
      an EventStatus describing the high-level status of the associated sport event
    • getReportingStatus

      public ReportingStatus getReportingStatus()
      Returns a ReportingStatus describing the reporting status of the associated sport event
      Specified by:
      getReportingStatus in interface CompetitionStatus
      Returns:
      a ReportingStatus describing the reporting status of the associated sport event
    • getEventResults

      public List<EventResult> getEventResults()
      Returns a List of event results
      Specified by:
      getEventResults in interface CompetitionStatus
      Returns:
      - a List of event results
    • getPropertyValue

      public Object getPropertyValue(String property)
      Returns the value of the property specified by it's name
      Specified by:
      getPropertyValue in interface CompetitionStatus
      Parameters:
      property - the name of the property to retrieve
      Returns:
      the value of the requested property if available; otherwise null
    • tryGetPropertyValue

      public <T> T tryGetPropertyValue(String property, Class<T> requestedType)
      Tries to return the requested property value in the required type
      Specified by:
      tryGetPropertyValue in interface CompetitionStatus
      Type Parameters:
      T - the generic type value which should be returned
      Parameters:
      property - the name of the property to retrieve
      requestedType - 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

      public Map<String,Object> getProperties()
      Returns an unmodifiable 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

      Specified by:
      getProperties in interface CompetitionStatus
      Returns:
      an unmodifiable Map of additional sport event status properties
    • toKeyValueStore

      public Map<String,Object> toKeyValueStore()
      Returns a Map containing data of the sport event status ordered in key/value pairs
      Specified by:
      toKeyValueStore in interface CompetitionStatus
      Returns:
      a Map containing data of the sport event status ordered in key/value pairs
    • getPeriodOfLadder

      public Integer getPeriodOfLadder()
      Returns the period of ladder
      Specified by:
      getPeriodOfLadder in interface CompetitionStatus
      Returns:
      the period of ladder