public interface TicketCashoutBuilder
TicketCashout
Modifier and Type | Method and Description |
---|---|
TicketCashoutBuilder |
addBetCashout(String betId,
long cashoutStake,
Integer cashoutPercent)
Add the bet cashout
|
TicketCashout |
build()
Creates a new
TicketCashout instance using the preset builder parameters |
static TicketCashoutBuilder |
create()
Deprecated.
Method create() is obsolete. Please use the appropriate method on BuilderFactory interface which can be obtained through MtsSdk instance
|
TicketCashoutBuilder |
setBookmakerId(int bookmakerId)
Sets the bookmaker id
|
TicketCashoutBuilder |
setCashoutPercent(int cashoutPercent)
Sets the cashout percent (quantity multiplied by 10_000 and rounded to a int value)
|
TicketCashoutBuilder |
setCashoutStake(long cashoutStake)
Sets the cashout stake (quantity multiplied by 10_000 and rounded to a long value)
|
TicketCashoutBuilder |
setTicketId(String ticketId)
Sets the ticket id
|
@Deprecated static TicketCashoutBuilder create()
TicketCashoutBuilder setTicketId(String ticketId)
ticketId
- - the ticket idTicketCashoutBuilder setBookmakerId(int bookmakerId)
bookmakerId
- - the bookmaker idTicketCashoutBuilder setCashoutStake(long cashoutStake)
cashoutStake
- - the cashout stake value of the assigned ticketTicketCashoutBuilder setCashoutPercent(int cashoutPercent)
cashoutPercent
- - the cashout percent value of the assigned ticketTicketCashoutBuilder addBetCashout(String betId, long cashoutStake, Integer cashoutPercent)
betId
- - the bet idcashoutStake
- - the cashout stake value of the assigned bet (quantity multiplied by 10_000 and rounded to a long value)cashoutPercent
- - the cashout percent value of the assigned bet (quantity multiplied by 10_000 and rounded to a int value)TicketCashout build()
TicketCashout
instance using the preset builder parametersTicketCashout
instanceCopyright © 2017–2023. All rights reserved.