Interface PeriodScore
- All Known Implementing Classes:
PeriodScoreImpl
public interface PeriodScore
Defines methods implemented by classes representing a score of a sport event period
-
Method Summary
Modifier and TypeMethodDescriptionReturns the score of the away team in the period represented by the current instanceReturns the score of the home team in the period represented by the current instancedefault IntegerReturns the match status codeReturns the period description translated in the default localegetPeriodDescription(Locale locale) Returns the period description translated in the specified languageReturns the sequence number of the period represented by the current instanceReturns the period type
-
Method Details
-
getHomeScore
BigDecimal getHomeScore()Returns the score of the home team in the period represented by the current instance- Returns:
- - the score of the home team in the period represented by the current instance
-
getAwayScore
BigDecimal getAwayScore()Returns the score of the away team in the period represented by the current instance- Returns:
- - the score of the away team in the period represented by the current instance
-
getPeriodNumber
Integer getPeriodNumber()Returns the sequence number of the period represented by the current instance- Returns:
- - the sequence number of the period represented by the current instance
-
getPeriodDescription
LocalizedNamedValue getPeriodDescription()Returns the period description translated in the default locale- Returns:
- - the period description translated in the default locale
-
getPeriodDescription
Returns the period description translated in the specified language- Parameters:
locale- - aLocalespecifying the language of the status- Returns:
- - period description translated in the specified language
-
getPeriodType
PeriodType getPeriodType()Returns the period type- Returns:
- the period type
-
getMatchStatusCode
Returns the match status code- Returns:
- - the match status code
-