Please enable JavaScript.
Coggle requires JavaScript to display documents.
Building System Bet after placement (Is bet combo bet? (:red_cross: No -…
Building System Bet after placement
Is bet combo bet?
:red_cross:
No
- Is bet multi line?
:red_cross:
No
- return empty string. :end:
:check:
Yes
- return
bet.getEventTypeName
(look at predonditions) :end:
:check:
Yes
Does bet have each way bet reference?
:red_cross:
No
- comboBetName =
bet.getTicketHeader
(look at preconditions)
:check:
Yes
- comboBetName =
bet.EWRef.getTicketHeader
(look at preconditions)
Is bet system or virtual system?
:check:
Yes
- return multi line bet name
formatted like so "System - {comboBetName}" :end::
:red_cross:
No
- Is bet of type Your Bet?
(
bet.BetTypeId
==
BetTypes.YourBet
)
:check:
Yes
- return multi line bet name "Your Bet" :end:
:red_cross:
No
- return compiled comboBetName :end:
Preconditions
bet.getTicketHeader
depending on
bet.BetTypeId
bet name can be
Combo
VirtualCombo
Taken from CMS dictionaries via key
"ComboNames_{0}" where {0} is 2(2-folds) to 20(20-folds)
Teaser
VirtualTeaser
Teaser
System
VirtualSystem
SPOpenBets.getSystemName
Does this bet have
bet name? (
bet.BetName
) ?
:check:
Yes
- return
bet.BetName
:red_cross:
No
- Is it WinMasters
history bet?
:check:
Yes
- return "System"
:red_cross:
No
- Start building bet name our own.
Get selection group keys from each
selection.ComboGroupKey
If
bet.ComboSize
< number of selection group keys -> betName = "{
bet.ComboSize
}/{number of selection group keys}"
Else obtain betName from CMS. "SystemNames_{
number of selection group keys
}_{
bet.ComboSize
}"
None of the mentioned
Does this bet have
bet.BetName
?
:check:
Yes
- betName =
bet.betName
Is this bet each way?
:check:
Yes
- add each way tag
from CMS dictionary to betName
return so far compiled betName :end:
bet.getEventTypeName
Is this bet multi line?
:check:
Yes
- depending on
bet.BetSubType
we use different key to lookup in CMS dictionary
Straight
key = "Straight"
Is bet of type "FirstFour"?
:check:
Yes
- add "FirstFour" to key
:red_cross:
No
- Is bet of type forecast?
:check:
Yes
- add "Forecast" to key
1 more item...
:red_cross:
No
- add "Tricast" to key
1 more item...
Reverse
key = "Reverse"
Combination
key = "Combination"
:red_cross:
No
- return first selection event type name :end: