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

public class LotteryImpl extends Object implements Lottery
The basic implementation of a lottery
  • Constructor Details

  • Method Details

    • getCategory

      public CategorySummary getCategory()
      Returns a CategorySummary representing the category associated with the current instance
      Specified by:
      getCategory in interface Lottery
      Returns:
      a CategorySummary representing the category associated with the current instance
    • getBonusInfo

      public BonusInfo getBonusInfo()
      Returns the associated bonus info
      Specified by:
      getBonusInfo in interface Lottery
      Returns:
      the associated bonus info
    • getDrawInfo

      public DrawInfo getDrawInfo()
      Returns the associated draw info
      Specified by:
      getDrawInfo in interface Lottery
      Returns:
      the associated draw info
    • getScheduledDraws

      public List<Draw> getScheduledDraws()
      Returns the lottery draws
      Specified by:
      getScheduledDraws in interface Lottery
      Returns:
      the lottery draw
    • 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 (no coverage info available for lotteries)
      Specified by:
      getTournamentCoverage in interface LongTermEvent
      Returns:
      a TournamentCoverage instance describing the tournament coverage information
    • 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
    • getSportId

      public Urn getSportId()
      Returns the unique sport identifier to which this event is associated
      Specified by:
      getSportId in interface SportEvent
      Returns:
      - the unique sport identifier to which this event is associated
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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