sagas/tickets

sagas/tickets

Methods

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

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

Number of bets to get

lastTimestamp string
lastRunning number

Bet History

Parameters:
Name Type Description
action object
Yields:
  • getNoMoreBets
    Type
    select
  • getLastTimestamp
    Type
    select
  • getLastRunning
    Type
    select
  • getTicketDates
    Type
    select
  • getNumbets
    Type
    select
  • SET_BETS_LOADER
    Type
    put
  • /bet/list?numbets=&lastTimestamp=&lastRunning=
    Type
    call
  • GET_TICKETS_NO_MORE_BETS
    Type
    put
  • getTickets
    Type
    select
  • getMarkets
    Type
    select
  • getSelectedTicket
    Type
    select
  • GET_TICKETS_SUCCESS
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put

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

Source:
Returns:
Type
void

Type Definitions

"getTicketsSaga/response.data"

Source:
Properties:
Name Type Description
bets Array.<BetDetail>
lastTimestamp string
lastRunning number
Type:
  • object

BetDetail

Source:
Properties:
Name Type Description
id number

Bet ID

round number

Round Id

placed Time

Time of placed bet

status number

Have 3 case (-1 Lose , 0 Pending , 1 Winning)

stake number

Total stake

potwin number

Potential Win

win number

Winning

betdata string

Parsed data, same parser for placeing bet

betdetails string

Parsed data (match:odd:result:status$..|minOdd-maxOdd|combinationType:win&..)

bonus number

Represent boolean (1 have bonus, 0 dont have bonus)

paidStatus number
Type:
  • object