Class SportEventStatusDto
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.dto.SportEventStatusDto
A data-transfer-object representation for sport event status. The status can be receiver through messages or fetched
from the API
-
Constructor Summary
ConstructorsConstructorDescriptionSportEventStatusDto(com.sportradar.uf.datamodel.UfSportEventStatus seStatus) Initializes a new instance of theSportEventStatusDtofrom the providedUfSportEventStatuswhich is received as a part of messagesSportEventStatusDto(com.sportradar.uf.sportsapi.datamodel.SapiSportEventStatus sportEventStatus, com.sportradar.uf.sportsapi.datamodel.SapiMatchStatistics statistics, Map<HomeAway, String> homeAwayMap) Initializes a new instance of theSportEventStatusDtofrom the providedSapiSportEventStatuswhich is fetched from the APISportEventStatusDto(com.sportradar.uf.sportsapi.datamodel.SapiStageSportEventStatus sportEventStatus) Initializes a new instance of theSportEventStatusDtofrom the providedSapiStageSportEventStatuswhich is fetched from the API -
Method Summary
Modifier and TypeMethodDescriptionfinal IntegerGet the penalty score of the away competitor competing on the associated sport event (for Ice Hockey)Returns the score of the home team in the current sport eventReturns anEventClockinstance describing the timings in the current eventReturns aListof event resultsfinal IntegerGet the penalty score of the home competitor competing on the associated sport event (for Ice Hockey)Returns the score of the home team in the current sport eventintReturns a numeric representation of the event statusstatic SportEventStatusDtoConstructs a newSportEventStatusDtodescribing the associated event as "Not started"Returns the period of ladderReturns aListof period scoresReturns an unmodifiableMapwhich contains all the additional sport event status properties which aren't specifically exposedReturns aReportingStatusdescribing the reporting status of the associated sport eventReturns aSportEventStatisticsDtoinstance describing the associated event statisticsReturns anEventStatusdescribing the status of the associated sport eventReturns the sport event winner identifierReturns an indication if the status is decided by fedReturns aMapcontaining data of the sport event status ordered in key/value pairs
-
Constructor Details
-
SportEventStatusDto
public SportEventStatusDto(com.sportradar.uf.sportsapi.datamodel.SapiStageSportEventStatus sportEventStatus) Initializes a new instance of theSportEventStatusDtofrom the providedSapiStageSportEventStatuswhich is fetched from the API- Parameters:
sportEventStatus- - aSapiStageSportEventStatusused 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 theSportEventStatusDtofrom the providedSapiSportEventStatuswhich is fetched from the API- Parameters:
sportEventStatus- aSapiSportEventStatusused to build the instancestatistics- the associated event statisticshomeAwayMap- 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 theSportEventStatusDtofrom the providedUfSportEventStatuswhich is received as a part of messages- Parameters:
seStatus- - aUfSportEventStatusused to build the instance
-
-
Method Details
-
getNotStarted
Constructs a newSportEventStatusDtodescribing the associated event as "Not started"- Returns:
- - a new
SportEventStatusDtowhich is in a "Not started" state
-
getWinnerId
Returns the sport event winner identifier- Returns:
- the sport event winner identifier, if available; otherwise null
-
getStatus
Returns anEventStatusdescribing the status of the associated sport event- Returns:
- - an
EventStatusdescribing 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
Returns aReportingStatusdescribing the reporting status of the associated sport event- Returns:
- - a
ReportingStatusdescribing the reporting status of the associated sport event
-
getHomeScore
Returns the score of the home team in the current sport event- Returns:
- - if available a
BigDecimalindicating the score of the home team in the associated event; otherwise null
-
getAwayScore
Returns the score of the home team in the current sport event- Returns:
- - if available a
BigDecimalindicating the score of the away team in the associated event; otherwise null
-
getPeriodScores
Returns aListof period scores- Returns:
- - a
Listof period scores
-
getEventClock
Returns anEventClockinstance describing the timings in the current event- Returns:
- - an
EventClockinstance describing the timings in the current event
-
getEventResults
Returns aListof event results- Returns:
- - a
Listof event results
-
getSportEventStatisticsDto
Returns aSportEventStatisticsDtoinstance describing the associated event statistics- Returns:
- an object describing the associated event statistics if available; otherwise null
-
getProperties
Returns an unmodifiableMapwhich contains all the additional sport event status properties which aren't specifically exposed- Returns:
- - an unmodifiable
Mapwhich contains all the additional sport event status properties which aren't specifically exposed
-
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
Returns the period of ladder- Returns:
- the period of ladder
-
getHomePenaltyScore
Get the penalty score of the home competitor competing on the associated sport event (for Ice Hockey) -
getAwayPenaltyScore
Get the penalty score of the away competitor competing on the associated sport event (for Ice Hockey) -
toKeyValueStore
Returns aMapcontaining data of the sport event status ordered in key/value pairs- Returns:
- - a
Mapcontaining data of the sport event status ordered in key/value pairs
-