Поради та відповіді від команди TheSports

  • 'Card upgrade confirmed' data return rules

  • Get 1 yellow card and then 1 red card:

  • How to detect the difference between these two situations?

  • >>
'Yellow card' and 'Red card' rules

'Card upgrade confirmed' data return rules

If a player gets a yellow card first and gets another yellow card later, two yellow cards will turn into one red card.

 

Data return in 'Real-time data' api:

'score' field: 1 yellow card and 1 red card

'stats' field: 1 yellow card and 1 red card

'incidents' field: return two incidents, one 'yellow card' incident and one 'two yellow cards turn into a red card' incident

 

Sample in 'incidents' field:

 

 

Get 1 yellow card and then 1 red card:

Data return in 'Real-time data' api:

'score' field: 1 yellow card and 1 red card

'stats' field: 1 yellow card and 1 red card

'incidents' field: return two incidents, one 'yellow card' incident and one 'red card' incident

 

 

How to detect the difference between these two situations?

From 'score' field and 'stats' field, there is no way to detect the difference.

From 'incidents' field, you can detect the difference by the second incident.

Чи відповів цей варіант на ваше питання?

😞 😐 😄