public interface BetBuilder
Bet
instancesModifier and Type | Method and Description |
---|---|
BetBuilder |
addSelectedSystem(int systemId)
Add a system to selected system array
|
BetBuilder |
addSelection(Selection selection)
Adds the selection
|
Bet |
build()
Creates new
Bet instance |
static BetBuilder |
create()
Deprecated.
Method create() is obsolete. Please use the appropriate method on BuilderFactory interface which can be obtained through MtsSdk instance
|
List<Integer> |
getSelectedSystems()
Gets the array of selected systems
|
List<Selection> |
getSelections()
Gets the bet selections
|
BetBuilder |
setBetBonus(long value)
Sets the BetBonus
|
BetBuilder |
setBetBonus(long value,
BetBonusMode betBonusMode,
BetBonusType betBonusType,
BetBonusDescription betBonusDescription,
BetBonusPaidAs betBonusPaidAs)
Sets the BetBonus
|
BetBuilder |
setBetFreeStake(long value,
BetFreeStakeType betFreeStakeType,
BetFreeStakeDescription betFreeStakeDescription,
BetFreeStakePaidAs betFreeStakePaidAs)
Sets the BetFreeStake
|
BetBuilder |
setBetId(String id)
Sets the bet id
|
BetBuilder |
setCalculationOdds(Integer calculationOdds)
Sets the odds calculated for custom bet multiplied by 10_000 and rounded to int value
|
BetBuilder |
setCustomBet(Boolean customBet)
Sets the flag if bet is a custom bet (optional, default false)
|
BetBuilder |
setEntireStake(long value,
StakeType stakeType)
Sets the entire stake
|
BetBuilder |
setReofferId(String reofferId)
Sets the reoffer reference bet id
|
BetBuilder |
setStake(long value,
StakeType stakeType)
Sets the Stake
|
BetBuilder |
setSumOfWins(Long sum)
Sets the sum of all wins for all generated combinations for this bet (in ticket currency, used for validation)
|
@Deprecated static BetBuilder create()
BetBuilder setBetBonus(long value)
value
- The quantity multiplied by 10000 and rounded to a long valueBetBuilder setBetBonus(long value, BetBonusMode betBonusMode, BetBonusType betBonusType, BetBonusDescription betBonusDescription, BetBonusPaidAs betBonusPaidAs)
value
- The quantity multiplied by 10000 and rounded to a long valuebetBonusMode
- bet bonus modebetBonusType
- bet bonus typebetBonusDescription
- bet bonus descriptionbetBonusPaidAs
- bet bonus payment typeBetBuilder setBetFreeStake(long value, BetFreeStakeType betFreeStakeType, BetFreeStakeDescription betFreeStakeDescription, BetFreeStakePaidAs betFreeStakePaidAs)
value
- The quantity multiplied by 10000 and rounded to a long valuebetFreeStakeType
- bet free stake typebetFreeStakeDescription
- bet free stake descriptionbetFreeStakePaidAs
- bet free stake payment typeBetBuilder setStake(long value, StakeType stakeType)
value
- The quantity multiplied by 10000 and rounded to a long valuestakeType
- type of stakeBetBuilder setEntireStake(long value, StakeType stakeType)
value
- The quantity multiplied by 10000 and rounded to a long valuestakeType
- type of stakeBetBuilder setBetId(String id)
id
- bet idBetBuilder addSelectedSystem(int systemId)
systemId
- system id to addList<Integer> getSelectedSystems()
BetBuilder setReofferId(String reofferId)
reofferId
- reoffer idBetBuilder setSumOfWins(Long sum)
sum
- sumBetBuilder addSelection(Selection selection)
selection
- selection to be added to this betBetBuilder setCustomBet(Boolean customBet)
customBet
- flag if bet is a custom betBetBuilder setCalculationOdds(Integer calculationOdds)
calculationOdds
- odds calculated for custom betCopyright © 2017–2023. All rights reserved.