Class MbsSdk

java.lang.Object
com.sportradar.mbs.sdk.MbsSdk
All Implemented Interfaces:
AutoCloseable

public class MbsSdk extends Object implements 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 Details

    • MbsSdk

      public MbsSdk(MbsSdkConfig config)
      Constructs a new instance of the MbsSdk class with the specified configuration.
      Parameters:
      config - The configuration for the MBS SDK.
  • Method Details

    • getTicketProtocol

      public TicketProtocol 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 interface AutoCloseable