Class TicketResponse.Builder
java.lang.Object
com.sportradar.mbs.sdk.entities.response.TicketResponse.Builder
- Enclosing class:
TicketResponse
Represents a builder for the TicketResponse class.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the TicketResponse instance.setBetDetails
(BetDetail... value) Sets the bet details of the ticket response.setCode
(int value) Sets the code of the ticket response.setExchangeRate
(ExchangeRate... value) Sets the exchange rates of the ticket response.setMessage
(String value) Sets the message of the ticket response.setSignature
(String value) Sets the signature of the ticket response.setStatus
(AcceptanceStatus value) Sets the acceptance status of the ticket response.setTicketId
(String value) Sets the ticket ID of the ticket response.
-
Method Details
-
build
Builds the TicketResponse instance.- Returns:
- The built TicketResponse instance.
-
setCode
Sets the code of the ticket response.- Parameters:
value
- The code of the ticket response.- Returns:
- The TicketResponse.Builder instance.
-
setExchangeRate
Sets the exchange rates of the ticket response.- Parameters:
value
- The exchange rates of the ticket response.- Returns:
- The TicketResponse.Builder instance.
-
setSignature
Sets the signature of the ticket response.- Parameters:
value
- The signature of the ticket response.- Returns:
- The TicketResponse.Builder instance.
-
setBetDetails
Sets the bet details of the ticket response.- Parameters:
value
- The bet details of the ticket response.- Returns:
- The TicketResponse.Builder instance.
-
setMessage
Sets the message of the ticket response.- Parameters:
value
- The message of the ticket response.- Returns:
- The TicketResponse.Builder instance.
-
setTicketId
Sets the ticket ID of the ticket response.- Parameters:
value
- The ticket ID of the ticket response.- Returns:
- The TicketResponse.Builder instance.
-
setStatus
Sets the acceptance status of the ticket response.- Parameters:
value
- The acceptance status of the ticket response.- Returns:
- The TicketResponse.Builder instance.
-