java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.DrawImpl
All Implemented Interfaces:
Draw, SportEvent

public class DrawImpl extends Object implements Draw
The basic implementation of a lottery
  • Constructor Details

  • Method Details

    • getStatus

      public DrawStatus getStatus()
      Returns the status of the draw
      Specified by:
      getStatus in interface Draw
      Returns:
      the status of the draw
    • getResults

      public List<DrawResult> getResults()
      Returns a list of draw results
      Specified by:
      getResults in interface Draw
      Returns:
      a list of draw results
    • getLottery

      public Lottery getLottery()
      Returns the associated lottery
      Specified by:
      getLottery in interface Draw
      Returns:
      the associated lottery
    • 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
    • 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
    • getDisplayId

      public Integer getDisplayId()
      Returns the display id
      Specified by:
      getDisplayId in interface Draw
      Returns:
      the display id
    • 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