sagas/round

sagas/round

Methods

(async, generator, static) checkIfWakeUpNeeded() → {void}

Source:

Check if app needs to be awoken

Returns:
Type
void

(async, generator, static) fetchStatistics(action) → {void}

Source:

Fetch league statistics

Parameters:
Name Type Description
action object
Returns:
Type
void

(async, generator, static) forceUpdateBalance(action) → {void}

Source:

Call balance update after action.payload seconds

Parameters:
Name Type Description
action object
Returns:
Type
void

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

Source:
Properties:
Name Type Description
action object
Properties
Name Type Description
payload object
Properties
Name Type Description
haveLiveMatches boolean
isNoBetTime boolean
liveId number
roundId number

Get placed bets for MY_LIVE page

Parameters:
Name Type Description
action object
Returns:
Type
void
Yields:
  • getUser
    Type
    select
  • GET_ROUND_SELECTIONS
    Type
    put

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

Source:
Properties:
Name Type Description
action object

Call in the time of No Betting Time to get data for next round and to get timeline for Live

Parameters:
Name Type Description
action object
Yields:
  • getInitialBetsLoaded
    Type
    select
  • SET_ROUND_LOADER
    Type
    put
  • /game/round
    Type
    call
  • REPEAT_CALL
    Type
    put
  • getNoBettingTimeCountdown
    Type
    select
  • getLiveMatchDuration
    Type
    select
  • REPEAT_CALL
    Type
    put
  • GET_PLACED_BETS
    Type
    put
  • getCurrentPage
    Type
    select
  • GET_ROUND_SUCCESS
    Type
    put
  • FETCH_ROUND
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put

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

Source:
Returns:
Type
void

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

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

Repeat Round API every time when receive RESULTS_NOT_READY code or old data. Repeat this 5 time maximum.

Parameters:
Name Type Description
action object
Returns:
Type
void
Yields:
  • getRepeatRoundCall
    Type
    select
  • REPEAT_CALL_SUCCESS
    Type
    put
  • delay 1000
    Type
    call
  • GET_ROUND
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put

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

Source:
Properties:
Name Type Description
action object
Properties
Name Type Description
payload object
Properties
Name Type Description
isNoBetTime boolean
leftTime number

Call when Live start, setup new data from round call

Parameters:
Name Type Description
action object
Returns:
Type
void
Yields:
  • delay leftTime
    Type
    call
  • getNextRound
    Type
    select
  • getCurrentPage
    Type
    select
  • getNumberOfBets
    Type
    select
  • FETCH_ROUND_SUCCESS
    Type
    put
  • SET_NUM_OF_BETS
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put

(async, generator, static) tryUpdateStatistics() → {void}

Source:

Fetch league statistics

Returns:
Type
void

Type Definitions

"getRound/response.data"

Source:
Properties:
Name Type Description
round Round

Round for betting

roundResults Live

Round in play (LIVE)

Type:
  • object

Live

Source:
Properties:
Name Type Description
roundId number

Live round ID

competitions Array

Sorted IDs of leagues

seasons Array

Sorted IDs of Seasons

weeks Array

Sorted IDs of weeks

liveStartDate Time

Live round start time

liveEndDate Time

Live round end time

matches Array

Names of competitors in matches per leagues

timeline Array

Parsed timeline per league. (minute:competitorIndex which get +1 score separated with "-")

Type:
  • object

Round

Source:
Properties:
Name Type Description
roundId number

Round ID

competitions Array

Sorted IDs of leagues

seasons Array

Sorted IDs of Seasons

weeks Array

Sorted IDs of weeks

startDate Time

Round start time

endDate Time

Round end time

matches Array

Names of competitors in matches per leagues

selections string

IDs of all selections included in round separated with "-"

odds Array

Odds per league (Matches separated with "|" and selections with "-")

noBetDate Time

Not in use

stake object

Not in use

bonusOddsThreshold number

Config parameter for SystemMenager library

bonusPercentages string

Config parameter for SystemMenager library

winCap number

Maximum winning payout

Type:
  • object