Class SportEventStatusDto

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.dto.SportEventStatusDto

public class SportEventStatusDto extends Object
A data-transfer-object representation for sport event status. The status can be receiver through messages or fetched from the API
  • Constructor Details

    • SportEventStatusDto

      public SportEventStatusDto(com.sportradar.uf.sportsapi.datamodel.SapiStageSportEventStatus sportEventStatus)
      Initializes a new instance of the SportEventStatusDto from the provided SapiStageSportEventStatus which is fetched from the API
      Parameters:
      sportEventStatus - - a SapiStageSportEventStatus used to build the instance
    • SportEventStatusDto

      public SportEventStatusDto(com.sportradar.uf.sportsapi.datamodel.SapiSportEventStatus sportEventStatus, com.sportradar.uf.sportsapi.datamodel.SapiMatchStatistics statistics, Map<HomeAway,String> homeAwayMap)
      Initializes a new instance of the SportEventStatusDto from the provided SapiSportEventStatus which is fetched from the API
      Parameters:
      sportEventStatus - a SapiSportEventStatus used to build the instance
      statistics - the associated event statistics
      homeAwayMap - a map containing data about home/away competitors, this data is available only for events of type match
    • SportEventStatusDto

      public SportEventStatusDto(com.sportradar.uf.datamodel.UfSportEventStatus seStatus)
      Initializes a new instance of the SportEventStatusDto from the provided UfSportEventStatus which is received as a part of messages
      Parameters:
      seStatus - - a UfSportEventStatus used to build the instance
  • Method Details

    • getNotStarted

      public static SportEventStatusDto getNotStarted()
      Constructs a new SportEventStatusDto describing the associated event as "Not started"
      Returns:
      - a new SportEventStatusDto which is in a "Not started" state
    • getWinnerId

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

      public EventStatus getStatus()
      Returns an EventStatus describing the status of the associated sport event
      Returns:
      - an EventStatus describing the status of the associated sport event
    • getMatchStatusId

      public int getMatchStatusId()
      Returns a numeric representation of the event status
      Returns:
      - a numeric representation of the event status
    • getReportingStatus

      public ReportingStatus getReportingStatus()
      Returns a ReportingStatus describing the reporting status of the associated sport event
      Returns:
      - a ReportingStatus describing the reporting status of the associated sport event
    • getHomeScore

      public BigDecimal getHomeScore()
      Returns the score of the home team in the current sport event
      Returns:
      - if available a BigDecimal indicating the score of the home team in the associated event; otherwise null
    • getAwayScore

      public BigDecimal getAwayScore()
      Returns the score of the home team in the current sport event
      Returns:
      - if available a BigDecimal indicating the score of the away team in the associated event; otherwise null
    • getPeriodScores

      public List<PeriodScoreDto> getPeriodScores()
      Returns a List of period scores
      Returns:
      - a List of period scores
    • getEventClock

      public EventClock getEventClock()
      Returns an EventClock instance describing the timings in the current event
      Returns:
      - an EventClock instance describing the timings in the current event
    • getEventResults

      public List<EventResult> getEventResults()
      Returns a List of event results
      Returns:
      - a List of event results
    • getSportEventStatisticsDto

      public SportEventStatisticsDto getSportEventStatisticsDto()
      Returns a SportEventStatisticsDto instance describing the associated event statistics
      Returns:
      an object describing the associated event statistics if available; otherwise null
    • getProperties

      public Map<String,Object> getProperties()
      Returns an unmodifiable Map which contains all the additional sport event status properties which aren't specifically exposed
      Returns:
      - an unmodifiable Map which contains all the additional sport event status properties which aren't specifically exposed
    • isDecidedByFed

      public Boolean isDecidedByFed()
      Returns an indication if the status is decided by fed
      Returns:
      an indication if the status is decided by fed if available; otherwise null
    • getPeriodOfLadder

      public Integer getPeriodOfLadder()
      Returns the period of ladder
      Returns:
      the period of ladder
    • getHomePenaltyScore

      public final Integer getHomePenaltyScore()
      Get the penalty score of the home competitor competing on the associated sport event (for Ice Hockey)
    • getAwayPenaltyScore

      public final Integer getAwayPenaltyScore()
      Get the penalty score of the away competitor competing on the associated sport event (for Ice Hockey)
    • toKeyValueStore

      public Map<String,Object> toKeyValueStore()
      Returns a Map containing data of the sport event status ordered in key/value pairs
      Returns:
      - a Map containing data of the sport event status ordered in key/value pairs