Class BookmakerDetailsImpl

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.BookmakerDetailsImpl
All Implemented Interfaces:
BookmakerDetails

public class BookmakerDetailsImpl extends Object implements BookmakerDetails
Represents the current bookmaker details
  • Constructor Details

    • BookmakerDetailsImpl

      public BookmakerDetailsImpl(com.sportradar.uf.sportsapi.datamodel.BookmakerDetails bookmakerDetails, Duration period)
      Initializes a new instance of BookmakerDetailsImpl
      Parameters:
      bookmakerDetails - - a BookmakerDetails containing the API response data
    • BookmakerDetailsImpl

      public BookmakerDetailsImpl(int bookmakerId, String virtualHost, Date expireAt, com.sportradar.uf.sportsapi.datamodel.ResponseCode responseCode, String message, Duration period)
      Initializes a new instance of BookmakerDetailsImpl
  • Method Details

    • getMessage

      public String getMessage()
      Returns the message of the request
      Specified by:
      getMessage in interface BookmakerDetails
      Returns:
      - the message of the request
    • getExpireAt

      public Date getExpireAt()
      The expiry date of the access token
      Specified by:
      getExpireAt in interface BookmakerDetails
      Returns:
      - the expiry date of the access token
    • getBookmakerId

      public int getBookmakerId()
      Returns the bookmaker id
      Specified by:
      getBookmakerId in interface BookmakerDetails
      Returns:
      - the bookmaker id
    • getResponseCode

      public com.sportradar.uf.sportsapi.datamodel.ResponseCode getResponseCode()
      Returns the response code of the server's response
      Specified by:
      getResponseCode in interface BookmakerDetails
      Returns:
      - the response code of the server's response
      See Also:
      • HttpStatus
    • getVirtualHost

      public String getVirtualHost()
      Returns the specific virtual host of the bookmaker
      Specified by:
      getVirtualHost in interface BookmakerDetails
      Returns:
      - the specific virtual host of the bookmaker
    • getServerTimeDifference

      public Duration getServerTimeDifference()
      Returns the difference with the server time
      Specified by:
      getServerTimeDifference in interface BookmakerDetails
      Returns:
      - the difference with the server time