Package com.sportradar.unifiedodds.sdk
Class UofSdkForReplay
java.lang.Object
com.sportradar.unifiedodds.sdk.UofSdk
com.sportradar.unifiedodds.sdk.UofSdkForReplay
- All Implemented Interfaces:
AutoCloseable
An extension of the UofSdk that has the ability to perform replay server actions.
getReplayManager() will return a
replay manager that can be used to add SportEvents and create test-scenarios to replay.-
Field Summary
Fields inherited from class com.sportradar.unifiedodds.sdk.UofSdk
injector, oddsFeedConfiguration, uofConfiguration -
Constructor Summary
ConstructorsConstructorDescriptionUofSdkForReplay(UofGlobalEventsListener listener, UofConfiguration config) Initializes a newUofSdkForReplayinstance.UofSdkForReplay(UofGlobalEventsListener listener, UofConfiguration config, CustomisableSdkModule customisableSdkModule) Initializes a newUofSdkForReplayinstance. -
Method Summary
Modifier and TypeMethodDescriptionIf in theUofConfigurationImplwas configured to use the replay server a validReplayManagerwill be returned.Methods inherited from class com.sportradar.unifiedodds.sdk.UofSdk
close, createSdkInjector, getAvailableLanguages, getBookingManager, getBookmakerDetails, getCashOutProbabilitiesManager, getCustomBetManager, getEventChangeManager, getEventRecoveryRequestIssuer, getMarketDescriptionManager, getProducerManager, getSessionBuilder, getSportDataProvider, getUofConfigurationBuilder, getUofConfigurationBuilder, initOddsFeedInstance, isOpen, open
-
Constructor Details
-
UofSdkForReplay
Initializes a newUofSdkForReplayinstance. This object is used to perform replay operations that are useful to create various testing scenarios.- Parameters:
listener-UofGlobalEventsListenerthat handles global feed eventsconfig-UofConfigurationImpl, the configuration class used to configure the new feed
-
UofSdkForReplay
public UofSdkForReplay(UofGlobalEventsListener listener, UofConfiguration config, CustomisableSdkModule customisableSdkModule) Initializes a newUofSdkForReplayinstance. This object is used to perform replay operations that are useful to create various testing scenarios.- Parameters:
listener-UofGlobalEventsListenerthat handles global feed eventsconfig-UofConfigurationImpl, the configuration class used to configure the new feedcustomisableSdkModule- the customised injection module
-
-
Method Details
-
getReplayManager
If in theUofConfigurationImplwas configured to use the replay server a validReplayManagerwill be returned. Otherwise null will be returned.- Overrides:
getReplayManagerin classUofSdk- Returns:
- the replay manager for the current feed that can be used to add SportEvents and test-scenarios to replay.
-