Created
March 4, 2014 09:25
-
-
Save zzarcon/9343092 to your computer and use it in GitHub Desktop.
Prizes API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"prizes": [ | |
{ | |
"id" : 1, | |
"competition_type" : "league", | |
"level": "gold", | |
"ingots" : 28.000.000, | |
"money" : 400, | |
"transfer" : "promotion" | |
}, | |
{ | |
"id" : 2, | |
"competition_type" : "local_cup", | |
"level": "silver", | |
"ingots" : 28.000.000, | |
"money" : null, | |
"transfer" : "relegation" | |
} | |
] |
Final structure after some discussion:
"prizes": [
{
"id" : 1,
"competition_type" : "league",
"level_id": "1A",
"metal_id": null,
"ingots" : 28.000.000,
"money" : 400,
"position": 2
},
{
"id" : 2,
"competition_type" : "local_cup",
"level_id": null,
"metal_id": "golden",
"ingots" : 28.000.000,
"money" : null,
"position": 1
}
]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
transfer
key shows if the prize relegate or promote the team