Class BookmakerDetailsImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.BookmakerDetailsImpl
- All Implemented Interfaces:
BookmakerDetails
Represents the current bookmaker details
-
Constructor Summary
ConstructorsConstructorDescriptionBookmakerDetailsImpl(int bookmakerId, String virtualHost, Date expireAt, com.sportradar.uf.sportsapi.datamodel.ResponseCode responseCode, String message, Duration period) Initializes a new instance ofBookmakerDetailsImplBookmakerDetailsImpl(com.sportradar.uf.sportsapi.datamodel.BookmakerDetails bookmakerDetails, Duration period) Initializes a new instance ofBookmakerDetailsImpl -
Method Summary
Modifier and TypeMethodDescriptionintReturns the bookmaker idThe expiry date of the access tokenReturns the message of the requestcom.sportradar.uf.sportsapi.datamodel.ResponseCodeReturns the response code of the server's responseReturns the difference with the server timeReturns the specific virtual host of the bookmaker
-
Constructor Details
-
BookmakerDetailsImpl
public BookmakerDetailsImpl(com.sportradar.uf.sportsapi.datamodel.BookmakerDetails bookmakerDetails, Duration period) Initializes a new instance ofBookmakerDetailsImpl- Parameters:
bookmakerDetails- - aBookmakerDetailscontaining 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 ofBookmakerDetailsImpl
-
-
Method Details
-
getMessage
Returns the message of the request- Specified by:
getMessagein interfaceBookmakerDetails- Returns:
- - the message of the request
-
getExpireAt
The expiry date of the access token- Specified by:
getExpireAtin interfaceBookmakerDetails- Returns:
- - the expiry date of the access token
-
getBookmakerId
public int getBookmakerId()Returns the bookmaker id- Specified by:
getBookmakerIdin interfaceBookmakerDetails- Returns:
- - the bookmaker id
-
getResponseCode
public com.sportradar.uf.sportsapi.datamodel.ResponseCode getResponseCode()Returns the response code of the server's response- Specified by:
getResponseCodein interfaceBookmakerDetails- Returns:
- - the response code of the server's response
- See Also:
-
HttpStatus
-
getVirtualHost
Returns the specific virtual host of the bookmaker- Specified by:
getVirtualHostin interfaceBookmakerDetails- Returns:
- - the specific virtual host of the bookmaker
-
getServerTimeDifference
Returns the difference with the server time- Specified by:
getServerTimeDifferencein interfaceBookmakerDetails- Returns:
- - the difference with the server time
-