public interface SelectionBuilder
Selection
Modifier and Type | Method and Description |
---|---|
Selection |
build()
Builds new
Selection instance |
static SelectionBuilder |
create()
Deprecated.
Method create() is obsolete. Please use the appropriate method on BuilderFactory interface which can be obtained through MtsSdk instance
|
SelectionBuilder |
set(String eventId,
String id,
Integer odds,
Integer boostedOdds,
boolean isBanker)
Sets the
Selection properties |
SelectionBuilder |
setBanker(boolean isBanker)
Sets the banker property
|
SelectionBuilder |
setBoostedOdds(int boostedOdds)
Sets the boosted odds multiplied by 10000 and rounded to int value
|
SelectionBuilder |
setEventId(String eventId)
Sets the Betradar event (match or outright) id
|
SelectionBuilder |
setId(String id)
Sets the selection id
|
SelectionBuilder |
setIdLcoo(int type,
int sportId,
String sov,
String selectionId)
Sets the selection id for LCOO
|
SelectionBuilder |
setIdLo(int type,
int subType,
String sov,
String selectionId)
Sets the selection id for LiveOdds
|
SelectionBuilder |
setIdUof(int product,
String sportId,
int marketId,
String selectionId,
Map<String,String> specifiers,
Map<String,Object> sportEventStatus)
Sets the selection id for UOF
Note: method requires accessToken in configuration and access to https://global.api.betradar.com
|
SelectionBuilder |
setIdUof(int product,
String sportId,
int marketId,
String selectionId,
String specifiers,
Map<String,Object> sportEventStatus)
Sets the selection id for UOF
Note: method requires accessToken in configuration and access to https://global.api.betradar.com
|
SelectionBuilder |
setOdds(int odds)
Sets the odds multiplied by 10000 and rounded to int value
|
@Deprecated static SelectionBuilder create()
SelectionBuilder setEventId(String eventId)
eventId
- event idSelectionBuilder setId(String id)
id
- selection id should be composed according to MTS specificationSelectionBuilder setIdLo(int type, int subType, String sov, String selectionId)
type
- typesubType
- subTypesov
- special odds valueselectionId
- selection idSelectionBuilder setIdLcoo(int type, int sportId, String sov, String selectionId)
type
- typesportId
- sport idsov
- special odds valueselectionId
- selection idSelectionBuilder setIdUof(int product, String sportId, int marketId, String selectionId, String specifiers, Map<String,Object> sportEventStatus)
product
- productsportId
- sport idmarketId
- market idselectionId
- selection idspecifiers
- the array of specifiers represented as string separated with '|' (example: "total=3.0|playerid=sr:player:10201")sportEventStatus
- sport event statusesSelectionBuilder setIdUof(int product, String sportId, int marketId, String selectionId, Map<String,String> specifiers, Map<String,Object> sportEventStatus)
product
- productsportId
- sport idmarketId
- market idselectionId
- selection idspecifiers
- specifierssportEventStatus
- sport event statusesSelectionBuilder setOdds(int odds)
odds
- oddsSelectionBuilder setBoostedOdds(int boostedOdds)
boostedOdds
- boosted oddsSelectionBuilder setBanker(boolean isBanker)
isBanker
- bankerSelectionBuilder set(String eventId, String id, Integer odds, Integer boostedOdds, boolean isBanker)
Selection
propertieseventId
- event idid
- selection id should be composed according to MTS specificationodds
- odds valueboostedOdds
- boosted odds valueisBanker
- is banker valueCopyright © 2017–2023. All rights reserved.