sagas/init

sagas/init

Methods

(async, generator, static) init() → {put|call|put|put|put}

Source:

Initialize data in app

Yields:
  • SET_LOADER
    Type
    put
  • /game/init
    Type
    call
  • GET_INIT_SUCCESS
    Type
    put
  • CHECK_SESSION
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put

(async, static) module.exports() → {void}

Source:
Returns:
Type
void

(async, generator, static) roundSelections(action) → {call|select|put|put}

Source:
Properties:
Name Type Description
action object
Properties
Name Type Description
payload object
Properties
Name Type Description
roundId number

Can be current round for placeing bets and current Live round

Used for setting placed selections for passed roundId

Parameters:
Name Type Description
action object
Yields:
  • /bet/roundselections/{roundId}
    Type
    call
  • getMarkets
    Type
    select
  • GET_ROUND_SELECTIONS_SUCCESS
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put

(async, generator, static) selectLeague(action)

Source:
Properties:
Name Type Description
action object
Properties
Name Type Description
payload object

Used for changing league and changing game type

Parameters:
Name Type Description
action object

(async, generator, static) turboRoundSelections(action) → {call|select|put|put}

Source:
Properties:
Name Type Description
action object
Properties
Name Type Description
payload object
Properties
Name Type Description
roundId number

Can be current round for placeing bets and current Live round

Used for setting placed selections for passed roundId

Parameters:
Name Type Description
action object
Yields:
  • /bet/roundselections/{roundId}
    Type
    call
  • getMarkets
    Type
    select
  • GET_ROUND_SELECTIONS_SUCCESS
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put

Type Definitions

"init/response.data"

Source:
Properties:
Name Type Description
noBettingTime number

Duration of No Betting time in seconds

noBettingTimeCountdown number

Duration of No Betting time showing modal in seconds

liveMatchDuration number

Duration of live match in seconds

markets Array.<Market>

Define all markets/selections with name and informations

betslipSettings BetslipSettings

Configuration of betslip

bonusLeveling object

Indicates whether the Courage component is present.

cnt string

Config of bonus informations.

destinations object

paths of images and links.

leagues Array.<League>

Leagues definition.

configs object

Contain currency symbol.

numbets number

Number of showing bets in Bet History.

Type:
  • object

"roundSelections/response.data"

Source:
Properties:
Name Type Description
selections Array

Defned by league:match:selection:odd (example:["2:3:101:1.37", "2:4:101:1.65"])

numbets number

Number of placed bets

Type:
  • object

BetslipSettings

Source:
Properties:
Name Type Description
accountOptions Array.<number>

Contain showen stake buttons

maxLineBetslip number

Maximim number of selections

maxStake number

Maximum stake for placebet

maxSystemCombinations number

Maximum number of system combinations

minStake number

Minimum stake for placebet

minStakePerSelection number

Minimum stake for placebet for combination and split bet type

Type:
  • object

League

Source:
Properties:
Name Type Description
enabled number

Is league in use (0-not in use, 1-in use)

flag string

Name of flag for league icon

id number

League id

logo string | null

Not in use

name string

League name

Type:
  • object

Market

Source:
Properties:
Name Type Attributes Description
info string

Information about market

name string

Market name

submarkets Array.<Subselection> <optional>

Present if market have subselection

selections Array.<Selection> <optional>

Present if market dont have subselection

Type:
  • object

Selection

Source:
Properties:
Name Type Description
name string

Name of selection

fullName string

Name showen in betslip and tickets details selection

winningScores string

Parsed scores. Contain only scores when selection is winning.

alwaysWin boolean

Indicate if selection is once win is it surely winning.

alwaysLose boolean

Indicate if selection is once lost is it surely losing.

Type:
  • object

Subselection

Source:
Properties:
Name Type Description
name string

Name of subselection

selections Array.<Selection>

Present if market dont have subselection

Type:
  • object