Class EventClockImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.EventClockImpl
- All Implemented Interfaces:
EventClock
Represents an event clock
-
Constructor Summary
ConstructorsConstructorDescriptionEventClockImpl(String eventTime, String stoppageTime, String stoppageTimeAnnounced, String remainingTime, String remainingTimeInPeriod, Boolean stopped) Initializes a new instance ofEventClockImpl -
Method Summary
Modifier and TypeMethodDescriptionReturns the current event timeReturns the remaining event timeReturns the remaining period timeReturns te event stoppage timeReturns the time in which the event stoppage time was announcedReturns an indication if the event clock is currently stoppedtoString()Returns aStringdescribing the currentEventClockinstance
-
Constructor Details
-
EventClockImpl
public EventClockImpl(String eventTime, String stoppageTime, String stoppageTimeAnnounced, String remainingTime, String remainingTimeInPeriod, Boolean stopped) Initializes a new instance ofEventClockImpl- Parameters:
eventTime- - aStringdescription of the current event timestoppageTime- - aStringdescription of the stoppage timestoppageTimeAnnounced- - aStringdescription of when the stoppage time was announcedremainingTime- - aStringdescription of the remaining timeremainingTimeInPeriod- - aStringdescription of the remaining period timestopped- - an indication if the event clock is currently stopped
-
-
Method Details
-
getEventTime
Returns the current event time- Specified by:
getEventTimein interfaceEventClock- Returns:
- - the current event time
-
getStoppageTime
Returns te event stoppage time- Specified by:
getStoppageTimein interfaceEventClock- Returns:
- - te event stoppage time
-
getStoppageTimeAnnounced
Returns the time in which the event stoppage time was announced- Specified by:
getStoppageTimeAnnouncedin interfaceEventClock- Returns:
- - the time in which the event stoppage time was announced
-
getRemainingTime
Returns the remaining event time- Specified by:
getRemainingTimein interfaceEventClock- Returns:
- - the remaining event time if available; otherwise null
-
getRemainingTimeInPeriod
Returns the remaining period time- Specified by:
getRemainingTimeInPeriodin interfaceEventClock- Returns:
- - the remaining period time if available; otherwise null
-
getStopped
Returns an indication if the event clock is currently stopped- Specified by:
getStoppedin interfaceEventClock- Returns:
- - an indication if the event clock is currently stopped if available; otherwise null
-
toString
Returns aStringdescribing the currentEventClockinstance- Overrides:
toStringin classObject- Returns:
- - a
Stringdescribing the currentEventClockinstance
-