java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.SeasonImpl
All Implemented Interfaces:
LongTermEvent, Season, SportEvent

public class SeasonImpl extends Object implements Season
Provides methods used to access data of long term events of type season
  • Constructor Details

  • Method Details

    • getName

      public String getName(Locale locale)
      Returns the sport event name
      Specified by:
      getName in interface SportEvent
      Parameters:
      locale - the Locale in which the name should be provided
      Returns:
      the sport event name if available; otherwise null
    • getScheduledTime

      public Date getScheduledTime()
      Returns the Date specifying when the sport event associated with the current instance was scheduled
      Specified by:
      getScheduledTime in interface SportEvent
      Returns:
      - a Date instance specifying when the sport event associated with the current instance was scheduled
    • getScheduledEndTime

      public Date getScheduledEndTime()
      Returns the Date specifying when the sport event associated with the current instance was scheduled to end
      Specified by:
      getScheduledEndTime in interface SportEvent
      Returns:
      - a Date instance specifying when the sport event associated with the current instance was scheduled to end
    • isStartTimeTbd

      public Boolean isStartTimeTbd()
      Returns the Boolean specifying if the start time to be determined is set for the current instance
      Specified by:
      isStartTimeTbd in interface SportEvent
      Returns:
      if available, the Boolean specifying if the start time to be determined is set for the current instance
    • getReplacedBy

      public Urn getReplacedBy()
      Returns the Urn specifying the replacement sport event for the current instance
      Specified by:
      getReplacedBy in interface SportEvent
      Returns:
      if available, the Urn specifying the replacement sport event for the current instance
    • getSeasonCoverage

      public SeasonCoverage getSeasonCoverage()
      Returns a SeasonCoverage instance containing information about the available coverage for the associated season
      Specified by:
      getSeasonCoverage in interface Season
      Returns:
      - a SeasonCoverage instance containing information about the available coverage
    • getGroups

      public List<Group> getGroups()
      Returns a List of groups associated with the associated season
      Specified by:
      getGroups in interface Season
      Returns:
      - a List of groups associated with the associated season
    • getSchedule

      public List<Competition> getSchedule()
      Returns a List of events that belong to the associated season
      Specified by:
      getSchedule in interface Season
      Returns:
      - a List of events that belong to the associated season
    • getCurrentRound

      public Round getCurrentRound()
      Returns a Round instance specifying the current season round
      Specified by:
      getCurrentRound in interface Season
      Returns:
      - a Round instance specifying the current season round
    • getYear

      public String getYear()
      Returns the String representation the year of the season
      Specified by:
      getYear in interface Season
      Returns:
      - the String representation the year of the season
    • getTournamentInfo

      public TournamentInfo getTournamentInfo()
      Returns a TournamentInfo which contains data of the associated tournament
      Specified by:
      getTournamentInfo in interface Season
      Returns:
      a TournamentInfo which contains data of the associated season
    • getCompetitors

      public List<Competitor> getCompetitors()
      Returns a List of competitors that participate in the sport event associated with the current instance
      Specified by:
      getCompetitors in interface Season
      Returns:
      - a List of competitors that participate in the sport event associated with the current instance
    • getSport

      public SportSummary getSport()
      Returns a SportSummary instance representing the sport associated with the current instance
      Specified by:
      getSport in interface LongTermEvent
      Returns:
      a SportSummary instance representing the sport associated with the current instance
    • getTournamentCoverage

      public TournamentCoverage getTournamentCoverage()
      Returns a TournamentCoverage instance which describes the associated tournament coverage information
      Specified by:
      getTournamentCoverage in interface LongTermEvent
      Returns:
      a TournamentCoverage instance describing the tournament coverage information
    • getSportId

      public Urn getSportId()
      Returns the associated sport identifier (This method its overridden because the superclass SportEvent does not contain the sportId in all cases)
      Specified by:
      getSportId in interface SportEvent
      Returns:
      the unique sport identifier to which this event is associated
    • toString

      public String toString()
      Returns a String describing the current Season instance
      Overrides:
      toString in class Object
      Returns:
      - a String describing the current Season instance
    • getId

      public Urn getId()
      Returns an Urn uniquely identifying the tournament associated with the current instance
      Specified by:
      getId in interface SportEvent
      Returns:
      - an Urn uniquely identifying the tournament associated with the current instance