FavoriteCard#getLevel()
Closed this issue · 3 comments
fernandopal commented
getLevel() is not avalible for the FavoriteCard model.
http://prntscr.com/k9v97x
mlieshoff commented
will be fixed soon.
mlieshoff commented
Hey @fernandopal, i checked responded json from the underlying api, it is like that:
"favoriteCard": {
"name": "Hog Rider",
"id": 26000021,
"maxLevel": 11,
"icon": "https://api-assets.clashroyale.com/cards/300/Ubu0oUl8tZkusnkZf8Xv9Vno5IO29Y-jbZ4fhoNJ5oc.png",
"key": "hog-rider",
"elixir": 4,
"type": "Troop",
"rarity": "Rare",
"arena": 1,
"description": "Fast melee troop that targets buildings and can jump over the river. He followed the echoing call of \"Hog Riderrrrr\" all the way through the Arena doors."
},
There is no level
here. I think its worth, if its also missing at your responses, to create a bug on cr-api for it.
mlieshoff commented
i checked the request "player". the favorite cards there didn't contain that field in the responded json, it's looking like this:
"favoriteCard":{
"name":"Valkyrie",
"id":26000011,
"maxLevel":11,
"icon":"https://api-assets.clashroyale.com/cards/300/0lIoYf3Y_plFTzo95zZL93JVxpfb3MMgFDDhgSDGU9A.png",
"key":"valkyrie",
"elixir":4,
"type":"Troop",
"rarity":"Rare",
"arena":2,
"description":"Tough melee fighter, deals area damage around her. Swarm or horde, no problem! She can take them all out with a few spins."
},
So, please open a bug at royaleapi developers, thanks.