'Card upgrade confirmed' data return rules
Get 1 yellow card and then 1 red card:
How to detect the difference between these two situations?
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:
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
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.
Чи відповів цей варіант на ваше питання?
😞 😐 😄