sagas/live

sagas/live

Methods

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

Source:
Properties:
Name Type Description
action object
Properties
Name Type Description
payload object
Properties
Name Type Attributes Description
endMinute number
startMinutes number
skipBlink number <optional>

Called after setup live to indicate skip blink animation

league object
leagues Array

Manage sores, track timeline and handle blink goal animations

Parameters:
Name Type Description
action object
Returns:
Type
void
Yields:
  • getCurrentPage
    Type
    select
  • getPreviousSecond
    Type
    select
  • getPlacedSelections
    Type
    select
  • getBlink
    Type
    select
  • getScores
    Type
    select
  • getLiveDecrement
    Type
    select
  • getLiveCountdown
    Type
    select
  • getTimeline
    Type
    select
  • SET_LIVE_DATA
    Type
    put
  • REMOVE_BLINK
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put

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

Source:
Returns:
Type
void
Source:
Properties:
Name Type Description
action object
Properties
Name Type Description
payload object
Properties
Name Type Description
blinksForRemove Array

Remove all blinks animations from array in 2 seconds

Parameters:
Name Type Description
action object
Returns:
Type
void
Yields:
  • delay 2000
    Type
    call
  • getBlink
    Type
    select
  • SET_BLINK
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put

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

Source:
Properties:
Name Type Description
action object
Properties
Name Type Description
payload object
Properties
Name Type Description
liveMatchDuration number
liveStart number
leagues Array
league object

Calculate coundown and start interval, setup beggining sores and call fun to setup placed selections. Also handle showing Live finished modal

Parameters:
Name Type Description
action object
Returns:
Type
void
Yields:
  • getMatches
    Type
    select
  • getPlacedSelections
    Type
    select
  • GO_TO_MY_LIVE
    Type
    put
  • SET_LIVE_DATA
    Type
    put
  • GET_SCORES
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put

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

Source:
Properties:
Name Type Description
action object
Properties
Name Type Description
payload object
Properties
Name Type Description
liveMatchDuration number
liveStart number
leagues Array
league object

Calculate coundown and start interval, setup beggining sores and call fun to setup placed selections. Also handle showing Live finished modal

Parameters:
Name Type Description
action object
Returns:
Type
void
Yields:
  • getMatches
    Type
    select
  • getPlacedSelections
    Type
    select
  • GO_TO_MY_LIVE
    Type
    put
  • SET_LIVE_DATA
    Type
    put
  • GET_SCORES
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put