java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.EventClockImpl
All Implemented Interfaces:
EventClock

public class EventClockImpl extends Object implements EventClock
Represents an event clock
  • Constructor Details

    • EventClockImpl

      public EventClockImpl(String eventTime, String stoppageTime, String stoppageTimeAnnounced, String remainingTime, String remainingTimeInPeriod, Boolean stopped)
      Initializes a new instance of EventClockImpl
      Parameters:
      eventTime - - a String description of the current event time
      stoppageTime - - a String description of the stoppage time
      stoppageTimeAnnounced - - a String description of when the stoppage time was announced
      remainingTime - - a String description of the remaining time
      remainingTimeInPeriod - - a String description of the remaining period time
      stopped - - an indication if the event clock is currently stopped
  • Method Details

    • getEventTime

      public String getEventTime()
      Returns the current event time
      Specified by:
      getEventTime in interface EventClock
      Returns:
      - the current event time
    • getStoppageTime

      public String getStoppageTime()
      Returns te event stoppage time
      Specified by:
      getStoppageTime in interface EventClock
      Returns:
      - te event stoppage time
    • getStoppageTimeAnnounced

      public String getStoppageTimeAnnounced()
      Returns the time in which the event stoppage time was announced
      Specified by:
      getStoppageTimeAnnounced in interface EventClock
      Returns:
      - the time in which the event stoppage time was announced
    • getRemainingTime

      public String getRemainingTime()
      Returns the remaining event time
      Specified by:
      getRemainingTime in interface EventClock
      Returns:
      - the remaining event time if available; otherwise null
    • getRemainingTimeInPeriod

      public String getRemainingTimeInPeriod()
      Returns the remaining period time
      Specified by:
      getRemainingTimeInPeriod in interface EventClock
      Returns:
      - the remaining period time if available; otherwise null
    • getStopped

      public Boolean getStopped()
      Returns an indication if the event clock is currently stopped
      Specified by:
      getStopped in interface EventClock
      Returns:
      - an indication if the event clock is currently stopped if available; otherwise null
    • toString

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