Class Bet
java.lang.Object
com.sportradar.mbs.sdk.entities.common.Bet
Represents a bet.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for creating instances of the Bet class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBetId()
Gets the ID of the bet.Gets the context of the bet.Gets the selections of the bet.Stake[]
getStake()
Gets the stake of the bet.static Bet.Builder
Creates a new instance of the Bet class.void
Sets the ID of the bet.void
setContext
(BetContext value) Sets the context of the bet.void
setSelections
(Selection[] value) Sets the selections of the bet.void
Sets the stake of the bet.
-
Constructor Details
-
Bet
public Bet()
-
-
Method Details
-
newBuilder
Creates a new instance of the Bet class.- Returns:
- A new instance of the Bet class.
-
getStake
Gets the stake of the bet.- Returns:
- The stake of the bet.
-
setStake
Sets the stake of the bet.- Parameters:
value
- The stake of the bet.
-
getSelections
Gets the selections of the bet.- Returns:
- The selections of the bet.
-
setSelections
Sets the selections of the bet.- Parameters:
value
- The selections of the bet.
-
getBetId
Gets the ID of the bet.- Returns:
- The ID of the bet.
-
setBetId
Sets the ID of the bet.- Parameters:
value
- The ID of the bet.
-
getContext
Gets the context of the bet.- Returns:
- The context of the bet.
-
setContext
Sets the context of the bet.- Parameters:
value
- The context of the bet.
-