Package com.sportradar.mbs.sdk
Class MbsSdk
java.lang.Object
com.sportradar.mbs.sdk.MbsSdk
- All Implemented Interfaces:
AutoCloseable
The MbsSdk class represents the main entry point for interacting with the MBS SDK.
It provides methods for connecting to the MBS server, retrieving the ticket protocol, and closing the SDK.
-
Constructor Summary
ConstructorDescriptionMbsSdk
(MbsSdkConfig config) Constructs a new instance of the MbsSdk class with the specified configuration. -
Method Summary
-
Constructor Details
-
MbsSdk
Constructs a new instance of the MbsSdk class with the specified configuration.- Parameters:
config
- The configuration for the MBS SDK.
-
-
Method Details
-
getTicketProtocol
Gets the ticket protocol for interacting with the MBS server.- Returns:
- The ticket protocol.
-
connect
public void connect()Connects the SDK to the MBS server. If the SDK is already connected, this method does nothing.- Throws:
SdkException
- If an error occurs during the connection process.
-
close
public void close()Closes the SDK and releases any resources associated with it. If the SDK is already closed, this method does nothing.- Specified by:
close
in interfaceAutoCloseable
-